Class CustomTopicProps.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrock.alpha.CustomTopicProps.Jsii$Proxy
- All Implemented Interfaces:
CustomTopicProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CustomTopicProps
@Stability(Experimental)
@Internal
public static final class CustomTopicProps.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CustomTopicProps
An implementation for
CustomTopicProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.CustomTopicProps
CustomTopicProps.Builder, CustomTopicProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(CustomTopicProps.Builder builder) Constructor that initializes the object based on literal property values passed by theCustomTopicProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal String(experimental) Provide a clear definition to detect and block user inputs and FM responses that fall into this topic.(experimental) Representative phrases that refer to the topic.final GuardrailAction(experimental) The action to take when a topic is detected in the input.final Boolean(experimental) Whether the topic filter is enabled for input.final StringgetName()(experimental) The name of the topic to deny.final GuardrailAction(experimental) The action to take when a topic is detected in the output.final Boolean(experimental) Whether the topic filter is enabled for output.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCustomTopicProps.Builder.
-
-
Method Details
-
getDefinition
Description copied from interface:CustomTopicProps(experimental) Provide a clear definition to detect and block user inputs and FM responses that fall into this topic.Avoid starting with "don't".
Example:
"Investment advice refers to inquiries, guidance, or recommendations\nregarding the management or allocation of funds or assets with the goal of\ngenerating returns or achieving specific financial objectives.";
- Specified by:
getDefinitionin interfaceCustomTopicProps
-
getExamples
Description copied from interface:CustomTopicProps(experimental) Representative phrases that refer to the topic.These phrases can represent a user input or a model response. Add between 1 and 100 phrases, up to 100 characters each.
Example:
"Where should I invest my money?";
- Specified by:
getExamplesin interfaceCustomTopicProps
-
getName
Description copied from interface:CustomTopicProps(experimental) The name of the topic to deny.- Specified by:
getNamein interfaceCustomTopicProps
-
getInputAction
Description copied from interface:CustomTopicProps(experimental) The action to take when a topic is detected in the input.Default: GuardrailAction.BLOCK
- Specified by:
getInputActionin interfaceCustomTopicProps
-
getInputEnabled
Description copied from interface:CustomTopicProps(experimental) Whether the topic filter is enabled for input.Default: true
- Specified by:
getInputEnabledin interfaceCustomTopicProps
-
getOutputAction
Description copied from interface:CustomTopicProps(experimental) The action to take when a topic is detected in the output.Default: GuardrailAction.BLOCK
- Specified by:
getOutputActionin interfaceCustomTopicProps
-
getOutputEnabled
Description copied from interface:CustomTopicProps(experimental) Whether the topic filter is enabled for output.Default: true
- Specified by:
getOutputEnabledin interfaceCustomTopicProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-