Class: AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionTypeValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_automated_reasoning_policy.rb

Overview

A value associated with a custom type in the policy definition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, description: nil) ⇒ PolicyDefinitionTypeValueProperty

Returns a new instance of PolicyDefinitionTypeValueProperty.

Parameters:

  • value (String)

    The value associated with a policy definition type.

  • description (String, nil) (defaults to: nil)

    A description of the policy definition type value.



800
801
802
803
804
805
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 800

def initialize(value:, description: nil)
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

A description of the policy definition type value.



816
817
818
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 816

def description
  @description
end

#valueString (readonly)

The value associated with a policy definition type.



811
812
813
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 811

def value
  @value
end

Class Method Details

.jsii_propertiesObject



818
819
820
821
822
823
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 818

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

Instance Method Details

#to_jsiiObject



825
826
827
828
829
830
831
832
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 825

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