Class: AWSCDK::EC2::CfnVPNGatewayRoutePropagationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_vpn_gateway_route_propagation_props.rb

Overview

Properties for defining a CfnVPNGatewayRoutePropagation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route_table_ids:, vpn_gateway_id:) ⇒ CfnVPNGatewayRoutePropagationProps

Returns a new instance of CfnVPNGatewayRoutePropagationProps.

Parameters:

  • route_table_ids (Array<String>)

    The ID of the route table.

  • vpn_gateway_id (String)

    The ID of the virtual private gateway that is attached to a VPC.



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_idsArray<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_idString (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_propertiesObject



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_jsiiObject



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