Class CfnGuardrailPropsMixin.ContentPolicyConfigProperty
Contains details about how to handle harmful content.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Bedrock
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnGuardrailPropsMixin.ContentPolicyConfigProperty : CfnGuardrailPropsMixin.IContentPolicyConfigProperty
Syntax (vb)
Public Class CfnGuardrailPropsMixin.ContentPolicyConfigProperty Implements CfnGuardrailPropsMixin.IContentPolicyConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Bedrock;
var contentPolicyConfigProperty = new ContentPolicyConfigProperty {
ContentFiltersTierConfig = new ContentFiltersTierConfigProperty {
TierName = "tierName"
},
FiltersConfig = new [] { new ContentFilterConfigProperty {
InputAction = "inputAction",
InputEnabled = false,
InputModalities = new [] { "inputModalities" },
InputStrength = "inputStrength",
OutputAction = "outputAction",
OutputEnabled = false,
OutputModalities = new [] { "outputModalities" },
OutputStrength = "outputStrength",
Type = "type"
} }
};
Synopsis
Constructors
| ContentPolicyConfigProperty() | Contains details about how to handle harmful content. |
Properties
| ContentFiltersTierConfig | The tier that your guardrail uses for content filters. |
| FiltersConfig | Contains the type of the content filter and how strongly it should apply to prompts and model responses. |
Constructors
ContentPolicyConfigProperty()
Contains details about how to handle harmful content.
public ContentPolicyConfigProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Bedrock;
var contentPolicyConfigProperty = new ContentPolicyConfigProperty {
ContentFiltersTierConfig = new ContentFiltersTierConfigProperty {
TierName = "tierName"
},
FiltersConfig = new [] { new ContentFilterConfigProperty {
InputAction = "inputAction",
InputEnabled = false,
InputModalities = new [] { "inputModalities" },
InputStrength = "inputStrength",
OutputAction = "outputAction",
OutputEnabled = false,
OutputModalities = new [] { "outputModalities" },
OutputStrength = "outputStrength",
Type = "type"
} }
};
Properties
ContentFiltersTierConfig
The tier that your guardrail uses for content filters.
public object? ContentFiltersTierConfig { get; set; }
Property Value
Remarks
Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.
Type union: either IResolvable or CfnGuardrailPropsMixin.IContentFiltersTierConfigProperty
FiltersConfig
Contains the type of the content filter and how strongly it should apply to prompts and model responses.
public object? FiltersConfig { get; set; }