Class: AWSCDK::Bedrock::CfnGuardrail::TopicsTierConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnGuardrail::TopicsTierConfigProperty
- Defined in:
- bedrock/cfn_guardrail.rb
Overview
The tier that your guardrail uses for denied topic filters.
Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.
Instance Attribute Summary collapse
-
#tier_name ⇒ String
readonly
The tier that your guardrail uses for denied topic filters.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tier_name:) ⇒ TopicsTierConfigProperty
constructor
A new instance of TopicsTierConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(tier_name:) ⇒ TopicsTierConfigProperty
Returns a new instance of TopicsTierConfigProperty.
1791 1792 1793 1794 |
# File 'bedrock/cfn_guardrail.rb', line 1791 def initialize(tier_name:) @tier_name = tier_name Jsii::Type.check_type(@tier_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tierName") end |
Instance Attribute Details
#tier_name ⇒ String (readonly)
The tier that your guardrail uses for denied topic filters. Valid values include:.
CLASSICtier – Provides established guardrails functionality supporting English, French, and Spanish languages.STANDARDtier – Provides a more robust solution than theCLASSICtier and has more comprehensive language support. This tier requires that your guardrail use cross-Region inference .
1803 1804 1805 |
# File 'bedrock/cfn_guardrail.rb', line 1803 def tier_name @tier_name end |
Class Method Details
.jsii_properties ⇒ Object
1805 1806 1807 1808 1809 |
# File 'bedrock/cfn_guardrail.rb', line 1805 def self.jsii_properties { :tier_name => "tierName", } end |
Instance Method Details
#to_jsii ⇒ Object
1811 1812 1813 1814 1815 1816 1817 |
# File 'bedrock/cfn_guardrail.rb', line 1811 def to_jsii result = {} result.merge!({ "tierName" => @tier_name, }) result.compact end |