Class CfnGuardrail.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnGuardrail.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardrail>
- Enclosing class:
CfnGuardrail
@Stability(Stable)
public static final class CfnGuardrail.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardrail>
A fluent builder for
CfnGuardrail.-
Method Summary
Modifier and TypeMethodDescriptionblockedInputMessaging(String blockedInputMessaging) The message to return when the guardrail blocks a prompt.blockedOutputsMessaging(String blockedOutputsMessaging) The message to return when the guardrail blocks a model response.build()contentPolicyConfig(IResolvable contentPolicyConfig) The content filter policies to configure for the guardrail.contentPolicyConfig(CfnGuardrail.ContentPolicyConfigProperty contentPolicyConfig) The content filter policies to configure for the guardrail.contextualGroundingPolicyConfig(IResolvable contextualGroundingPolicyConfig) Contextual grounding policy config for a guardrail.contextualGroundingPolicyConfig(CfnGuardrail.ContextualGroundingPolicyConfigProperty contextualGroundingPolicyConfig) Contextual grounding policy config for a guardrail.static CfnGuardrail.Builderdescription(String description) A description of the guardrail.The ARN of the AWS KMS key that you use to encrypt the guardrail.The name of the guardrail.sensitiveInformationPolicyConfig(IResolvable sensitiveInformationPolicyConfig) The sensitive information policy to configure for the guardrail.sensitiveInformationPolicyConfig(CfnGuardrail.SensitiveInformationPolicyConfigProperty sensitiveInformationPolicyConfig) The sensitive information policy to configure for the guardrail.The tags that you want to attach to the guardrail.topicPolicyConfig(IResolvable topicPolicyConfig) The topic policies to configure for the guardrail.topicPolicyConfig(CfnGuardrail.TopicPolicyConfigProperty topicPolicyConfig) The topic policies to configure for the guardrail.wordPolicyConfig(IResolvable wordPolicyConfig) The word policy you configure for the guardrail.wordPolicyConfig(CfnGuardrail.WordPolicyConfigProperty wordPolicyConfig) The word policy you configure for the guardrail.
-
Method Details
-
create
@Stability(Stable) public static CfnGuardrail.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnGuardrail.Builder.
-
blockedInputMessaging
The message to return when the guardrail blocks a prompt.- Parameters:
blockedInputMessaging- The message to return when the guardrail blocks a prompt. This parameter is required.- Returns:
this- See Also:
-
blockedOutputsMessaging
@Stability(Stable) public CfnGuardrail.Builder blockedOutputsMessaging(String blockedOutputsMessaging) The message to return when the guardrail blocks a model response.- Parameters:
blockedOutputsMessaging- The message to return when the guardrail blocks a model response. This parameter is required.- Returns:
this- See Also:
-
name
The name of the guardrail.- Parameters:
name- The name of the guardrail. This parameter is required.- Returns:
this- See Also:
-
contentPolicyConfig
The content filter policies to configure for the guardrail.- Parameters:
contentPolicyConfig- The content filter policies to configure for the guardrail. This parameter is required.- Returns:
this- See Also:
-
contentPolicyConfig
@Stability(Stable) public CfnGuardrail.Builder contentPolicyConfig(CfnGuardrail.ContentPolicyConfigProperty contentPolicyConfig) The content filter policies to configure for the guardrail.- Parameters:
contentPolicyConfig- The content filter policies to configure for the guardrail. This parameter is required.- Returns:
this- See Also:
-
contextualGroundingPolicyConfig
@Stability(Stable) public CfnGuardrail.Builder contextualGroundingPolicyConfig(IResolvable contextualGroundingPolicyConfig) Contextual grounding policy config for a guardrail.- Parameters:
contextualGroundingPolicyConfig- Contextual grounding policy config for a guardrail. This parameter is required.- Returns:
this- See Also:
-
contextualGroundingPolicyConfig
@Stability(Stable) public CfnGuardrail.Builder contextualGroundingPolicyConfig(CfnGuardrail.ContextualGroundingPolicyConfigProperty contextualGroundingPolicyConfig) Contextual grounding policy config for a guardrail.- Parameters:
contextualGroundingPolicyConfig- Contextual grounding policy config for a guardrail. This parameter is required.- Returns:
this- See Also:
-
description
A description of the guardrail.- Parameters:
description- A description of the guardrail. This parameter is required.- Returns:
this- See Also:
-
kmsKeyArn
The ARN of the AWS KMS key that you use to encrypt the guardrail.- Parameters:
kmsKeyArn- The ARN of the AWS KMS key that you use to encrypt the guardrail. This parameter is required.- Returns:
this- See Also:
-
sensitiveInformationPolicyConfig
@Stability(Stable) public CfnGuardrail.Builder sensitiveInformationPolicyConfig(IResolvable sensitiveInformationPolicyConfig) The sensitive information policy to configure for the guardrail.- Parameters:
sensitiveInformationPolicyConfig- The sensitive information policy to configure for the guardrail. This parameter is required.- Returns:
this- See Also:
-
sensitiveInformationPolicyConfig
@Stability(Stable) public CfnGuardrail.Builder sensitiveInformationPolicyConfig(CfnGuardrail.SensitiveInformationPolicyConfigProperty sensitiveInformationPolicyConfig) The sensitive information policy to configure for the guardrail.- Parameters:
sensitiveInformationPolicyConfig- The sensitive information policy to configure for the guardrail. This parameter is required.- Returns:
this- See Also:
-
tags
The tags that you want to attach to the guardrail.- Parameters:
tags- The tags that you want to attach to the guardrail. This parameter is required.- Returns:
this- See Also:
-
topicPolicyConfig
The topic policies to configure for the guardrail.- Parameters:
topicPolicyConfig- The topic policies to configure for the guardrail. This parameter is required.- Returns:
this- See Also:
-
topicPolicyConfig
@Stability(Stable) public CfnGuardrail.Builder topicPolicyConfig(CfnGuardrail.TopicPolicyConfigProperty topicPolicyConfig) The topic policies to configure for the guardrail.- Parameters:
topicPolicyConfig- The topic policies to configure for the guardrail. This parameter is required.- Returns:
this- See Also:
-
wordPolicyConfig
The word policy you configure for the guardrail.- Parameters:
wordPolicyConfig- The word policy you configure for the guardrail. This parameter is required.- Returns:
this- See Also:
-
wordPolicyConfig
@Stability(Stable) public CfnGuardrail.Builder wordPolicyConfig(CfnGuardrail.WordPolicyConfigProperty wordPolicyConfig) The word policy you configure for the guardrail.- Parameters:
wordPolicyConfig- The word policy you configure for the guardrail. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardrail>- Returns:
- a newly built instance of
CfnGuardrail.
-