Class: AWSCDK::IoT::CfnCommand::CommandPayloadProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnCommand::CommandPayloadProperty
- Defined in:
- io_t/cfn_command.rb
Overview
Instance Attribute Summary collapse
- #content ⇒ String? readonly
- #content_type ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content: nil, content_type: nil) ⇒ CommandPayloadProperty
constructor
A new instance of CommandPayloadProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(content: nil, content_type: nil) ⇒ CommandPayloadProperty
Returns a new instance of CommandPayloadProperty.
1017 1018 1019 1020 1021 1022 |
# File 'io_t/cfn_command.rb', line 1017 def initialize(content: nil, content_type: nil) @content = content Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "content") unless @content.nil? @content_type = content_type Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentType") unless @content_type.nil? end |
Instance Attribute Details
#content ⇒ String? (readonly)
1026 1027 1028 |
# File 'io_t/cfn_command.rb', line 1026 def content @content end |
#content_type ⇒ String? (readonly)
1029 1030 1031 |
# File 'io_t/cfn_command.rb', line 1029 def content_type @content_type end |
Class Method Details
.jsii_properties ⇒ Object
1031 1032 1033 1034 1035 1036 |
# File 'io_t/cfn_command.rb', line 1031 def self.jsii_properties { :content => "content", :content_type => "contentType", } end |
Instance Method Details
#to_jsii ⇒ Object
1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'io_t/cfn_command.rb', line 1038 def to_jsii result = {} result.merge!({ "content" => @content, "contentType" => @content_type, }) result.compact end |