alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.vpc.PeerConnection

Provides a VPC Peer Connection resource.

For information about VPC Peer Connection and how to use it, see What is Peer Connection.

NOTE: Available in v1.186.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var defaultAccount = AliCloud.GetAccount.Invoke();

    var defaultNetworks = AliCloud.Vpc.GetNetworks.Invoke();

    var defaultPeerConnection = new AliCloud.Vpc.PeerConnection("defaultPeerConnection", new()
    {
        PeerConnectionName = @var.Name,
        VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
        AcceptingAliUid = defaultAccount.Apply(getAccountResult => getAccountResult.Id),
        AcceptingRegionId = "cn-hangzhou",
        AcceptingVpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[1]),
        Description = @var.Name,
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultAccount, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultNetworks, err := vpc.GetNetworks(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = vpc.NewPeerConnection(ctx, "defaultPeerConnection", &vpc.PeerConnectionArgs{
			PeerConnectionName: pulumi.Any(_var.Name),
			VpcId:              *pulumi.String(defaultNetworks.Ids[0]),
			AcceptingAliUid:    *pulumi.String(defaultAccount.Id),
			AcceptingRegionId:  pulumi.String("cn-hangzhou"),
			AcceptingVpcId:     *pulumi.String(defaultNetworks.Ids[1]),
			Description:        pulumi.Any(_var.Name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.PeerConnection;
import com.pulumi.alicloud.vpc.PeerConnectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var defaultAccount = AlicloudFunctions.getAccount();

        final var defaultNetworks = VpcFunctions.getNetworks();

        var defaultPeerConnection = new PeerConnection("defaultPeerConnection", PeerConnectionArgs.builder()        
            .peerConnectionName(var_.name())
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .acceptingAliUid(defaultAccount.applyValue(getAccountResult -> getAccountResult.id()))
            .acceptingRegionId("cn-hangzhou")
            .acceptingVpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[1]))
            .description(var_.name())
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default_account = alicloud.get_account()
default_networks = alicloud.vpc.get_networks()
default_peer_connection = alicloud.vpc.PeerConnection("defaultPeerConnection",
    peer_connection_name=var["name"],
    vpc_id=default_networks.ids[0],
    accepting_ali_uid=default_account.id,
    accepting_region_id="cn-hangzhou",
    accepting_vpc_id=default_networks.ids[1],
    description=var["name"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultAccount = alicloud.getAccount({});
const defaultNetworks = alicloud.vpc.getNetworks({});
const defaultPeerConnection = new alicloud.vpc.PeerConnection("defaultPeerConnection", {
    peerConnectionName: _var.name,
    vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0]),
    acceptingAliUid: defaultAccount.then(defaultAccount => defaultAccount.id),
    acceptingRegionId: "cn-hangzhou",
    acceptingVpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[1]),
    description: _var.name,
});
resources:
  defaultPeerConnection:
    type: alicloud:vpc:PeerConnection
    properties:
      peerConnectionName: ${var.name}
      vpcId: ${defaultNetworks.ids[0]}
      acceptingAliUid: ${defaultAccount.id}
      acceptingRegionId: cn-hangzhou
      acceptingVpcId: ${defaultNetworks.ids[1]}
      description: ${var.name}
variables:
  defaultAccount:
    fn::invoke:
      Function: alicloud:getAccount
      Arguments: {}
  defaultNetworks:
    fn::invoke:
      Function: alicloud:vpc:getNetworks
      Arguments: {}

Create PeerConnection Resource

new PeerConnection(name: string, args: PeerConnectionArgs, opts?: CustomResourceOptions);
@overload
def PeerConnection(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   accepting_ali_uid: Optional[int] = None,
                   accepting_region_id: Optional[str] = None,
                   accepting_vpc_id: Optional[str] = None,
                   bandwidth: Optional[int] = None,
                   description: Optional[str] = None,
                   dry_run: Optional[bool] = None,
                   peer_connection_name: Optional[str] = None,
                   status: Optional[str] = None,
                   vpc_id: Optional[str] = None)
@overload
def PeerConnection(resource_name: str,
                   args: PeerConnectionArgs,
                   opts: Optional[ResourceOptions] = None)
func NewPeerConnection(ctx *Context, name string, args PeerConnectionArgs, opts ...ResourceOption) (*PeerConnection, error)
public PeerConnection(string name, PeerConnectionArgs args, CustomResourceOptions? opts = null)
public PeerConnection(String name, PeerConnectionArgs args)
public PeerConnection(String name, PeerConnectionArgs args, CustomResourceOptions options)
type: alicloud:vpc:PeerConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args PeerConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args PeerConnectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args PeerConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PeerConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args PeerConnectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

PeerConnection Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The PeerConnection resource accepts the following input properties:

AcceptingAliUid int

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
AcceptingRegionId string

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
AcceptingVpcId string

The VPC ID of the receiving end of the VPC peer connection.

VpcId string

The ID of the requester VPC.

Bandwidth int

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

Description string

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

DryRun bool

The dry run.

PeerConnectionName string

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

Status string

The status of the resource.

AcceptingAliUid int

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
AcceptingRegionId string

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
AcceptingVpcId string

The VPC ID of the receiving end of the VPC peer connection.

VpcId string

The ID of the requester VPC.

Bandwidth int

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

Description string

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

DryRun bool

The dry run.

PeerConnectionName string

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

Status string

The status of the resource.

acceptingAliUid Integer

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
acceptingRegionId String

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
acceptingVpcId String

The VPC ID of the receiving end of the VPC peer connection.

vpcId String

The ID of the requester VPC.

bandwidth Integer

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

description String

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

dryRun Boolean

The dry run.

peerConnectionName String

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

status String

The status of the resource.

acceptingAliUid number

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
acceptingRegionId string

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
acceptingVpcId string

The VPC ID of the receiving end of the VPC peer connection.

vpcId string

The ID of the requester VPC.

bandwidth number

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

description string

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

dryRun boolean

The dry run.

peerConnectionName string

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

status string

The status of the resource.

accepting_ali_uid int

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
accepting_region_id str

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
accepting_vpc_id str

The VPC ID of the receiving end of the VPC peer connection.

vpc_id str

The ID of the requester VPC.

bandwidth int

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

description str

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

dry_run bool

The dry run.

peer_connection_name str

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

status str

The status of the resource.

acceptingAliUid Number

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
acceptingRegionId String

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
acceptingVpcId String

The VPC ID of the receiving end of the VPC peer connection.

vpcId String

The ID of the requester VPC.

bandwidth Number

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

description String

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

dryRun Boolean

The dry run.

peerConnectionName String

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

status String

The status of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the PeerConnection resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing PeerConnection Resource

Get an existing PeerConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PeerConnectionState, opts?: CustomResourceOptions): PeerConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accepting_ali_uid: Optional[int] = None,
        accepting_region_id: Optional[str] = None,
        accepting_vpc_id: Optional[str] = None,
        bandwidth: Optional[int] = None,
        description: Optional[str] = None,
        dry_run: Optional[bool] = None,
        peer_connection_name: Optional[str] = None,
        status: Optional[str] = None,
        vpc_id: Optional[str] = None) -> PeerConnection
func GetPeerConnection(ctx *Context, name string, id IDInput, state *PeerConnectionState, opts ...ResourceOption) (*PeerConnection, error)
public static PeerConnection Get(string name, Input<string> id, PeerConnectionState? state, CustomResourceOptions? opts = null)
public static PeerConnection get(String name, Output<String> id, PeerConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AcceptingAliUid int

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
AcceptingRegionId string

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
AcceptingVpcId string

The VPC ID of the receiving end of the VPC peer connection.

Bandwidth int

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

Description string

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

DryRun bool

The dry run.

PeerConnectionName string

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

Status string

The status of the resource.

VpcId string

The ID of the requester VPC.

AcceptingAliUid int

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
AcceptingRegionId string

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
AcceptingVpcId string

The VPC ID of the receiving end of the VPC peer connection.

Bandwidth int

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

Description string

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

DryRun bool

The dry run.

PeerConnectionName string

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

Status string

The status of the resource.

VpcId string

The ID of the requester VPC.

acceptingAliUid Integer

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
acceptingRegionId String

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
acceptingVpcId String

The VPC ID of the receiving end of the VPC peer connection.

bandwidth Integer

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

description String

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

dryRun Boolean

The dry run.

peerConnectionName String

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

status String

The status of the resource.

vpcId String

The ID of the requester VPC.

acceptingAliUid number

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
acceptingRegionId string

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
acceptingVpcId string

The VPC ID of the receiving end of the VPC peer connection.

bandwidth number

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

description string

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

dryRun boolean

The dry run.

peerConnectionName string

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

status string

The status of the resource.

vpcId string

The ID of the requester VPC.

accepting_ali_uid int

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
accepting_region_id str

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
accepting_vpc_id str

The VPC ID of the receiving end of the VPC peer connection.

bandwidth int

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

description str

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

dry_run bool

The dry run.

peer_connection_name str

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

status str

The status of the resource.

vpc_id str

The ID of the requester VPC.

acceptingAliUid Number

The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.

  • Enter the ID of your Alibaba Cloud account to create a peer-to-peer connection to the VPC account.
  • Enter the ID of another Alibaba Cloud account to create a cross-account VPC peer-to-peer connection.
  • If the recipient account is a RAM user (sub-account), enter the ID of the Alibaba Cloud account corresponding to the RAM user.
acceptingRegionId String

The region ID of the recipient of the VPC peering connection to be created.

  • When creating a VPC peer-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.
  • When creating a cross-region VPC peer-to-peer connection, enter a region ID that is different from the region ID of the initiator.
acceptingVpcId String

The VPC ID of the receiving end of the VPC peer connection.

bandwidth Number

The bandwidth of the VPC peering connection to be modified. Unit: Mbps. The value range is an integer greater than 0.

description String

The description of the VPC peer connection to be created. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with http:// or https://.

dryRun Boolean

The dry run.

peerConnectionName String

The name of the resource. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

status String

The status of the resource.

vpcId String

The ID of the requester VPC.

Import

VPC Peer Connection can be imported using the id, e.g.

 $ pulumi import alicloud:vpc/peerConnection:PeerConnection example <id>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.