Class CfnGuardrailMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnGuardrailMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrailMixinProps>
- Enclosing interface:
CfnGuardrailMixinProps
@Stability(Stable)
public static final class CfnGuardrailMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrailMixinProps>
A builder for
CfnGuardrailMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautomatedReasoningPolicyConfig(CfnGuardrailPropsMixin.AutomatedReasoningPolicyConfigProperty automatedReasoningPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getAutomatedReasoningPolicyConfig()automatedReasoningPolicyConfig(IResolvable automatedReasoningPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getAutomatedReasoningPolicyConfig()blockedInputMessaging(String blockedInputMessaging) Sets the value ofCfnGuardrailMixinProps.getBlockedInputMessaging()blockedOutputsMessaging(String blockedOutputsMessaging) Sets the value ofCfnGuardrailMixinProps.getBlockedOutputsMessaging()build()Builds the configured instance.contentPolicyConfig(CfnGuardrailPropsMixin.ContentPolicyConfigProperty contentPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getContentPolicyConfig()contentPolicyConfig(IResolvable contentPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getContentPolicyConfig()contextualGroundingPolicyConfig(CfnGuardrailPropsMixin.ContextualGroundingPolicyConfigProperty contextualGroundingPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getContextualGroundingPolicyConfig()contextualGroundingPolicyConfig(IResolvable contextualGroundingPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getContextualGroundingPolicyConfig()crossRegionConfig(CfnGuardrailPropsMixin.GuardrailCrossRegionConfigProperty crossRegionConfig) Sets the value ofCfnGuardrailMixinProps.getCrossRegionConfig()crossRegionConfig(IResolvable crossRegionConfig) Sets the value ofCfnGuardrailMixinProps.getCrossRegionConfig()description(String description) Sets the value ofCfnGuardrailMixinProps.getDescription()Sets the value ofCfnGuardrailMixinProps.getKmsKeyArn()Sets the value ofCfnGuardrailMixinProps.getName()sensitiveInformationPolicyConfig(CfnGuardrailPropsMixin.SensitiveInformationPolicyConfigProperty sensitiveInformationPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getSensitiveInformationPolicyConfig()sensitiveInformationPolicyConfig(IResolvable sensitiveInformationPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getSensitiveInformationPolicyConfig()Sets the value ofCfnGuardrailMixinProps.getTags()topicPolicyConfig(CfnGuardrailPropsMixin.TopicPolicyConfigProperty topicPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getTopicPolicyConfig()topicPolicyConfig(IResolvable topicPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getTopicPolicyConfig()wordPolicyConfig(CfnGuardrailPropsMixin.WordPolicyConfigProperty wordPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getWordPolicyConfig()wordPolicyConfig(IResolvable wordPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getWordPolicyConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
automatedReasoningPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder automatedReasoningPolicyConfig(IResolvable automatedReasoningPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getAutomatedReasoningPolicyConfig()- Parameters:
automatedReasoningPolicyConfig- Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.- Returns:
this
-
automatedReasoningPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder automatedReasoningPolicyConfig(CfnGuardrailPropsMixin.AutomatedReasoningPolicyConfigProperty automatedReasoningPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getAutomatedReasoningPolicyConfig()- Parameters:
automatedReasoningPolicyConfig- Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.- Returns:
this
-
blockedInputMessaging
@Stability(Stable) public CfnGuardrailMixinProps.Builder blockedInputMessaging(String blockedInputMessaging) Sets the value ofCfnGuardrailMixinProps.getBlockedInputMessaging()- Parameters:
blockedInputMessaging- The message to return when the guardrail blocks a prompt.- Returns:
this
-
blockedOutputsMessaging
@Stability(Stable) public CfnGuardrailMixinProps.Builder blockedOutputsMessaging(String blockedOutputsMessaging) Sets the value ofCfnGuardrailMixinProps.getBlockedOutputsMessaging()- Parameters:
blockedOutputsMessaging- The message to return when the guardrail blocks a model response.- Returns:
this
-
contentPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder contentPolicyConfig(IResolvable contentPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getContentPolicyConfig()- Parameters:
contentPolicyConfig- The content filter policies to configure for the guardrail.- Returns:
this
-
contentPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder contentPolicyConfig(CfnGuardrailPropsMixin.ContentPolicyConfigProperty contentPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getContentPolicyConfig()- Parameters:
contentPolicyConfig- The content filter policies to configure for the guardrail.- Returns:
this
-
contextualGroundingPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder contextualGroundingPolicyConfig(IResolvable contextualGroundingPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getContextualGroundingPolicyConfig()- Parameters:
contextualGroundingPolicyConfig- Contextual grounding policy config for a guardrail.- Returns:
this
-
contextualGroundingPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder contextualGroundingPolicyConfig(CfnGuardrailPropsMixin.ContextualGroundingPolicyConfigProperty contextualGroundingPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getContextualGroundingPolicyConfig()- Parameters:
contextualGroundingPolicyConfig- Contextual grounding policy config for a guardrail.- Returns:
this
-
crossRegionConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder crossRegionConfig(IResolvable crossRegionConfig) Sets the value ofCfnGuardrailMixinProps.getCrossRegionConfig()- Parameters:
crossRegionConfig- The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination AWS Regions where guardrail inference requests can be automatically routed. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases.For more information, see the Amazon Bedrock User Guide .
- Returns:
this
-
crossRegionConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder crossRegionConfig(CfnGuardrailPropsMixin.GuardrailCrossRegionConfigProperty crossRegionConfig) Sets the value ofCfnGuardrailMixinProps.getCrossRegionConfig()- Parameters:
crossRegionConfig- The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination AWS Regions where guardrail inference requests can be automatically routed. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases.For more information, see the Amazon Bedrock User Guide .
- Returns:
this
-
description
Sets the value ofCfnGuardrailMixinProps.getDescription()- Parameters:
description- A description of the guardrail.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnGuardrailMixinProps.getKmsKeyArn()- Parameters:
kmsKeyArn- The ARN of the AWS key that you use to encrypt the guardrail.- Returns:
this
-
name
Sets the value ofCfnGuardrailMixinProps.getName()- Parameters:
name- The name of the guardrail.- Returns:
this
-
sensitiveInformationPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder sensitiveInformationPolicyConfig(IResolvable sensitiveInformationPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getSensitiveInformationPolicyConfig()- Parameters:
sensitiveInformationPolicyConfig- The sensitive information policy to configure for the guardrail.- Returns:
this
-
sensitiveInformationPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder sensitiveInformationPolicyConfig(CfnGuardrailPropsMixin.SensitiveInformationPolicyConfigProperty sensitiveInformationPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getSensitiveInformationPolicyConfig()- Parameters:
sensitiveInformationPolicyConfig- The sensitive information policy to configure for the guardrail.- Returns:
this
-
tags
Sets the value ofCfnGuardrailMixinProps.getTags()- Parameters:
tags- The tags that you want to attach to the guardrail.- Returns:
this
-
topicPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder topicPolicyConfig(IResolvable topicPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getTopicPolicyConfig()- Parameters:
topicPolicyConfig- The topic policies to configure for the guardrail.- Returns:
this
-
topicPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder topicPolicyConfig(CfnGuardrailPropsMixin.TopicPolicyConfigProperty topicPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getTopicPolicyConfig()- Parameters:
topicPolicyConfig- The topic policies to configure for the guardrail.- Returns:
this
-
wordPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder wordPolicyConfig(IResolvable wordPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getWordPolicyConfig()- Parameters:
wordPolicyConfig- The word policy you configure for the guardrail.- Returns:
this
-
wordPolicyConfig
@Stability(Stable) public CfnGuardrailMixinProps.Builder wordPolicyConfig(CfnGuardrailPropsMixin.WordPolicyConfigProperty wordPolicyConfig) Sets the value ofCfnGuardrailMixinProps.getWordPolicyConfig()- Parameters:
wordPolicyConfig- The word policy you configure for the guardrail.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardrailMixinProps>- Returns:
- a new instance of
CfnGuardrailMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-