Class CfnAIGuardrailMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wisdom.CfnAIGuardrailMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAIGuardrailMixinProps>
- Enclosing interface:
CfnAIGuardrailMixinProps
@Stability(Stable)
public static final class CfnAIGuardrailMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAIGuardrailMixinProps>
A builder for
CfnAIGuardrailMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassistantId(String assistantId) Sets the value ofCfnAIGuardrailMixinProps.getAssistantId()blockedInputMessaging(String blockedInputMessaging) Sets the value ofCfnAIGuardrailMixinProps.getBlockedInputMessaging()blockedOutputsMessaging(String blockedOutputsMessaging) Sets the value ofCfnAIGuardrailMixinProps.getBlockedOutputsMessaging()build()Builds the configured instance.contentPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailContentPolicyConfigProperty contentPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getContentPolicyConfig()contentPolicyConfig(IResolvable contentPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getContentPolicyConfig()contextualGroundingPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailContextualGroundingPolicyConfigProperty contextualGroundingPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getContextualGroundingPolicyConfig()contextualGroundingPolicyConfig(IResolvable contextualGroundingPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getContextualGroundingPolicyConfig()description(String description) Sets the value ofCfnAIGuardrailMixinProps.getDescription()Sets the value ofCfnAIGuardrailMixinProps.getName()sensitiveInformationPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailSensitiveInformationPolicyConfigProperty sensitiveInformationPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getSensitiveInformationPolicyConfig()sensitiveInformationPolicyConfig(IResolvable sensitiveInformationPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getSensitiveInformationPolicyConfig()Sets the value ofCfnAIGuardrailMixinProps.getTags()topicPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailTopicPolicyConfigProperty topicPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getTopicPolicyConfig()topicPolicyConfig(IResolvable topicPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getTopicPolicyConfig()wordPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailWordPolicyConfigProperty wordPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getWordPolicyConfig()wordPolicyConfig(IResolvable wordPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getWordPolicyConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assistantId
Sets the value ofCfnAIGuardrailMixinProps.getAssistantId()- Parameters:
assistantId- The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.- Returns:
this
-
blockedInputMessaging
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder blockedInputMessaging(String blockedInputMessaging) Sets the value ofCfnAIGuardrailMixinProps.getBlockedInputMessaging()- Parameters:
blockedInputMessaging- The message to return when the AI Guardrail blocks a prompt.- Returns:
this
-
blockedOutputsMessaging
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder blockedOutputsMessaging(String blockedOutputsMessaging) Sets the value ofCfnAIGuardrailMixinProps.getBlockedOutputsMessaging()- Parameters:
blockedOutputsMessaging- The message to return when the AI Guardrail blocks a model response.- Returns:
this
-
contentPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder contentPolicyConfig(IResolvable contentPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getContentPolicyConfig()- Parameters:
contentPolicyConfig- Contains details about how to handle harmful content.- Returns:
this
-
contentPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder contentPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailContentPolicyConfigProperty contentPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getContentPolicyConfig()- Parameters:
contentPolicyConfig- Contains details about how to handle harmful content.- Returns:
this
-
contextualGroundingPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder contextualGroundingPolicyConfig(IResolvable contextualGroundingPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getContextualGroundingPolicyConfig()- Parameters:
contextualGroundingPolicyConfig- The policy configuration details for the AI Guardrail's contextual grounding policy.- Returns:
this
-
contextualGroundingPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder contextualGroundingPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailContextualGroundingPolicyConfigProperty contextualGroundingPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getContextualGroundingPolicyConfig()- Parameters:
contextualGroundingPolicyConfig- The policy configuration details for the AI Guardrail's contextual grounding policy.- Returns:
this
-
description
Sets the value ofCfnAIGuardrailMixinProps.getDescription()- Parameters:
description- A description of the AI Guardrail.- Returns:
this
-
name
Sets the value ofCfnAIGuardrailMixinProps.getName()- Parameters:
name- The name of the AI Guardrail.- Returns:
this
-
sensitiveInformationPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder sensitiveInformationPolicyConfig(IResolvable sensitiveInformationPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getSensitiveInformationPolicyConfig()- Parameters:
sensitiveInformationPolicyConfig- Contains details about PII entities and regular expressions to configure for the AI Guardrail.- Returns:
this
-
sensitiveInformationPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder sensitiveInformationPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailSensitiveInformationPolicyConfigProperty sensitiveInformationPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getSensitiveInformationPolicyConfig()- Parameters:
sensitiveInformationPolicyConfig- Contains details about PII entities and regular expressions to configure for the AI Guardrail.- Returns:
this
-
tags
Sets the value ofCfnAIGuardrailMixinProps.getTags()- Parameters:
tags- The tags used to organize, track, or control access for this resource.- Returns:
this
-
topicPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder topicPolicyConfig(IResolvable topicPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getTopicPolicyConfig()- Parameters:
topicPolicyConfig- Contains details about topics that the AI Guardrail should identify and deny.- Returns:
this
-
topicPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder topicPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailTopicPolicyConfigProperty topicPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getTopicPolicyConfig()- Parameters:
topicPolicyConfig- Contains details about topics that the AI Guardrail should identify and deny.- Returns:
this
-
wordPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder wordPolicyConfig(IResolvable wordPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getWordPolicyConfig()- Parameters:
wordPolicyConfig- Contains details about the word policy to configured for the AI Guardrail.- Returns:
this
-
wordPolicyConfig
@Stability(Stable) public CfnAIGuardrailMixinProps.Builder wordPolicyConfig(CfnAIGuardrailPropsMixin.AIGuardrailWordPolicyConfigProperty wordPolicyConfig) Sets the value ofCfnAIGuardrailMixinProps.getWordPolicyConfig()- Parameters:
wordPolicyConfig- Contains details about the word policy to configured for the AI Guardrail.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAIGuardrailMixinProps>- Returns:
- a new instance of
CfnAIGuardrailMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-