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 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

      @Stability(Experimental) public VPCPeeringConnection.Builder acceptorVpc(IVpcV2 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

      @Stability(Experimental) public VPCPeeringConnection.Builder peerRoleArn(String 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

      @Stability(Experimental) public VPCPeeringConnection.Builder requestorVpc(IVpcV2 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

      @Stability(Experimental) public VPCPeeringConnection build()
      Specified by:
      build in interface software.amazon.jsii.Builder<VPCPeeringConnection>
      Returns:
      a newly built instance of VPCPeeringConnection.