Class CfnCustomerGatewayPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnCustomerGatewayPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomerGatewayPropsMixin>
- Enclosing class:
CfnCustomerGatewayPropsMixin
@Stability(Stable)
public static final class CfnCustomerGatewayPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomerGatewayPropsMixin>
A fluent builder for
CfnCustomerGatewayPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionFor customer gateway devices that support BGP, specify the device's ASN.bgpAsnExtended(Number bgpAsnExtended) For customer gateway devices that support BGP, specify the device's ASN.build()certificateArn(String certificateArn) The Amazon Resource Name (ARN) for the customer gateway certificate.create()create(CfnPropertyMixinOptions options) deviceName(String deviceName) The name of customer gateway device.The IP address for the customer gateway device's outside interface.One or more tags for the customer gateway.The type of VPN connection that this customer gateway supports (ipsec.1).
-
Method Details
-
create
@Stability(Stable) public static CfnCustomerGatewayPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnCustomerGatewayPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnCustomerGatewayPropsMixin.Builder.
-
bgpAsn
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,647Default: - 65000
- Parameters:
bgpAsn- For customer gateway devices that support BGP, specify the device's ASN. This parameter is required.- Returns:
this- See Also:
-
bgpAsnExtended
@Stability(Stable) public CfnCustomerGatewayPropsMixin.Builder bgpAsnExtended(Number bgpAsnExtended) 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- Parameters:
bgpAsnExtended- For customer gateway devices that support BGP, specify the device's ASN. This parameter is required.- Returns:
this- See Also:
-
certificateArn
@Stability(Stable) public CfnCustomerGatewayPropsMixin.Builder certificateArn(String certificateArn) The Amazon Resource Name (ARN) for the customer gateway certificate.- Parameters:
certificateArn- The Amazon Resource Name (ARN) for the customer gateway certificate. This parameter is required.- Returns:
this- See Also:
-
deviceName
The name of customer gateway device.- Parameters:
deviceName- The name of customer gateway device. This parameter is required.- Returns:
this- See Also:
-
ipAddress
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.- Parameters:
ipAddress- The IP address for the customer gateway device's outside interface. This parameter is required.- Returns:
this- See Also:
-
tags
One or more tags for the customer gateway.- Parameters:
tags- One or more tags for the customer gateway. This parameter is required.- Returns:
this- See Also:
-
type
The type of VPN connection that this customer gateway supports (ipsec.1).- Parameters:
type- The type of VPN connection that this customer gateway supports (ipsec.1). This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCustomerGatewayPropsMixin>- Returns:
- a newly built instance of
CfnCustomerGatewayPropsMixin.
-