Interface CfnGuardrailPropsMixin.TopicConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnGuardrailPropsMixin.TopicConfigProperty.Jsii$Proxy
- Enclosing class:
CfnGuardrailPropsMixin
@Stability(Stable)
public static interface CfnGuardrailPropsMixin.TopicConfigProperty
extends software.amazon.jsii.JsiiSerializable
Details about topics for the guardrail to identify and deny.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.bedrock.*;
TopicConfigProperty topicConfigProperty = TopicConfigProperty.builder()
.definition("definition")
.examples(List.of("examples"))
.inputAction("inputAction")
.inputEnabled(false)
.name("name")
.outputAction("outputAction")
.outputEnabled(false)
.type("type")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnGuardrailPropsMixin.TopicConfigPropertystatic final classAn implementation forCfnGuardrailPropsMixin.TopicConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringA definition of the topic to deny.A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.default StringSpecifies the action to take when harmful content is detected in the input.default ObjectSpecifies whether to enable guardrail evaluation on the input.default StringgetName()The name of the topic to deny.default StringSpecifies the action to take when harmful content is detected in the output.default ObjectSpecifies whether to enable guardrail evaluation on the output.default StringgetType()Specifies to deny the topic.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefinition
A definition of the topic to deny.- See Also:
-
getExamples
A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.- See Also:
-
getInputAction
Specifies the action to take when harmful content is detected in the input. Supported values include:.BLOCK– Block the content and replace it with blocked messaging.NONE– Take no action but return detection information in the trace response.
- See Also:
-
getInputEnabled
Specifies whether to enable guardrail evaluation on the input.When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Returns union: either
BooleanorIResolvable- See Also:
-
getName
The name of the topic to deny.- See Also:
-
getOutputAction
Specifies the action to take when harmful content is detected in the output. Supported values include:.BLOCK– Block the content and replace it with blocked messaging.NONE– Take no action but return detection information in the trace response.
- See Also:
-
getOutputEnabled
Specifies whether to enable guardrail evaluation on the output.When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Returns union: either
BooleanorIResolvable- See Also:
-
getType
Specifies to deny the topic.- See Also:
-
builder
-