Class: AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionTypeValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionTypeValueProperty
- Defined in:
- bedrock/cfn_automated_reasoning_policy.rb
Overview
A value associated with a custom type in the policy definition.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the policy definition type value.
-
#value ⇒ String
readonly
The value associated with a policy definition type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:, description: nil) ⇒ PolicyDefinitionTypeValueProperty
constructor
A new instance of PolicyDefinitionTypeValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:, description: nil) ⇒ PolicyDefinitionTypeValueProperty
Returns a new instance of PolicyDefinitionTypeValueProperty.
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
#description ⇒ String? (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 |
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |