Class: AWSCDK::EC2::CfnVPNGatewayRoutePropagationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnVPNGatewayRoutePropagationProps
- Defined in:
- ec2/cfn_vpn_gateway_route_propagation_props.rb
Overview
Properties for defining a CfnVPNGatewayRoutePropagation.
Instance Attribute Summary collapse
-
#route_table_ids ⇒ Array<String>
readonly
The ID of the route table.
-
#vpn_gateway_id ⇒ String
readonly
The ID of the virtual private gateway that is attached to a VPC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(route_table_ids:, vpn_gateway_id:) ⇒ CfnVPNGatewayRoutePropagationProps
constructor
A new instance of CfnVPNGatewayRoutePropagationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(route_table_ids:, vpn_gateway_id:) ⇒ CfnVPNGatewayRoutePropagationProps
Returns a new instance of CfnVPNGatewayRoutePropagationProps.
11 12 13 14 15 16 |
# File 'ec2/cfn_vpn_gateway_route_propagation_props.rb', line 11 def initialize(route_table_ids:, vpn_gateway_id:) @route_table_ids = route_table_ids Jsii::Type.check_type(@route_table_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "routeTableIds") @vpn_gateway_id = vpn_gateway_id Jsii::Type.check_type(@vpn_gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpnGatewayId") end |
Instance Attribute Details
#route_table_ids ⇒ Array<String> (readonly)
The ID of the route table.
The routing table must be associated with the same VPC that the virtual private gateway is attached to.
24 25 26 |
# File 'ec2/cfn_vpn_gateway_route_propagation_props.rb', line 24 def route_table_ids @route_table_ids end |
#vpn_gateway_id ⇒ String (readonly)
The ID of the virtual private gateway that is attached to a VPC.
The virtual private gateway must be attached to the same VPC that the routing tables are associated with.
31 32 33 |
# File 'ec2/cfn_vpn_gateway_route_propagation_props.rb', line 31 def vpn_gateway_id @vpn_gateway_id end |
Class Method Details
.jsii_properties ⇒ Object
33 34 35 36 37 38 |
# File 'ec2/cfn_vpn_gateway_route_propagation_props.rb', line 33 def self.jsii_properties { :route_table_ids => "routeTableIds", :vpn_gateway_id => "vpnGatewayId", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'ec2/cfn_vpn_gateway_route_propagation_props.rb', line 40 def to_jsii result = {} result.merge!({ "routeTableIds" => @route_table_ids, "vpnGatewayId" => @vpn_gateway_id, }) result.compact end |