Class: AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionTypeProperty

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

Overview

A custom type definition within the policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, values:, description: nil) ⇒ PolicyDefinitionTypeProperty

Returns a new instance of PolicyDefinitionTypeProperty.

Parameters:



748
749
750
751
752
753
754
755
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 748

def initialize(name:, values:, description: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5BdXRvbWF0ZWRSZWFzb25pbmdQb2xpY3kuUG9saWN5RGVmaW5pdGlvblR5cGVWYWx1ZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "values")
  @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 custom type defined in the policy.



771
772
773
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 771

def description
  @description
end

#nameString (readonly)

The name of a custom type defined in the policy.



761
762
763
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 761

def name
  @name
end

Class Method Details

.jsii_propertiesObject



773
774
775
776
777
778
779
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 773

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

Instance Method Details

#to_jsiiObject



781
782
783
784
785
786
787
788
789
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 781

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