Class CfnAIGuardrailMixinProps
Properties for CfnAIGuardrailPropsMixin.
Implements
Inherited Members
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
Remarks
Can be either the ID or the ARN. URLs cannot contain the ARN.
BlockedInputMessaging
The message to return when the AI Guardrail blocks a prompt.
public string? BlockedInputMessaging { get; set; }
Property Value
Remarks
BlockedOutputsMessaging
The message to return when the AI Guardrail blocks a model response.
public string? BlockedOutputsMessaging { get; set; }
Property Value
Remarks
ContentPolicyConfig
Contains details about how to handle harmful content.
public object? ContentPolicyConfig { get; set; }
Property Value
Remarks
ContextualGroundingPolicyConfig
The policy configuration details for the AI Guardrail's contextual grounding policy.
public object? ContextualGroundingPolicyConfig { get; set; }
Property Value
Remarks
Description
A description of the AI Guardrail.
public string? Description { get; set; }
Property Value
Remarks
Name
The name of the AI Guardrail.
public string? Name { get; set; }
Property Value
Remarks
SensitiveInformationPolicyConfig
Contains details about PII entities and regular expressions to configure for the AI Guardrail.
public object? SensitiveInformationPolicyConfig { get; set; }
Property Value
Remarks
Tags
The tags used to organize, track, or control access for this resource.
public IDictionary<string, string>? Tags { get; set; }
Property Value
Remarks
TopicPolicyConfig
Contains details about topics that the AI Guardrail should identify and deny.
public object? TopicPolicyConfig { get; set; }
Property Value
Remarks
WordPolicyConfig
Contains details about the word policy to configured for the AI Guardrail.
public object? WordPolicyConfig { get; set; }