Class CfnGuardrail.TopicPolicyConfigProperty
Contains details about topics that the guardrail should identify and deny.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Bedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnGuardrail.TopicPolicyConfigProperty : CfnGuardrail.ITopicPolicyConfigProperty
Syntax (vb)
Public Class CfnGuardrail.TopicPolicyConfigProperty Implements CfnGuardrail.ITopicPolicyConfigProperty
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.AWS.Bedrock;
var topicPolicyConfigProperty = new TopicPolicyConfigProperty {
TopicsConfig = new [] { new TopicConfigProperty {
Definition = "definition",
Name = "name",
Type = "type",
// the properties below are optional
Examples = new [] { "examples" },
InputAction = "inputAction",
InputEnabled = false,
OutputAction = "outputAction",
OutputEnabled = false
} },
// the properties below are optional
TopicsTierConfig = new TopicsTierConfigProperty {
TierName = "tierName"
}
};
Synopsis
Constructors
| TopicPolicyConfigProperty() | Contains details about topics that the guardrail should identify and deny. |
Properties
| TopicsConfig | A list of policies related to topics that the guardrail should deny. |
| TopicsTierConfig | The tier that your guardrail uses for denied topic filters. |
Constructors
TopicPolicyConfigProperty()
Contains details about topics that the guardrail should identify and deny.
public TopicPolicyConfigProperty()
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.AWS.Bedrock;
var topicPolicyConfigProperty = new TopicPolicyConfigProperty {
TopicsConfig = new [] { new TopicConfigProperty {
Definition = "definition",
Name = "name",
Type = "type",
// the properties below are optional
Examples = new [] { "examples" },
InputAction = "inputAction",
InputEnabled = false,
OutputAction = "outputAction",
OutputEnabled = false
} },
// the properties below are optional
TopicsTierConfig = new TopicsTierConfigProperty {
TierName = "tierName"
}
};
Properties
TopicsConfig
A list of policies related to topics that the guardrail should deny.
public object TopicsConfig { get; set; }
Property Value
Remarks
TopicsTierConfig
The tier that your guardrail uses for denied topic filters.
public object? TopicsTierConfig { get; set; }