Class VpnGateway.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpnGateway.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpnGateway>
- Enclosing class:
VpnGateway
@Stability(Stable)
public static final class VpnGateway.Builder
extends Object
implements software.amazon.jsii.Builder<VpnGateway>
A fluent builder for
VpnGateway
.-
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn
(Number amazonSideAsn) Explicitly specify an Asn or let aws pick an Asn for you.build()
static VpnGateway.Builder
Default type ipsec.1.
-
Method Details
-
create
@Stability(Stable) public static VpnGateway.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
VpnGateway.Builder
.
-
type
Default type ipsec.1.- Parameters:
type
- Default type ipsec.1. This parameter is required.- Returns:
this
-
amazonSideAsn
Explicitly specify an Asn or let aws pick an Asn for you.Default: 65000
- Parameters:
amazonSideAsn
- Explicitly specify an Asn or let aws pick an Asn for you. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VpnGateway>
- Returns:
- a newly built instance of
VpnGateway
.
-