interface ContentPolicyConfigProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnGuardrail.ContentPolicyConfigProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnGuardrail_ContentPolicyConfigProperty |
![]() | software.amazon.awscdk.services.bedrock.CfnGuardrail.ContentPolicyConfigProperty |
![]() | aws_cdk.aws_bedrock.CfnGuardrail.ContentPolicyConfigProperty |
![]() | 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'],
}],
};
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. |
filtersConfig
Type:
IResolvable
|
IResolvable
|
Content
[]
Contains the type of the content filter and how strongly it should apply to prompts and model responses.