Show / Hide Table of Contents

Class CfnGuardrailPropsMixin.ContentPolicyConfigProperty

Contains details about how to handle harmful content.

Inheritance
object
CfnGuardrailPropsMixin.ContentPolicyConfigProperty
Implements
CfnGuardrailPropsMixin.IContentPolicyConfigProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html

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

object

Remarks

Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html#cfn-bedrock-guardrail-contentpolicyconfig-contentfilterstierconfig

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; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html#cfn-bedrock-guardrail-contentpolicyconfig-filtersconfig

Type union: either IResolvable or (either IResolvable or CfnGuardrailPropsMixin.IContentFilterConfigProperty)[]

Implements

CfnGuardrailPropsMixin.IContentPolicyConfigProperty
Back to top Generated by DocFX