enum TierConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.TierConfig |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#TierConfig |
![]() | software.amazon.awscdk.services.bedrock.alpha.TierConfig |
![]() | aws_cdk.aws_bedrock_alpha.TierConfig |
![]() | @aws-cdk/aws-bedrock-alpha » TierConfig |
**************************************************************************** TIER CONFIG ***************************************************************************.
Example
const guardrail = new bedrock.Guardrail(this, 'bedrockGuardrails', {
guardrailName: 'my-BedrockGuardrails',
// Configure tier for topic filters (optional)
topicsTierConfig: bedrock.TierConfig.STANDARD,
});
// Use a predefined topic
guardrail.addDeniedTopicFilter(bedrock.Topic.FINANCIAL_ADVICE);
// Create a custom topic with input/output actions
guardrail.addDeniedTopicFilter(
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
inputAction: bedrock.GuardrailAction.BLOCK,
inputEnabled: true,
outputAction: bedrock.GuardrailAction.NONE,
outputEnabled: true,
})
);
Members
Name | Description |
---|---|
CLASSIC | Provides established guardrails functionality supporting English, French, and Spanish languages. |
STANDARD | Provides a more robust solution than the CLASSIC tier and has more comprehensive language support. |
CLASSIC
Provides established guardrails functionality supporting English, French, and Spanish languages.
STANDARD
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.