Class: AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionTypeProperty
- Defined in:
- bedrock/cfn_automated_reasoning_policy.rb
Overview
A custom type definition within the policy.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the custom type defined in the policy.
-
#name ⇒ String
readonly
The name of a custom type defined in the policy.
-
#values ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionTypeValueProperty>
readonly
The possible values for a custom type defined in the policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, values:, description: nil) ⇒ PolicyDefinitionTypeProperty
constructor
A new instance of PolicyDefinitionTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, values:, description: nil) ⇒ PolicyDefinitionTypeProperty
Returns a new instance of PolicyDefinitionTypeProperty.
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
#description ⇒ String? (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 |
#name ⇒ String (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 |
#values ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionTypeValueProperty> (readonly)
The possible values for a custom type defined in the policy.
766 767 768 |
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 766 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |