Class: AWSCDK::Bedrock::CfnGuardrail::TopicsTierConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tier_name:) ⇒ TopicsTierConfigProperty

Returns a new instance of TopicsTierConfigProperty.

Parameters:

  • tier_name (String)

    The tier that your guardrail uses for denied topic filters. Valid values include:.



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_nameString (readonly)

The tier that your guardrail uses for denied topic filters. Valid values include:.

  • CLASSIC tier – Provides established guardrails functionality supporting English, French, and Spanish languages.
  • STANDARD tier – 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 .


1803
1804
1805
# File 'bedrock/cfn_guardrail.rb', line 1803

def tier_name
  @tier_name
end

Class Method Details

.jsii_propertiesObject



1805
1806
1807
1808
1809
# File 'bedrock/cfn_guardrail.rb', line 1805

def self.jsii_properties
  {
    :tier_name => "tierName",
  }
end

Instance Method Details

#to_jsiiObject



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