Class CfnAIGuardrailProps
Properties for defining a CfnAIGuardrail
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Wisdom
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAIGuardrailProps : ICfnAIGuardrailProps
Syntax (vb)
Public Class CfnAIGuardrailProps Implements ICfnAIGuardrailProps
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.AWS.Wisdom;
var cfnAIGuardrailProps = new CfnAIGuardrailProps {
AssistantId = "assistantId",
BlockedInputMessaging = "blockedInputMessaging",
BlockedOutputsMessaging = "blockedOutputsMessaging",
// the properties below are optional
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",
Name = "name",
Pattern = "pattern",
// the properties below are optional
Description = "description"
} }
},
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
TopicPolicyConfig = new AIGuardrailTopicPolicyConfigProperty {
TopicsConfig = new [] { new GuardrailTopicConfigProperty {
Definition = "definition",
Name = "name",
Type = "type",
// the properties below are optional
Examples = new [] { "examples" }
} }
},
WordPolicyConfig = new AIGuardrailWordPolicyConfigProperty {
ManagedWordListsConfig = new [] { new GuardrailManagedWordsConfigProperty {
Type = "type"
} },
WordsConfig = new [] { new GuardrailWordConfigProperty {
Text = "text"
} }
}
};
Synopsis
Constructors
CfnAIGuardrailProps() | Properties for defining a |
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
CfnAIGuardrailProps()
Properties for defining a CfnAIGuardrail
.
public CfnAIGuardrailProps()
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.AWS.Wisdom;
var cfnAIGuardrailProps = new CfnAIGuardrailProps {
AssistantId = "assistantId",
BlockedInputMessaging = "blockedInputMessaging",
BlockedOutputsMessaging = "blockedOutputsMessaging",
// the properties below are optional
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",
Name = "name",
Pattern = "pattern",
// the properties below are optional
Description = "description"
} }
},
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
TopicPolicyConfig = new AIGuardrailTopicPolicyConfigProperty {
TopicsConfig = new [] { new GuardrailTopicConfigProperty {
Definition = "definition",
Name = "name",
Type = "type",
// the properties below are optional
Examples = new [] { "examples" }
} }
},
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; }