Class: AWSCDK::Interfaces::AWSNetworkmanager::SiteToSiteVpnAttachmentReference

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

Overview

A reference to a SiteToSiteVpnAttachment resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attachment_id:) ⇒ SiteToSiteVpnAttachmentReference

Returns a new instance of SiteToSiteVpnAttachmentReference.

Parameters:

  • attachment_id (String)

    The AttachmentId of the SiteToSiteVpnAttachment resource.



8
9
10
11
# File 'interfaces/aws_networkmanager/site_to_site_vpn_attachment_reference.rb', line 8

def initialize(attachment_id:)
  @attachment_id = attachment_id
  Jsii::Type.check_type(@attachment_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attachmentId")
end

Instance Attribute Details

#attachment_idString (readonly)

The AttachmentId of the SiteToSiteVpnAttachment resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/aws_networkmanager/site_to_site_vpn_attachment_reference.rb', line 16

def attachment_id
  @attachment_id
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/aws_networkmanager/site_to_site_vpn_attachment_reference.rb', line 18

def self.jsii_properties
  {
    :attachment_id => "attachmentId",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'interfaces/aws_networkmanager/site_to_site_vpn_attachment_reference.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "attachmentId" => @attachment_id,
  })
  result.compact
end