Class: AWSCDK::Interfaces::AWSNetworkmanager::LinkAssociationReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_networkmanager/link_association_reference.rb

Overview

A reference to a LinkAssociation resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device_id:, global_network_id:, link_id:) ⇒ LinkAssociationReference

Returns a new instance of LinkAssociationReference.

Parameters:

  • device_id (String)

    The DeviceId of the LinkAssociation resource.

  • global_network_id (String)

    The GlobalNetworkId of the LinkAssociation resource.

  • link_id (String)

    The LinkId of the LinkAssociation resource.



10
11
12
13
14
15
16
17
# File 'interfaces/aws_networkmanager/link_association_reference.rb', line 10

def initialize(device_id:, global_network_id:, link_id:)
  @device_id = device_id
  Jsii::Type.check_type(@device_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deviceId")
  @global_network_id = global_network_id
  Jsii::Type.check_type(@global_network_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "globalNetworkId")
  @link_id = link_id
  Jsii::Type.check_type(@link_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "linkId")
end

Instance Attribute Details

#device_idString (readonly)

The DeviceId of the LinkAssociation resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_networkmanager/link_association_reference.rb', line 22

def device_id
  @device_id
end

#global_network_idString (readonly)

The GlobalNetworkId of the LinkAssociation resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_networkmanager/link_association_reference.rb', line 26

def global_network_id
  @global_network_id
end

The LinkId of the LinkAssociation resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_networkmanager/link_association_reference.rb', line 30

def link_id
  @link_id
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/aws_networkmanager/link_association_reference.rb', line 32

def self.jsii_properties
  {
    :device_id => "deviceId",
    :global_network_id => "globalNetworkId",
    :link_id => "linkId",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/aws_networkmanager/link_association_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "deviceId" => @device_id,
    "globalNetworkId" => @global_network_id,
    "linkId" => @link_id,
  })
  result.compact
end