Class VPCPeeringConnection.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.VPCPeeringConnection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VPCPeeringConnection>
- Enclosing class:
VPCPeeringConnection
@Stability(Experimental)
public static final class VPCPeeringConnection.Builder
extends Object
implements software.amazon.jsii.Builder<VPCPeeringConnection>
(experimental) A fluent builder for
VPCPeeringConnection
.-
Method Summary
Modifier and TypeMethodDescriptionacceptorVpc
(IVpcV2 acceptorVpc) (experimental) The VPC that is accepting the peering connection.build()
static VPCPeeringConnection.Builder
peerRoleArn
(String peerRoleArn) (experimental) The role arn created in the acceptor account.requestorVpc
(IVpcV2 requestorVpc) (experimental) The VPC that is requesting the peering connection.vpcPeeringConnectionName
(String vpcPeeringConnectionName) (experimental) The resource name of the peering connection.
-
Method Details
-
create
@Stability(Experimental) public static VPCPeeringConnection.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
VPCPeeringConnection.Builder
.
-
acceptorVpc
(experimental) The VPC that is accepting the peering connection.- Parameters:
acceptorVpc
- The VPC that is accepting the peering connection. This parameter is required.- Returns:
this
-
peerRoleArn
(experimental) The role arn created in the acceptor account.Default: - no peerRoleArn needed if not cross account connection
- Parameters:
peerRoleArn
- The role arn created in the acceptor account. This parameter is required.- Returns:
this
-
vpcPeeringConnectionName
@Stability(Experimental) public VPCPeeringConnection.Builder vpcPeeringConnectionName(String vpcPeeringConnectionName) (experimental) The resource name of the peering connection.Default: - peering connection provisioned without any name
- Parameters:
vpcPeeringConnectionName
- The resource name of the peering connection. This parameter is required.- Returns:
this
-
requestorVpc
(experimental) The VPC that is requesting the peering connection.- Parameters:
requestorVpc
- The VPC that is requesting the peering connection. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VPCPeeringConnection>
- Returns:
- a newly built instance of
VPCPeeringConnection
.
-