Class CfnCustomerGateway.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnCustomerGateway.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomerGateway>
- Enclosing class:
CfnCustomerGateway
@Stability(Stable)
public static final class CfnCustomerGateway.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomerGateway>
A fluent builder for
CfnCustomerGateway
.-
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.static CfnCustomerGateway.Builder
deviceName
(String deviceName) The name of customer gateway device.IPv4 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 CfnCustomerGateway.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnCustomerGateway.Builder
.
-
ipAddress
IPv4 address for the customer gateway device's outside interface.The address must be static. If
OutsideIpAddressType
in your VPN connection options is set toPrivateIpv4
, you can use an RFC6598 or RFC1918 private IPv4 address. IfOutsideIpAddressType
is set toPublicIpv4
, you can use a public IPv4 address.- Parameters:
ipAddress
- IPv4 address for the customer gateway device's outside interface. 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:
-
bgpAsn
For customer gateway devices that support BGP, specify the device's ASN.You must specify either
BgpAsn
orBgpAsnExtended
when creating the customer gateway. If the ASN is larger than2,147,483,647
, you must useBgpAsnExtended
.Default: 65000
Valid values:
1
to2,147,483,647
Default: - 65000
- Parameters:
bgpAsn
- For customer gateway devices that support BGP, specify the device's ASN. This parameter is required.- Returns:
this
- See Also:
-
bgpAsnExtended
For customer gateway devices that support BGP, specify the device's ASN.You must specify either
BgpAsn
orBgpAsnExtended
when creating the customer gateway. If the ASN is larger than2,147,483,647
, you must useBgpAsnExtended
.Valid values:
2,147,483,648
to4,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
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:
-
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:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCustomerGateway>
- Returns:
- a newly built instance of
CfnCustomerGateway
.
-