Class: AWSCDK::APIGatewayv2::VPCLinkAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::VPCLinkAttributes
- Defined in:
- api_gatewayv2/vpc_link_attributes.rb
Overview
Attributes when importing a new VpcLink.
Instance Attribute Summary collapse
-
#vpc ⇒ AWSCDK::EC2::IVPC
readonly
The VPC to which this VPC link is associated with.
-
#vpc_link_id ⇒ String
readonly
The VPC Link id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(vpc:, vpc_link_id:) ⇒ VPCLinkAttributes
constructor
A new instance of VPCLinkAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(vpc:, vpc_link_id:) ⇒ VPCLinkAttributes
Returns a new instance of VPCLinkAttributes.
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
#vpc ⇒ AWSCDK::EC2::IVPC (readonly)
The VPC to which this VPC link is associated with.
19 20 21 |
# File 'api_gatewayv2/vpc_link_attributes.rb', line 19 def vpc @vpc end |
#vpc_link_id ⇒ String (readonly)
The VPC Link id.
23 24 25 |
# File 'api_gatewayv2/vpc_link_attributes.rb', line 23 def vpc_link_id @vpc_link_id end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |