Class GuardrailProps.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrock.alpha.GuardrailProps.Jsii$Proxy
- All Implemented Interfaces:
GuardrailProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
GuardrailProps
@Stability(Experimental)
@Internal
public static final class GuardrailProps.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements GuardrailProps
An implementation for
GuardrailProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.GuardrailProps
GuardrailProps.Builder, GuardrailProps.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Jsii$Proxy
(GuardrailProps.Builder builder) Constructor that initializes the object based on literal property values passed by theGuardrailProps.Builder
.protected
Jsii$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.JsonNode
final boolean
final String
(experimental) The message to return when the guardrail blocks a prompt.final String
(experimental) The message to return when the guardrail blocks a model response.final List
<ContentFilter> (experimental) The content filters to apply to the guardrail.final TierConfig
(experimental) The tier configuration to apply to the guardrail.final List
<ContextualGroundingFilter> (experimental) The contextual grounding filters to apply to the guardrail.(experimental) The cross-region configuration for the guardrail.(experimental) A list of policies related to topics that the guardrail should deny.final String
(experimental) The description of the guardrail.final String
(experimental) The name of the guardrail.final IKey
(experimental) A custom KMS key to use for encrypting data.final List
<ManagedWordFilter> (experimental) The managed word filters to apply to the guardrail.(experimental) The PII filters to apply to the guardrail.final List
<RegexFilter> (experimental) The regular expression (regex) filters to apply to the guardrail.final TierConfig
(experimental) The tier configuration to apply to the guardrail.final List
<WordFilter> (experimental) The word filters to apply to the guardrail.final int
hashCode()
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 theGuardrailProps.Builder
.
-
-
Method Details
-
getGuardrailName
Description copied from interface:GuardrailProps
(experimental) The name of the guardrail.This will be used as the physical name of the guardrail.
- Specified by:
getGuardrailName
in interfaceGuardrailProps
-
getBlockedInputMessaging
Description copied from interface:GuardrailProps
(experimental) The message to return when the guardrail blocks a prompt.Must be between 1 and 500 characters.
Default: "Sorry, your query violates our usage policy."
- Specified by:
getBlockedInputMessaging
in interfaceGuardrailProps
-
getBlockedOutputsMessaging
Description copied from interface:GuardrailProps
(experimental) The message to return when the guardrail blocks a model response.Must be between 1 and 500 characters.
Default: "Sorry, I am unable to answer your question because of our usage policy."
- Specified by:
getBlockedOutputsMessaging
in interfaceGuardrailProps
-
getContentFilters
Description copied from interface:GuardrailProps
(experimental) The content filters to apply to the guardrail.Default: []
- Specified by:
getContentFilters
in interfaceGuardrailProps
-
getContentFiltersTierConfig
Description copied from interface:GuardrailProps
(experimental) The tier configuration to apply to the guardrail.Default: filters.TierConfig.CLASSIC
- Specified by:
getContentFiltersTierConfig
in interfaceGuardrailProps
-
getContextualGroundingFilters
Description copied from interface:GuardrailProps
(experimental) The contextual grounding filters to apply to the guardrail.Default: []
- Specified by:
getContextualGroundingFilters
in interfaceGuardrailProps
-
getCrossRegionConfig
Description copied from interface:GuardrailProps
(experimental) The cross-region configuration for the guardrail.This is optional and when provided, it should be of type GuardrailCrossRegionConfigProperty.
Default: - No cross-region configuration
- Specified by:
getCrossRegionConfig
in interfaceGuardrailProps
-
getDeniedTopics
Description copied from interface:GuardrailProps
(experimental) A list of policies related to topics that the guardrail should deny.Default: []
- Specified by:
getDeniedTopics
in interfaceGuardrailProps
-
getDescription
Description copied from interface:GuardrailProps
(experimental) The description of the guardrail.Default: - No description
- Specified by:
getDescription
in interfaceGuardrailProps
-
getKmsKey
Description copied from interface:GuardrailProps
(experimental) A custom KMS key to use for encrypting data.Default: - Data is encrypted by default with a key that AWS owns and manages for you
- Specified by:
getKmsKey
in interfaceGuardrailProps
-
getManagedWordListFilters
Description copied from interface:GuardrailProps
(experimental) The managed word filters to apply to the guardrail.Default: []
- Specified by:
getManagedWordListFilters
in interfaceGuardrailProps
-
getPiiFilters
Description copied from interface:GuardrailProps
(experimental) The PII filters to apply to the guardrail.Default: []
- Specified by:
getPiiFilters
in interfaceGuardrailProps
-
getRegexFilters
Description copied from interface:GuardrailProps
(experimental) The regular expression (regex) filters to apply to the guardrail.Default: []
- Specified by:
getRegexFilters
in interfaceGuardrailProps
-
getTopicsTierConfig
Description copied from interface:GuardrailProps
(experimental) The tier configuration to apply to the guardrail.Default: filters.TierConfig.CLASSIC
- Specified by:
getTopicsTierConfig
in interfaceGuardrailProps
-
getWordFilters
Description copied from interface:GuardrailProps
(experimental) The word filters to apply to the guardrail.Default: []
- Specified by:
getWordFilters
in interfaceGuardrailProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-