Class CfnVPNGateway.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPNGateway.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPNGateway>
- Enclosing class:
- CfnVPNGateway
@Stability(Stable)
public static final class CfnVPNGateway.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPNGateway>
A fluent builder for
CfnVPNGateway.-
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn(Number amazonSideAsn) The private Autonomous System Number (ASN) for the Amazon side of a BGP session.build()static CfnVPNGateway.BuilderAny tags assigned to the virtual private gateway.The type of VPN connection the virtual private gateway supports.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnVPNGateway.Builder.
-
type
The type of VPN connection the virtual private gateway supports.- Parameters:
type- The type of VPN connection the virtual private gateway supports. This parameter is required.- Returns:
this
-
amazonSideAsn
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.- Parameters:
amazonSideAsn- The private Autonomous System Number (ASN) for the Amazon side of a BGP session. This parameter is required.- Returns:
this
-
tags
Any tags assigned to the virtual private gateway.- Parameters:
tags- Any tags assigned to the virtual private gateway. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPNGateway>- Returns:
- a newly built instance of
CfnVPNGateway.
-