interface ContentPolicyConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.aws_bedrock.CfnGuardrail.ContentPolicyConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnGuardrail_ContentPolicyConfigProperty |
Java | software.amazon.awscdk.services.bedrock.CfnGuardrail.ContentPolicyConfigProperty |
Python | aws_cdk.aws_bedrock.CfnGuardrail.ContentPolicyConfigProperty |
TypeScript | aws-cdk-lib » aws_bedrock » CfnGuardrail » ContentPolicyConfigProperty |
Contains details about how to handle harmful content.
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 contentPolicyConfigProperty: bedrock.CfnGuardrail.ContentPolicyConfigProperty = {
filtersConfig: [{
inputStrength: 'inputStrength',
outputStrength: 'outputStrength',
type: 'type',
// the properties below are optional
inputAction: 'inputAction',
inputEnabled: false,
inputModalities: ['inputModalities'],
outputAction: 'outputAction',
outputEnabled: false,
outputModalities: ['outputModalities'],
}],
// the properties below are optional
contentFiltersTierConfig: {
tierName: 'tierName',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| filters | IResolvable | (IResolvable | Content)[] | Contains the type of the content filter and how strongly it should apply to prompts and model responses. |
| content | IResolvable | Content | The tier that your guardrail uses for content filters. |
filtersConfig
Type:
IResolvable | (IResolvable | Content)[]
Contains the type of the content filter and how strongly it should apply to prompts and model responses.
contentFiltersTierConfig?
Type:
IResolvable | Content
(optional)
The tier that your guardrail uses for content filters.
Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.

.NET
Go
Java
Python
TypeScript