Class: AWSCDK::IoT::CfnSoftwarePackageProps

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

Overview

Properties for defining a CfnSoftwarePackage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description: nil, package_name: nil, tags: nil) ⇒ CfnSoftwarePackageProps

Returns a new instance of CfnSoftwarePackageProps.

Parameters:

  • description (String, nil) (defaults to: nil)

    A summary of the package being created.

  • package_name (String, nil) (defaults to: nil)

    The name of the new software package.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    Metadata that can be used to manage the package.



12
13
14
15
16
17
18
19
# File 'io_t/cfn_software_package_props.rb', line 12

def initialize(description: nil, package_name: nil, tags: nil)
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @package_name = package_name
  Jsii::Type.check_type(@package_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "packageName") unless @package_name.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

A summary of the package being created.

This can be used to outline the package's contents or purpose.



27
28
29
# File 'io_t/cfn_software_package_props.rb', line 27

def description
  @description
end

#package_nameString? (readonly)

The name of the new software package.



32
33
34
# File 'io_t/cfn_software_package_props.rb', line 32

def package_name
  @package_name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

Metadata that can be used to manage the package.



37
38
39
# File 'io_t/cfn_software_package_props.rb', line 37

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'io_t/cfn_software_package_props.rb', line 39

def self.jsii_properties
  {
    :description => "description",
    :package_name => "packageName",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'io_t/cfn_software_package_props.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "description" => @description,
    "packageName" => @package_name,
    "tags" => @tags,
  })
  result.compact
end