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 devices that support BGP, the customer gateway's BGP ASN.build()static CfnCustomerGateway.BuilderdeviceName(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.
-
bgpAsn
For devices that support BGP, the customer gateway's BGP ASN.Default: 65000
Default: - 65000
- Parameters:
bgpAsn- For devices that support BGP, the customer gateway's BGP ASN. This parameter is required.- Returns:
this- See Also:
-
ipAddress
IPv4 address for the customer gateway device's outside interface.The address must be static.
- 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:
-
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:
buildin interfacesoftware.amazon.jsii.Builder<CfnCustomerGateway>- Returns:
- a newly built instance of
CfnCustomerGateway.
-