Class: AWSCDK::Wisdom::CfnAIGuardrail::GuardrailManagedWordsConfigProperty

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

Overview

A managed words config.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ GuardrailManagedWordsConfigProperty

Returns a new instance of GuardrailManagedWordsConfigProperty.

Parameters:

  • type (String)

    The type of guardrail managed words.



955
956
957
958
# File 'wisdom/cfn_ai_guardrail.rb', line 955

def initialize(type:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#typeString (readonly)

The type of guardrail managed words.



964
965
966
# File 'wisdom/cfn_ai_guardrail.rb', line 964

def type
  @type
end

Class Method Details

.jsii_propertiesObject



966
967
968
969
970
# File 'wisdom/cfn_ai_guardrail.rb', line 966

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

Instance Method Details

#to_jsiiObject



972
973
974
975
976
977
978
# File 'wisdom/cfn_ai_guardrail.rb', line 972

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
  })
  result.compact
end