java.lang.Object
java.lang.Enum<TierConfig>
software.amazon.awscdk.services.bedrock.alpha.TierConfig
All Implemented Interfaces:
Serializable, Comparable<TierConfig>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-02T11:25:42.855Z") @Stability(Experimental) public enum TierConfig extends Enum<TierConfig>
(experimental) **************************************************************************** TIER CONFIG ***************************************************************************.

Example:

 Guardrail guardrail = Guardrail.Builder.create(this, "bedrockGuardrails")
         .guardrailName("my-BedrockGuardrails")
         // Configure tier for topic filters (optional)
         .topicsTierConfig(TierConfig.STANDARD)
         .build();
 // Use a predefined topic
 guardrail.addDeniedTopicFilter(Topic.FINANCIAL_ADVICE);
 // Create a custom topic with input/output actions
 guardrail.addDeniedTopicFilter(Topic.custom(CustomTopicProps.builder()
         .name("Legal_Advice")
         .definition("Offering guidance or suggestions on legal matters, legal actions, interpretation of laws, or legal rights and responsibilities.")
         .examples(List.of("Can I sue someone for this?", "What are my legal rights in this situation?", "Is this action against the law?", "What should I do to file a legal complaint?", "Can you explain this law to me?"))
         // props below are optional
         .inputAction(GuardrailAction.BLOCK)
         .inputEnabled(true)
         .outputAction(GuardrailAction.NONE)
         .outputEnabled(true)
         .build()));
 
  • Enum Constant Details

    • CLASSIC

      @Stability(Experimental) public static final TierConfig CLASSIC
      (experimental) Provides established guardrails functionality supporting English, French, and Spanish languages.
    • STANDARD

      @Stability(Experimental) public static final TierConfig STANDARD
      (experimental) Provides a more robust solution than the CLASSIC tier and has more comprehensive language support.

      This tier requires that your guardrail use cross-Region inference.

  • Method Details

    • values

      public static TierConfig[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TierConfig valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null