TierConfig
- class aws_cdk.aws_bedrock_alpha.TierConfig(*values)
Bases:
Enum
(experimental) ************************************************************************ TIER CONFIG ***********************************************************************.
- Stability:
experimental
- ExampleMetadata:
fixture=default infused
Example:
guardrail = bedrock.Guardrail(self, "bedrockGuardrails", guardrail_name="my-BedrockGuardrails", # Configure tier for topic filters (optional) topics_tier_config=bedrock.TierConfig.STANDARD ) # Use a predefined topic guardrail.add_denied_topic_filter(bedrock.Topic.FINANCIAL_ADVICE) # Create a custom topic with input/output actions guardrail.add_denied_topic_filter( bedrock.Topic.custom( name="Legal_Advice", definition="Offering guidance or suggestions on legal matters, legal actions, interpretation of laws, or legal rights and responsibilities.", examples=["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 input_action=bedrock.GuardrailAction.BLOCK, input_enabled=True, output_action=bedrock.GuardrailAction.NONE, output_enabled=True ))
Attributes
- CLASSIC
(experimental) Provides established guardrails functionality supporting English, French, and Spanish languages.
- Stability:
experimental
- 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.
- Stability:
experimental