Class: AWSCDK::Wisdom::CfnAIGuardrail::GuardrailContentFilterConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAIGuardrail::GuardrailContentFilterConfigProperty
- Defined in:
- wisdom/cfn_ai_guardrail.rb
Overview
Content filter configuration in content policy.
Instance Attribute Summary collapse
-
#input_strength ⇒ String
readonly
The strength of the input for the guardrail content filter.
-
#output_strength ⇒ String
readonly
The output strength of the guardrail content filter.
-
#type ⇒ String
readonly
The type of the guardrail content filter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(input_strength:, output_strength:, type:) ⇒ GuardrailContentFilterConfigProperty
constructor
A new instance of GuardrailContentFilterConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(input_strength:, output_strength:, type:) ⇒ GuardrailContentFilterConfigProperty
Returns a new instance of GuardrailContentFilterConfigProperty.
860 861 862 863 864 865 866 867 |
# File 'wisdom/cfn_ai_guardrail.rb', line 860 def initialize(input_strength:, output_strength:, type:) @input_strength = input_strength Jsii::Type.check_type(@input_strength, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputStrength") @output_strength = output_strength Jsii::Type.check_type(@output_strength, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "outputStrength") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#input_strength ⇒ String (readonly)
The strength of the input for the guardrail content filter.
873 874 875 |
# File 'wisdom/cfn_ai_guardrail.rb', line 873 def input_strength @input_strength end |
#output_strength ⇒ String (readonly)
The output strength of the guardrail content filter.
878 879 880 |
# File 'wisdom/cfn_ai_guardrail.rb', line 878 def output_strength @output_strength end |
#type ⇒ String (readonly)
The type of the guardrail content filter.
883 884 885 |
# File 'wisdom/cfn_ai_guardrail.rb', line 883 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
885 886 887 888 889 890 891 |
# File 'wisdom/cfn_ai_guardrail.rb', line 885 def self.jsii_properties { :input_strength => "inputStrength", :output_strength => "outputStrength", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
893 894 895 896 897 898 899 900 901 |
# File 'wisdom/cfn_ai_guardrail.rb', line 893 def to_jsii result = {} result.merge!({ "inputStrength" => @input_strength, "outputStrength" => @output_strength, "type" => @type, }) result.compact end |