Class: AWSCDK::NetworkManager::CfnCustomerGatewayAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_manager/cfn_customer_gateway_association_props.rb

Overview

Properties for defining a CfnCustomerGatewayAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(customer_gateway_arn:, device_id:, global_network_id:, link_id: nil) ⇒ CfnCustomerGatewayAssociationProps

Returns a new instance of CfnCustomerGatewayAssociationProps.

Parameters:

  • customer_gateway_arn (String)

    The Amazon Resource Name (ARN) of the customer gateway.

  • device_id (String)

    The ID of the device.

  • global_network_id (String)

    The ID of the global network.

  • link_id (String, nil) (defaults to: nil)

    The ID of the link.



13
14
15
16
17
18
19
20
21
22
# File 'network_manager/cfn_customer_gateway_association_props.rb', line 13

def initialize(customer_gateway_arn:, device_id:, global_network_id:, link_id: nil)
  @customer_gateway_arn = customer_gateway_arn
  Jsii::Type.check_type(@customer_gateway_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customerGatewayArn")
  @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") unless @link_id.nil?
end

Instance Attribute Details

#customer_gateway_arnString (readonly)

The Amazon Resource Name (ARN) of the customer gateway.



28
29
30
# File 'network_manager/cfn_customer_gateway_association_props.rb', line 28

def customer_gateway_arn
  @customer_gateway_arn
end

#device_idString (readonly)

The ID of the device.



33
34
35
# File 'network_manager/cfn_customer_gateway_association_props.rb', line 33

def device_id
  @device_id
end

#global_network_idString (readonly)

The ID of the global network.



38
39
40
# File 'network_manager/cfn_customer_gateway_association_props.rb', line 38

def global_network_id
  @global_network_id
end

The ID of the link.



43
44
45
# File 'network_manager/cfn_customer_gateway_association_props.rb', line 43

def link_id
  @link_id
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'network_manager/cfn_customer_gateway_association_props.rb', line 45

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

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'network_manager/cfn_customer_gateway_association_props.rb', line 54

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