Interface CfnAIGuardrailProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAIGuardrailProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:16.026Z")
@Stability(Stable)
public interface CfnAIGuardrailProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnAIGuardrail.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wisdom.*;
CfnAIGuardrailProps cfnAIGuardrailProps = CfnAIGuardrailProps.builder()
.assistantId("assistantId")
.blockedInputMessaging("blockedInputMessaging")
.blockedOutputsMessaging("blockedOutputsMessaging")
// the properties below are optional
.contentPolicyConfig(AIGuardrailContentPolicyConfigProperty.builder()
.filtersConfig(List.of(GuardrailContentFilterConfigProperty.builder()
.inputStrength("inputStrength")
.outputStrength("outputStrength")
.type("type")
.build()))
.build())
.contextualGroundingPolicyConfig(AIGuardrailContextualGroundingPolicyConfigProperty.builder()
.filtersConfig(List.of(GuardrailContextualGroundingFilterConfigProperty.builder()
.threshold(123)
.type("type")
.build()))
.build())
.description("description")
.name("name")
.sensitiveInformationPolicyConfig(AIGuardrailSensitiveInformationPolicyConfigProperty.builder()
.piiEntitiesConfig(List.of(GuardrailPiiEntityConfigProperty.builder()
.action("action")
.type("type")
.build()))
.regexesConfig(List.of(GuardrailRegexConfigProperty.builder()
.action("action")
.name("name")
.pattern("pattern")
// the properties below are optional
.description("description")
.build()))
.build())
.tags(Map.of(
"tagsKey", "tags"))
.topicPolicyConfig(AIGuardrailTopicPolicyConfigProperty.builder()
.topicsConfig(List.of(GuardrailTopicConfigProperty.builder()
.definition("definition")
.name("name")
.type("type")
// the properties below are optional
.examples(List.of("examples"))
.build()))
.build())
.wordPolicyConfig(AIGuardrailWordPolicyConfigProperty.builder()
.managedWordListsConfig(List.of(GuardrailManagedWordsConfigProperty.builder()
.type("type")
.build()))
.wordsConfig(List.of(GuardrailWordConfigProperty.builder()
.text("text")
.build()))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAIGuardrailPropsstatic final classAn implementation forCfnAIGuardrailProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAIGuardrailProps.Builderbuilder()The identifier of the Amazon Q in Connect assistant.The message to return when the AI Guardrail blocks a prompt.The message to return when the AI Guardrail blocks a model response.default ObjectContains details about how to handle harmful content.default ObjectThe policy configuration details for the AI Guardrail's contextual grounding policy.default StringA description of the AI Guardrail.default StringgetName()The name of the AI Guardrail.default ObjectContains details about PII entities and regular expressions to configure for the AI Guardrail.getTags()The tags used to organize, track, or control access for this resource.default ObjectContains details about topics that the AI Guardrail should identify and deny.default ObjectContains details about the word policy to configured for the AI Guardrail.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAssistantId
The identifier of the Amazon Q in Connect assistant.Can be either the ID or the ARN. URLs cannot contain the ARN.
- See Also:
-
getBlockedInputMessaging
The message to return when the AI Guardrail blocks a prompt.- See Also:
-
getBlockedOutputsMessaging
The message to return when the AI Guardrail blocks a model response.- See Also:
-
getContentPolicyConfig
Contains details about how to handle harmful content.Returns union: either
IResolvableorCfnAIGuardrail.AIGuardrailContentPolicyConfigProperty- See Also:
-
getContextualGroundingPolicyConfig
The policy configuration details for the AI Guardrail's contextual grounding policy.Returns union: either
IResolvableorCfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty- See Also:
-
getDescription
A description of the AI Guardrail.- See Also:
-
getName
The name of the AI Guardrail.- See Also:
-
getSensitiveInformationPolicyConfig
Contains details about PII entities and regular expressions to configure for the AI Guardrail.Returns union: either
IResolvableorCfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty- See Also:
-
getTags
The tags used to organize, track, or control access for this resource.- See Also:
-
getTopicPolicyConfig
Contains details about topics that the AI Guardrail should identify and deny.Returns union: either
IResolvableorCfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty- See Also:
-
getWordPolicyConfig
Contains details about the word policy to configured for the AI Guardrail.Returns union: either
IResolvableorCfnAIGuardrail.AIGuardrailWordPolicyConfigProperty- See Also:
-
builder
- Returns:
- a
CfnAIGuardrailProps.BuilderofCfnAIGuardrailProps
-