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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.GuardrailProps
GuardrailProps.Builder, GuardrailProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(GuardrailProps.Builder builder) Constructor that initializes the object based on literal property values passed by theGuardrailProps.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) 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 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 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:
getGuardrailNamein 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:
getBlockedInputMessagingin 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:
getBlockedOutputsMessagingin interfaceGuardrailProps
-
getContentFilters
Description copied from interface:GuardrailProps(experimental) The content filters to apply to the guardrail.Default: []
- Specified by:
getContentFiltersin interfaceGuardrailProps
-
getContentFiltersTierConfig
Description copied from interface:GuardrailProps(experimental) The tier configuration to apply to the guardrail.Default: filters.TierConfig.CLASSIC
- Specified by:
getContentFiltersTierConfigin interfaceGuardrailProps
-
getContextualGroundingFilters
Description copied from interface:GuardrailProps(experimental) The contextual grounding filters to apply to the guardrail.Default: []
- Specified by:
getContextualGroundingFiltersin 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:
getCrossRegionConfigin interfaceGuardrailProps
-
getDeniedTopics
Description copied from interface:GuardrailProps(experimental) A list of policies related to topics that the guardrail should deny.Default: []
- Specified by:
getDeniedTopicsin interfaceGuardrailProps
-
getDescription
Description copied from interface:GuardrailProps(experimental) The description of the guardrail.Default: - No description
- Specified by:
getDescriptionin 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:
getKmsKeyin interfaceGuardrailProps
-
getManagedWordListFilters
Description copied from interface:GuardrailProps(experimental) The managed word filters to apply to the guardrail.Default: []
- Specified by:
getManagedWordListFiltersin interfaceGuardrailProps
-
getPiiFilters
Description copied from interface:GuardrailProps(experimental) The PII filters to apply to the guardrail.Default: []
- Specified by:
getPiiFiltersin interfaceGuardrailProps
-
getRegexFilters
Description copied from interface:GuardrailProps(experimental) The regular expression (regex) filters to apply to the guardrail.Default: []
- Specified by:
getRegexFiltersin interfaceGuardrailProps
-
getTopicsTierConfig
Description copied from interface:GuardrailProps(experimental) The tier configuration to apply to the guardrail.Default: filters.TierConfig.CLASSIC
- Specified by:
getTopicsTierConfigin interfaceGuardrailProps
-
getWordFilters
Description copied from interface:GuardrailProps(experimental) The word filters to apply to the guardrail.Default: []
- Specified by:
getWordFiltersin interfaceGuardrailProps
-
$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()
-