Class: AWSCDK::Wisdom::CfnAIGuardrail::GuardrailContentFilterConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_ai_guardrail.rb

Overview

Content filter configuration in content policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input_strength:, output_strength:, type:) ⇒ GuardrailContentFilterConfigProperty

Returns a new instance of GuardrailContentFilterConfigProperty.

Parameters:

  • input_strength (String)

    The strength of the input for the guardrail content filter.

  • output_strength (String)

    The output strength of the guardrail content filter.

  • type (String)

    The type of the guardrail content filter.



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_strengthString (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_strengthString (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

#typeString (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_propertiesObject



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_jsiiObject



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