Class: AWSCDK::Interfaces::AWSPanorama::PackageReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_panorama/package_reference.rb

Overview

A reference to a Package resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(package_arn:, package_id:) ⇒ PackageReference

Returns a new instance of PackageReference.

Parameters:

  • package_arn (String)

    The ARN of the Package resource.

  • package_id (String)

    The PackageId of the Package resource.



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_arnString (readonly)

The ARN of the Package resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_panorama/package_reference.rb', line 19

def package_arn
  @package_arn
end

#package_idString (readonly)

The PackageId of the Package resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_panorama/package_reference.rb', line 23

def package_id
  @package_id
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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