All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.bedrock.kotlin.outputs.GetGuardrailResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.bedrock.kotlin.outputs

import com.pulumi.awsnative.bedrock.kotlin.enums.GuardrailStatus
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property blockedInputMessaging Messaging for when violations are detected in text
 * @property blockedOutputsMessaging Messaging for when violations are detected in text
 * @property contentPolicyConfig The content filter policies to configure for the guardrail.
 * @property contextualGroundingPolicyConfig
 * @property createdAt Time Stamp
 * @property description Description of the guardrail or its version
 * @property failureRecommendations List of failure recommendations
 * @property guardrailArn Arn representation for the guardrail
 * @property guardrailId Unique id for the guardrail
 * @property kmsKeyArn The KMS key with which the guardrail was encrypted at rest
 * @property name Name of the guardrail
 * @property sensitiveInformationPolicyConfig The sensitive information policy to configure for the guardrail.
 * @property status The status of the guardrail.
 * @property statusReasons List of status reasons
 * @property tags List of Tags
 * @property topicPolicyConfig The topic policies to configure for the guardrail.
 * @property updatedAt Time Stamp
 * @property version Guardrail version
 * @property wordPolicyConfig The word policy you configure for the guardrail.
 */
public data class GetGuardrailResult(
    public val blockedInputMessaging: String? = null,
    public val blockedOutputsMessaging: String? = null,
    public val contentPolicyConfig: GuardrailContentPolicyConfig? = null,
    public val contextualGroundingPolicyConfig: GuardrailContextualGroundingPolicyConfig? = null,
    public val createdAt: String? = null,
    public val description: String? = null,
    public val failureRecommendations: List? = null,
    public val guardrailArn: String? = null,
    public val guardrailId: String? = null,
    public val kmsKeyArn: String? = null,
    public val name: String? = null,
    public val sensitiveInformationPolicyConfig: GuardrailSensitiveInformationPolicyConfig? = null,
    public val status: GuardrailStatus? = null,
    public val statusReasons: List? = null,
    public val tags: List? = null,
    public val topicPolicyConfig: GuardrailTopicPolicyConfig? = null,
    public val updatedAt: String? = null,
    public val version: String? = null,
    public val wordPolicyConfig: GuardrailWordPolicyConfig? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.bedrock.outputs.GetGuardrailResult): GetGuardrailResult = GetGuardrailResult(
            blockedInputMessaging = javaType.blockedInputMessaging().map({ args0 -> args0 }).orElse(null),
            blockedOutputsMessaging = javaType.blockedOutputsMessaging().map({ args0 -> args0 }).orElse(null),
            contentPolicyConfig = javaType.contentPolicyConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.GuardrailContentPolicyConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            contextualGroundingPolicyConfig = javaType.contextualGroundingPolicyConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.GuardrailContextualGroundingPolicyConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            failureRecommendations = javaType.failureRecommendations().map({ args0 -> args0 }),
            guardrailArn = javaType.guardrailArn().map({ args0 -> args0 }).orElse(null),
            guardrailId = javaType.guardrailId().map({ args0 -> args0 }).orElse(null),
            kmsKeyArn = javaType.kmsKeyArn().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            sensitiveInformationPolicyConfig = javaType.sensitiveInformationPolicyConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.GuardrailSensitiveInformationPolicyConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            status = javaType.status().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.enums.GuardrailStatus.Companion.toKotlin(args0)
                })
            }).orElse(null),
            statusReasons = javaType.statusReasons().map({ args0 -> args0 }),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            topicPolicyConfig = javaType.topicPolicyConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.GuardrailTopicPolicyConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            updatedAt = javaType.updatedAt().map({ args0 -> args0 }).orElse(null),
            version = javaType.version().map({ args0 -> args0 }).orElse(null),
            wordPolicyConfig = javaType.wordPolicyConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.GuardrailWordPolicyConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy