Show / Hide Table of Contents

Class CfnAIGuardrailMixinProps

Properties for CfnAIGuardrailPropsMixin.

Inheritance
object
CfnAIGuardrailMixinProps
Implements
ICfnAIGuardrailMixinProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Mixins.Preview.AWS.Wisdom.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnAIGuardrailMixinProps : ICfnAIGuardrailMixinProps
Syntax (vb)
Public Class CfnAIGuardrailMixinProps Implements ICfnAIGuardrailMixinProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.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.Mixins.Preview.AWS.Wisdom.Mixins;

             var cfnAIGuardrailMixinProps = new CfnAIGuardrailMixinProps {
                 AssistantId = "assistantId",
                 BlockedInputMessaging = "blockedInputMessaging",
                 BlockedOutputsMessaging = "blockedOutputsMessaging",
                 ContentPolicyConfig = new AIGuardrailContentPolicyConfigProperty {
                     FiltersConfig = new [] { new GuardrailContentFilterConfigProperty {
                         InputStrength = "inputStrength",
                         OutputStrength = "outputStrength",
                         Type = "type"
                     } }
                 },
                 ContextualGroundingPolicyConfig = new AIGuardrailContextualGroundingPolicyConfigProperty {
                     FiltersConfig = new [] { new GuardrailContextualGroundingFilterConfigProperty {
                         Threshold = 123,
                         Type = "type"
                     } }
                 },
                 Description = "description",
                 Name = "name",
                 SensitiveInformationPolicyConfig = new AIGuardrailSensitiveInformationPolicyConfigProperty {
                     PiiEntitiesConfig = new [] { new GuardrailPiiEntityConfigProperty {
                         Action = "action",
                         Type = "type"
                     } },
                     RegexesConfig = new [] { new GuardrailRegexConfigProperty {
                         Action = "action",
                         Description = "description",
                         Name = "name",
                         Pattern = "pattern"
                     } }
                 },
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 TopicPolicyConfig = new AIGuardrailTopicPolicyConfigProperty {
                     TopicsConfig = new [] { new GuardrailTopicConfigProperty {
                         Definition = "definition",
                         Examples = new [] { "examples" },
                         Name = "name",
                         Type = "type"
                     } }
                 },
                 WordPolicyConfig = new AIGuardrailWordPolicyConfigProperty {
                     ManagedWordListsConfig = new [] { new GuardrailManagedWordsConfigProperty {
                         Type = "type"
                     } },
                     WordsConfig = new [] { new GuardrailWordConfigProperty {
                         Text = "text"
                     } }
                 }
             };

Synopsis

Constructors

CfnAIGuardrailMixinProps()

Properties for CfnAIGuardrailPropsMixin.

Properties

AssistantId

The identifier of the Amazon Q in Connect assistant.

BlockedInputMessaging

The message to return when the AI Guardrail blocks a prompt.

BlockedOutputsMessaging

The message to return when the AI Guardrail blocks a model response.

ContentPolicyConfig

Contains details about how to handle harmful content.

ContextualGroundingPolicyConfig

The policy configuration details for the AI Guardrail's contextual grounding policy.

Description

A description of the AI Guardrail.

Name

The name of the AI Guardrail.

SensitiveInformationPolicyConfig

Contains details about PII entities and regular expressions to configure for the AI Guardrail.

Tags

The tags used to organize, track, or control access for this resource.

TopicPolicyConfig

Contains details about topics that the AI Guardrail should identify and deny.

WordPolicyConfig

Contains details about the word policy to configured for the AI Guardrail.

Constructors

CfnAIGuardrailMixinProps()

Properties for CfnAIGuardrailPropsMixin.

