Class: AWSCDK::IoT::CfnCommand::CommandParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnCommand::CommandParameterProperty
- Defined in:
- io_t/cfn_command.rb
Overview
Instance Attribute Summary collapse
- #default_value ⇒ AWSCDK::IResolvable, ... readonly
- #description ⇒ String? readonly
- #name ⇒ String readonly
- #type ⇒ String? readonly
- #value ⇒ AWSCDK::IResolvable, ... readonly
- #value_conditions ⇒ AWSCDK::IResolvable, ... readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, default_value: nil, description: nil, type: nil, value: nil, value_conditions: nil) ⇒ CommandParameterProperty
constructor
A new instance of CommandParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, default_value: nil, description: nil, type: nil, value: nil, value_conditions: nil) ⇒ CommandParameterProperty
Returns a new instance of CommandParameterProperty.
740 741 742 743 744 745 746 747 748 749 750 751 752 753 |
# File 'io_t/cfn_command.rb', line 740 def initialize(name:, default_value: nil, description: nil, type: nil, value: nil, value_conditions: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @default_value = default_value.is_a?(Hash) ? ::AWSCDK::IoT::CfnCommand::CommandParameterValueProperty.new(**default_value.transform_keys(&:to_sym)) : default_value Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3QuQ2ZuQ29tbWFuZC5Db21tYW5kUGFyYW1ldGVyVmFsdWVQcm9wZXJ0eSJ9XX19")), "defaultValue") unless @default_value.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? @value = value.is_a?(Hash) ? ::AWSCDK::IoT::CfnCommand::CommandParameterValueProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3QuQ2ZuQ29tbWFuZC5Db21tYW5kUGFyYW1ldGVyVmFsdWVQcm9wZXJ0eSJ9XX19")), "value") unless @value.nil? @value_conditions = value_conditions Jsii::Type.check_type(@value_conditions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90LkNmbkNvbW1hbmQuQ29tbWFuZFBhcmFtZXRlclZhbHVlQ29uZGl0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "valueConditions") unless @value_conditions.nil? end |
Instance Attribute Details
#default_value ⇒ AWSCDK::IResolvable, ... (readonly)
760 761 762 |
# File 'io_t/cfn_command.rb', line 760 def default_value @default_value end |
#description ⇒ String? (readonly)
763 764 765 |
# File 'io_t/cfn_command.rb', line 763 def description @description end |
#name ⇒ String (readonly)
757 758 759 |
# File 'io_t/cfn_command.rb', line 757 def name @name end |
#type ⇒ String? (readonly)
766 767 768 |
# File 'io_t/cfn_command.rb', line 766 def type @type end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
769 770 771 |
# File 'io_t/cfn_command.rb', line 769 def value @value end |
#value_conditions ⇒ AWSCDK::IResolvable, ... (readonly)
772 773 774 |
# File 'io_t/cfn_command.rb', line 772 def value_conditions @value_conditions end |
Class Method Details
.jsii_properties ⇒ Object
774 775 776 777 778 779 780 781 782 783 |
# File 'io_t/cfn_command.rb', line 774 def self.jsii_properties { :name => "name", :default_value => "defaultValue", :description => "description", :type => "type", :value => "value", :value_conditions => "valueConditions", } end |
Instance Method Details
#to_jsii ⇒ Object
785 786 787 788 789 790 791 792 793 794 795 796 |
# File 'io_t/cfn_command.rb', line 785 def to_jsii result = {} result.merge!({ "name" => @name, "defaultValue" => @default_value, "description" => @description, "type" => @type, "value" => @value, "valueConditions" => @value_conditions, }) result.compact end |