CfnCustomerGatewayProps
- class aws_cdk.aws_ec2.CfnCustomerGatewayProps(*, ip_address, type, bgp_asn=None, bgp_asn_extended=None, certificate_arn=None, device_name=None, tags=None)
Bases:
objectProperties for defining a
CfnCustomerGateway.- Parameters:
ip_address (
str) – The IP address for the customer gateway device’s outside interface. The address must be static. IfOutsideIpAddressTypein your VPN connection options is set toPrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. IfOutsideIpAddressTypeis set toIpv6, you can use an IPv6 address.type (
str) – The type of VPN connection that this customer gateway supports (ipsec.1).bgp_asn (
Union[int,float,None]) – For customer gateway devices that support BGP, specify the device’s ASN. You must specify eitherBgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended. Default: 65000 Valid values:1to2,147,483,647Default: - 65000bgp_asn_extended (
Union[int,float,None]) – For customer gateway devices that support BGP, specify the device’s ASN. You must specify eitherBgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended. Valid values:2,147,483,648to4,294,967,295certificate_arn (
Optional[str]) – The Amazon Resource Name (ARN) for the customer gateway certificate.device_name (
Optional[str]) – The name of customer gateway device.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – One or more tags for the customer gateway.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 cfn_customer_gateway_props = ec2.CfnCustomerGatewayProps( ip_address="ipAddress", type="type", # the properties below are optional bgp_asn=123, bgp_asn_extended=123, certificate_arn="certificateArn", device_name="deviceName", tags=[CfnTag( key="key", value="value" )] )
Attributes
- bgp_asn
For customer gateway devices that support BGP, specify the device’s ASN.
You must specify either
BgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended.Default: 65000
Valid values:
1to2,147,483,647
- bgp_asn_extended
For customer gateway devices that support BGP, specify the device’s ASN.
You must specify either
BgpAsnorBgpAsnExtendedwhen creating the customer gateway. If the ASN is larger than2,147,483,647, you must useBgpAsnExtended.Valid values:
2,147,483,648to4,294,967,295
- certificate_arn
The Amazon Resource Name (ARN) for the customer gateway certificate.
- device_name
The name of customer gateway device.
- ip_address
The IP address for the customer gateway device’s outside interface.
The address must be static. If
OutsideIpAddressTypein your VPN connection options is set toPrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. IfOutsideIpAddressTypeis set toIpv6, you can use an IPv6 address.
- tags
One or more tags for the customer gateway.
- type
The type of VPN connection that this customer gateway supports (
ipsec.1).