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
  • 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

      protected Jsii$Proxy(GuardrailProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the GuardrailProps.Builder.
  • Method Details

    • getGuardrailName

      public final String 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 interface GuardrailProps
    • getBlockedInputMessaging

      public final String 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 interface GuardrailProps
    • getBlockedOutputsMessaging

      public final String 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 interface GuardrailProps
    • getContentFilters

      public final List<ContentFilter> getContentFilters()
      Description copied from interface: GuardrailProps
      (experimental) The content filters to apply to the guardrail.

      Default: []

      Specified by:
      getContentFilters in interface GuardrailProps
    • getContentFiltersTierConfig

      public final TierConfig getContentFiltersTierConfig()
      Description copied from interface: GuardrailProps
      (experimental) The tier configuration to apply to the guardrail.

      Default: filters.TierConfig.CLASSIC

      Specified by:
      getContentFiltersTierConfig in interface GuardrailProps
    • getContextualGroundingFilters

      public final List<ContextualGroundingFilter> getContextualGroundingFilters()
      Description copied from interface: GuardrailProps
      (experimental) The contextual grounding filters to apply to the guardrail.

      Default: []

      Specified by:
      getContextualGroundingFilters in interface GuardrailProps
    • getCrossRegionConfig

      public final GuardrailCrossRegionConfigProperty 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 interface GuardrailProps
    • getDeniedTopics

      public final List<Topic> getDeniedTopics()
      Description copied from interface: GuardrailProps
      (experimental) A list of policies related to topics that the guardrail should deny.

      Default: []

      Specified by:
      getDeniedTopics in interface GuardrailProps
    • getDescription

      public final String getDescription()
      Description copied from interface: GuardrailProps
      (experimental) The description of the guardrail.

      Default: - No description

      Specified by:
      getDescription in interface GuardrailProps
    • getKmsKey

      public final IKey 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 interface GuardrailProps
    • getManagedWordListFilters

      public final List<ManagedWordFilter> getManagedWordListFilters()
      Description copied from interface: GuardrailProps
      (experimental) The managed word filters to apply to the guardrail.

      Default: []

      Specified by:
      getManagedWordListFilters in interface GuardrailProps
    • getPiiFilters

      public final List<PIIFilter> getPiiFilters()
      Description copied from interface: GuardrailProps
      (experimental) The PII filters to apply to the guardrail.

      Default: []

      Specified by:
      getPiiFilters in interface GuardrailProps
    • getRegexFilters

      public final List<RegexFilter> getRegexFilters()
      Description copied from interface: GuardrailProps
      (experimental) The regular expression (regex) filters to apply to the guardrail.

      Default: []

      Specified by:
      getRegexFilters in interface GuardrailProps
    • getTopicsTierConfig

      public final TierConfig getTopicsTierConfig()
      Description copied from interface: GuardrailProps
      (experimental) The tier configuration to apply to the guardrail.

      Default: filters.TierConfig.CLASSIC

      Specified by:
      getTopicsTierConfig in interface GuardrailProps
    • getWordFilters

      public final List<WordFilter> getWordFilters()
      Description copied from interface: GuardrailProps
      (experimental) The word filters to apply to the guardrail.

      Default: []

      Specified by:
      getWordFilters in interface GuardrailProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object