EnableVpnGatewayOptions

class aws_cdk.aws_ec2.EnableVpnGatewayOptions(*, type, amazon_side_asn=None, vpn_route_propagation=None)

Bases: VpnGatewayProps

Options for the Vpc.enableVpnGateway() method.

Parameters:
  • type (str) – Default type ipsec.1.

  • amazon_side_asn (Union[int, float, None]) – Explicitly specify an Asn or let aws pick an Asn for you. Default: 65000

  • vpn_route_propagation (Optional[Sequence[Union[SubnetSelection, Dict[str, Any]]]]) – Provide an array of subnets where the route propagation should be added. Default: noPropagation

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

# subnet: ec2.Subnet
# subnet_filter: ec2.SubnetFilter

enable_vpn_gateway_options = ec2.EnableVpnGatewayOptions(
    type="type",

    # the properties below are optional
    amazon_side_asn=123,
    vpn_route_propagation=[ec2.SubnetSelection(
        availability_zones=["availabilityZones"],
        one_per_az=False,
        subnet_filters=[subnet_filter],
        subnet_group_name="subnetGroupName",
        subnet_name="subnetName",
        subnets=[subnet],
        subnet_type=ec2.SubnetType.ISOLATED
    )]
)

Attributes

amazon_side_asn

Explicitly specify an Asn or let aws pick an Asn for you.

Default:

65000

type

Default type ipsec.1.

vpn_route_propagation

Provide an array of subnets where the route propagation should be added.

Default:

noPropagation