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