interface CfnEnforcedGuardrailConfigurationProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.CfnEnforcedGuardrailConfigurationProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnEnforcedGuardrailConfigurationProps |
Java | software.amazon.awscdk.services.bedrock.CfnEnforcedGuardrailConfigurationProps |
Python | aws_cdk.aws_bedrock.CfnEnforcedGuardrailConfigurationProps |
TypeScript | aws-cdk-lib » aws_bedrock » CfnEnforcedGuardrailConfigurationProps |
Properties for defining a CfnEnforcedGuardrailConfiguration.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const cfnEnforcedGuardrailConfigurationProps: bedrock.CfnEnforcedGuardrailConfigurationProps = {
guardrailIdentifier: 'guardrailIdentifier',
guardrailVersion: 'guardrailVersion',
// the properties below are optional
modelEnforcement: {
excludedModels: ['excludedModels'],
includedModels: ['includedModels'],
},
selectiveContentGuarding: {
messages: 'messages',
system: 'system',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| guardrail | string | Identifier for the guardrail, could be the ID or the ARN. |
| guardrail | string | Numerical guardrail version (not DRAFT). |
| model | IResolvable | Model | Model-specific information for the enforced guardrail configuration. |
| selective | IResolvable | Selective | Selective content guarding controls for enforced guardrails. |
guardrailIdentifier
Type:
string
Identifier for the guardrail, could be the ID or the ARN.
guardrailVersion
Type:
string
Numerical guardrail version (not DRAFT).
modelEnforcement?
Type:
IResolvable | Model
(optional)
Model-specific information for the enforced guardrail configuration.
If not present, the configuration is enforced on all models
selectiveContentGuarding?
Type:
IResolvable | Selective
(optional)
Selective content guarding controls for enforced guardrails.

.NET
Go
Java
Python
TypeScript