Interface CfnGuardrailProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnGuardrailProps.Jsii$Proxy
CfnGuardrail.
Example:
import software.amazon.awscdk.services.bedrock.*;
// Import a guardrail created through the L1 CDK CfnGuardrail construct
CfnGuardrail l1guardrail = CfnGuardrail.Builder.create(this, "MyCfnGuardrail")
.blockedInputMessaging("blockedInputMessaging")
.blockedOutputsMessaging("blockedOutputsMessaging")
.name("namemycfnguardrails")
.wordPolicyConfig(WordPolicyConfigProperty.builder()
.wordsConfig(List.of(WordConfigProperty.builder()
.text("drugs")
.build()))
.build())
.build();
IGuardrail importedGuardrail = Guardrail.fromCfnGuardrail(l1guardrail);
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnGuardrailPropsstatic final classAn implementation forCfnGuardrailProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnGuardrailProps.Builderbuilder()default ObjectConfiguration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.The message to return when the guardrail blocks a prompt.The message to return when the guardrail blocks a model response.default ObjectThe content filter policies to configure for the guardrail.default ObjectContextual grounding policy config for a guardrail.default ObjectThe system-defined guardrail profile that you're using with your guardrail.default StringA description of the guardrail.default StringThe ARN of the AWS key that you use to encrypt the guardrail.getName()The name of the guardrail.default ObjectThe sensitive information policy to configure for the guardrail.getTags()The tags that you want to attach to the guardrail.default ObjectThe topic policies to configure for the guardrail.default ObjectThe word policy you configure for the guardrail.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBlockedInputMessaging
The message to return when the guardrail blocks a prompt.- See Also:
-
getBlockedOutputsMessaging
The message to return when the guardrail blocks a model response.- See Also:
-
getName
The name of the guardrail.- See Also:
-
getAutomatedReasoningPolicyConfig
Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.Returns union: either
IResolvableorCfnGuardrail.AutomatedReasoningPolicyConfigProperty- See Also:
-
getContentPolicyConfig
The content filter policies to configure for the guardrail.Returns union: either
IResolvableorCfnGuardrail.ContentPolicyConfigProperty- See Also:
-
getContextualGroundingPolicyConfig
Contextual grounding policy config for a guardrail.Returns union: either
IResolvableorCfnGuardrail.ContextualGroundingPolicyConfigProperty- See Also:
-
getCrossRegionConfig
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 union: either
IResolvableorCfnGuardrail.GuardrailCrossRegionConfigProperty- See Also:
-
getDescription
A description of the guardrail.- See Also:
-
getKmsKeyArn
The ARN of the AWS key that you use to encrypt the guardrail.- See Also:
-
getSensitiveInformationPolicyConfig
The sensitive information policy to configure for the guardrail.Returns union: either
IResolvableorCfnGuardrail.SensitiveInformationPolicyConfigProperty- See Also:
-
getTags
The tags that you want to attach to the guardrail.- See Also:
-
getTopicPolicyConfig
The topic policies to configure for the guardrail.Returns union: either
IResolvableorCfnGuardrail.TopicPolicyConfigProperty- See Also:
-
getWordPolicyConfig
The word policy you configure for the guardrail.Returns union: either
IResolvableorCfnGuardrail.WordPolicyConfigProperty- See Also:
-
builder
- Returns:
- a
CfnGuardrailProps.BuilderofCfnGuardrailProps
-