public CfnAIGuardrailMixinProps()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.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.Mixins.Preview.AWS.Wisdom.Mixins;

             var cfnAIGuardrailMixinProps = new CfnAIGuardrailMixinProps {
                 AssistantId = "assistantId",
                 BlockedInputMessaging = "blockedInputMessaging",
                 BlockedOutputsMessaging = "blockedOutputsMessaging",
                 ContentPolicyConfig = new AIGuardrailContentPolicyConfigProperty {
                     FiltersConfig = new [] { new GuardrailContentFilterConfigProperty {
                         InputStrength = "inputStrength",
                         OutputStrength = "outputStrength",
                         Type = "type"
                     } }
                 },
                 ContextualGroundingPolicyConfig = new AIGuardrailContextualGroundingPolicyConfigProperty {
                     FiltersConfig = new [] { new GuardrailContextualGroundingFilterConfigProperty {
                         Threshold = 123,
                         Type = "type"
                     } }
                 },
                 Description = "description",
                 Name = "name",
                 SensitiveInformationPolicyConfig = new AIGuardrailSensitiveInformationPolicyConfigProperty {
                     PiiEntitiesConfig = new [] { new GuardrailPiiEntityConfigProperty {
                         Action = "action",
                         Type = "type"
                     } },
                     RegexesConfig = new [] { new GuardrailRegexConfigProperty {
                         Action = "action",
                         Description = "description",
                         Name = "name",
                         Pattern = "pattern"
                     } }
                 },
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 TopicPolicyConfig = new AIGuardrailTopicPolicyConfigProperty {
                     TopicsConfig = new [] { new GuardrailTopicConfigProperty {
                         Definition = "definition",
                         Examples = new [] { "examples" },
                         Name = "name",
                         Type = "type"
                     } }
                 },
                 WordPolicyConfig = new AIGuardrailWordPolicyConfigProperty {
                     ManagedWordListsConfig = new [] { new GuardrailManagedWordsConfigProperty {
                         Type = "type"
                     } },
                     WordsConfig = new [] { new GuardrailWordConfigProperty {
                         Text = "text"
                     } }
                 }
             };

Properties

AssistantId

The identifier of the Amazon Q in Connect assistant.

public string? AssistantId { get; set; }
Property Value

string

Remarks

Can be either the ID or the ARN. URLs cannot contain the ARN.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-assistantid

BlockedInputMessaging

The message to return when the AI Guardrail blocks a prompt.

public string? BlockedInputMessaging { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-blockedinputmessaging

BlockedOutputsMessaging

The message to return when the AI Guardrail blocks a model response.

public string? BlockedOutputsMessaging { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-blockedoutputsmessaging

ContentPolicyConfig

Contains details about how to handle harmful content.

public object? ContentPolicyConfig { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-contentpolicyconfig

Type union: either IResolvable or CfnAIGuardrailPropsMixin.IAIGuardrailContentPolicyConfigProperty

ContextualGroundingPolicyConfig

The policy configuration details for the AI Guardrail's contextual grounding policy.

public object? ContextualGroundingPolicyConfig { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-contextualgroundingpolicyconfig

Type union: either IResolvable or CfnAIGuardrailPropsMixin.IAIGuardrailContextualGroundingPolicyConfigProperty

Description

A description of the AI Guardrail.

public string? Description { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-description

Name

The name of the AI Guardrail.

public string? Name { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-name

SensitiveInformationPolicyConfig

Contains details about PII entities and regular expressions to configure for the AI Guardrail.

public object? SensitiveInformationPolicyConfig { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-sensitiveinformationpolicyconfig

Type union: either IResolvable or CfnAIGuardrailPropsMixin.IAIGuardrailSensitiveInformationPolicyConfigProperty

Tags

The tags used to organize, track, or control access for this resource.

public IDictionary<string, string>? Tags { get; set; }
Property Value

IDictionary<string, string>

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-tags

TopicPolicyConfig

Contains details about topics that the AI Guardrail should identify and deny.

public object? TopicPolicyConfig { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-topicpolicyconfig

Type union: either IResolvable or CfnAIGuardrailPropsMixin.IAIGuardrailTopicPolicyConfigProperty

WordPolicyConfig

Contains details about the word policy to configured for the AI Guardrail.

public object? WordPolicyConfig { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-wordpolicyconfig

Type union: either IResolvable or CfnAIGuardrailPropsMixin.IAIGuardrailWordPolicyConfigProperty

Implements

ICfnAIGuardrailMixinProps
Back to top Generated by DocFX