Class: AWSCDK::IoT::CfnCommand::CommandPayloadProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_command.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content: nil, content_type: nil) ⇒ CommandPayloadProperty

Returns a new instance of CommandPayloadProperty.

Parameters:

  • content (String, nil) (defaults to: nil)
  • content_type (String, nil) (defaults to: nil)


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

#contentString? (readonly)



1026
1027
1028
# File 'io_t/cfn_command.rb', line 1026

def content
  @content
end

#content_typeString? (readonly)



1029
1030
1031
# File 'io_t/cfn_command.rb', line 1029

def content_type
  @content_type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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