Class CfnVPCPeeringConnection.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCPeeringConnection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCPeeringConnection>
- Enclosing class:
CfnVPCPeeringConnection
@Stability(Stable)
public static final class CfnVPCPeeringConnection.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCPeeringConnection>
A fluent builder for
CfnVPCPeeringConnection
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
peerOwnerId
(String peerOwnerId) The AWS account ID of the owner of the accepter VPC.peerRegion
(String peerRegion) The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.peerRoleArn
(String peerRoleArn) The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.The ID of the VPC with which you are creating the VPC peering connection.Any tags assigned to the resource.The ID of the VPC.
-
Method Details
-
create
@Stability(Stable) public static CfnVPCPeeringConnection.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
CfnVPCPeeringConnection.Builder
.
-
peerVpcId
The ID of the VPC with which you are creating the VPC peering connection.You must specify this parameter in the request.
- Parameters:
peerVpcId
- The ID of the VPC with which you are creating the VPC peering connection. This parameter is required.- Returns:
this
- See Also:
-
vpcId
The ID of the VPC.- Parameters:
vpcId
- The ID of the VPC. This parameter is required.- Returns:
this
- See Also:
-
peerOwnerId
The AWS account ID of the owner of the accepter VPC.Default: Your AWS account ID
- Parameters:
peerOwnerId
- The AWS account ID of the owner of the accepter VPC. This parameter is required.- Returns:
this
- See Also:
-
peerRegion
The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.Default: The Region in which you make the request.
- Parameters:
peerRegion
- The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request. This parameter is required.- Returns:
this
- See Also:
-
peerRoleArn
The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.This is required when you are peering a VPC in a different AWS account.
- Parameters:
peerRoleArn
- The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account. This parameter is required.- Returns:
this
- See Also:
-
tags
Any tags assigned to the resource.- Parameters:
tags
- Any tags assigned to the resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPCPeeringConnection>
- Returns:
- a newly built instance of
CfnVPCPeeringConnection
.
-