Class: AWSCDK::IoT::CfnSoftwarePackageProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnSoftwarePackageProps
- Defined in:
- io_t/cfn_software_package_props.rb
Overview
Properties for defining a CfnSoftwarePackage.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A summary of the package being created.
-
#package_name ⇒ String?
readonly
The name of the new software package.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Metadata that can be used to manage the package.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, package_name: nil, tags: nil) ⇒ CfnSoftwarePackageProps
constructor
A new instance of CfnSoftwarePackageProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description: nil, package_name: nil, tags: nil) ⇒ CfnSoftwarePackageProps
Returns a new instance of CfnSoftwarePackageProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (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_name ⇒ String? (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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |