Class: AWSCDK::Interfaces::AWSIot::SoftwarePackageVersionReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSIot::SoftwarePackageVersionReference
- Defined in:
- interfaces/aws_iot/software_package_version_reference.rb
Overview
A reference to a SoftwarePackageVersion resource.
Instance Attribute Summary collapse
-
#package_name ⇒ String
readonly
The PackageName of the SoftwarePackageVersion resource.
-
#version_name ⇒ String
readonly
The VersionName of the SoftwarePackageVersion resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(package_name:, version_name:) ⇒ SoftwarePackageVersionReference
constructor
A new instance of SoftwarePackageVersionReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(package_name:, version_name:) ⇒ SoftwarePackageVersionReference
Returns a new instance of SoftwarePackageVersionReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_iot/software_package_version_reference.rb', line 9 def initialize(package_name:, version_name:) @package_name = package_name Jsii::Type.check_type(@package_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "packageName") @version_name = version_name Jsii::Type.check_type(@version_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "versionName") end |
Instance Attribute Details
#package_name ⇒ String (readonly)
The PackageName of the SoftwarePackageVersion resource.
19 20 21 |
# File 'interfaces/aws_iot/software_package_version_reference.rb', line 19 def package_name @package_name end |
#version_name ⇒ String (readonly)
The VersionName of the SoftwarePackageVersion resource.
23 24 25 |
# File 'interfaces/aws_iot/software_package_version_reference.rb', line 23 def version_name @version_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_iot/software_package_version_reference.rb', line 25 def self.jsii_properties { :package_name => "packageName", :version_name => "versionName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_iot/software_package_version_reference.rb', line 32 def to_jsii result = {} result.merge!({ "packageName" => @package_name, "versionName" => @version_name, }) result.compact end |