Class: AWSCDK::APIGatewayv2::VPCLinkAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gatewayv2/vpc_link_attributes.rb

Overview

Attributes when importing a new VpcLink.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpc:, vpc_link_id:) ⇒ VPCLinkAttributes

Returns a new instance of VPCLinkAttributes.

Parameters:

  • vpc (AWSCDK::EC2::IVPC)

    The VPC to which this VPC link is associated with.

  • vpc_link_id (String)

    The VPC Link id.



9
10
11
12
13
14
# File 'api_gatewayv2/vpc_link_attributes.rb', line 9

def initialize(vpc:, vpc_link_id:)
  @vpc = vpc
  Jsii::Type.check_type(@vpc, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklWcGMifQ==")), "vpc")
  @vpc_link_id = vpc_link_id
  Jsii::Type.check_type(@vpc_link_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcLinkId")
end

Instance Attribute Details

#vpcAWSCDK::EC2::IVPC (readonly)

The VPC to which this VPC link is associated with.

Returns:



19
20
21
# File 'api_gatewayv2/vpc_link_attributes.rb', line 19

def vpc
  @vpc
end

The VPC Link id.

Returns:

  • (String)


23
24
25
# File 'api_gatewayv2/vpc_link_attributes.rb', line 23

def vpc_link_id
  @vpc_link_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'api_gatewayv2/vpc_link_attributes.rb', line 25

def self.jsii_properties
  {
    :vpc => "vpc",
    :vpc_link_id => "vpcLinkId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'api_gatewayv2/vpc_link_attributes.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "vpc" => @vpc,
    "vpcLinkId" => @vpc_link_id,
  })
  result.compact
end