alicloud.vpc.PeerConnectionAccepter
Explore with Pulumi AI
Provides a Vpc Peer Connection Accepter resource.
For information about Vpc Peer Connection Accepter and how to use it, see What is Peer Connection Accepter.
NOTE: Available since v1.196.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const acceptingRegion = config.get("acceptingRegion") || "cn-beijing";
const anotherUid = config.get("anotherUid") || "xxxx";
const local = new alicloud.vpc.Network("local", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const acceptingNetwork = new alicloud.vpc.Network("accepting", {
vpcName: name,
cidrBlock: "192.168.0.0/16",
});
const accepting = alicloud.getAccount({});
const _default = new alicloud.vpc.PeerConnection("default", {
peerConnectionName: name,
vpcId: local.id,
acceptingAliUid: accepting.then(accepting => accepting.id),
acceptingRegionId: acceptingRegion,
acceptingVpcId: acceptingNetwork.id,
description: name,
});
const defaultPeerConnectionAccepter = new alicloud.vpc.PeerConnectionAccepter("default", {instanceId: _default.id});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
accepting_region = config.get("acceptingRegion")
if accepting_region is None:
accepting_region = "cn-beijing"
another_uid = config.get("anotherUid")
if another_uid is None:
another_uid = "xxxx"
local = alicloud.vpc.Network("local",
vpc_name=name,
cidr_block="10.4.0.0/16")
accepting_network = alicloud.vpc.Network("accepting",
vpc_name=name,
cidr_block="192.168.0.0/16")
accepting = alicloud.get_account()
default = alicloud.vpc.PeerConnection("default",
peer_connection_name=name,
vpc_id=local.id,
accepting_ali_uid=accepting.id,
accepting_region_id=accepting_region,
accepting_vpc_id=accepting_network.id,
description=name)
default_peer_connection_accepter = alicloud.vpc.PeerConnectionAccepter("default", instance_id=default.id)
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"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
acceptingRegion := "cn-beijing"
if param := cfg.Get("acceptingRegion"); param != "" {
acceptingRegion = param
}
anotherUid := "xxxx"
if param := cfg.Get("anotherUid"); param != "" {
anotherUid = param
}
local, err := vpc.NewNetwork(ctx, "local", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
acceptingNetwork, err := vpc.NewNetwork(ctx, "accepting", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
accepting, err := alicloud.GetAccount(ctx, nil, nil)
if err != nil {
return err
}
_, err = vpc.NewPeerConnection(ctx, "default", &vpc.PeerConnectionArgs{
PeerConnectionName: pulumi.String(name),
VpcId: local.ID(),
AcceptingAliUid: pulumi.String(accepting.Id),
AcceptingRegionId: pulumi.String(acceptingRegion),
AcceptingVpcId: acceptingNetwork.ID(),
Description: pulumi.String(name),
})
if err != nil {
return err
}
_, err = vpc.NewPeerConnectionAccepter(ctx, "default", &vpc.PeerConnectionAccepterArgs{
InstanceId: _default.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var acceptingRegion = config.Get("acceptingRegion") ?? "cn-beijing";
var anotherUid = config.Get("anotherUid") ?? "xxxx";
var local = new AliCloud.Vpc.Network("local", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var acceptingNetwork = new AliCloud.Vpc.Network("accepting", new()
{
VpcName = name,
CidrBlock = "192.168.0.0/16",
});
var accepting = AliCloud.GetAccount.Invoke();
var @default = new AliCloud.Vpc.PeerConnection("default", new()
{
PeerConnectionName = name,
VpcId = local.Id,
AcceptingAliUid = accepting.Apply(getAccountResult => getAccountResult.Id),
AcceptingRegionId = acceptingRegion,
AcceptingVpcId = acceptingNetwork.Id,
Description = name,
});
var defaultPeerConnectionAccepter = new AliCloud.Vpc.PeerConnectionAccepter("default", new()
{
InstanceId = @default.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.vpc.PeerConnection;
import com.pulumi.alicloud.vpc.PeerConnectionArgs;
import com.pulumi.alicloud.vpc.PeerConnectionAccepter;
import com.pulumi.alicloud.vpc.PeerConnectionAccepterArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var acceptingRegion = config.get("acceptingRegion").orElse("cn-beijing");
final var anotherUid = config.get("anotherUid").orElse("xxxx");
var local = new Network("local", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var acceptingNetwork = new Network("acceptingNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("192.168.0.0/16")
.build());
final var accepting = AlicloudFunctions.getAccount();
var default_ = new PeerConnection("default", PeerConnectionArgs.builder()
.peerConnectionName(name)
.vpcId(local.id())
.acceptingAliUid(accepting.applyValue(getAccountResult -> getAccountResult.id()))
.acceptingRegionId(acceptingRegion)
.acceptingVpcId(acceptingNetwork.id())
.description(name)
.build());
var defaultPeerConnectionAccepter = new PeerConnectionAccepter("defaultPeerConnectionAccepter", PeerConnectionAccepterArgs.builder()
.instanceId(default_.id())
.build());
}
}
configuration:
name:
type: string
default: tf-example
acceptingRegion:
type: string
default: cn-beijing
anotherUid:
type: string
default: xxxx
resources:
local:
type: alicloud:vpc:Network
properties:
vpcName: ${name}
cidrBlock: 10.4.0.0/16
acceptingNetwork:
type: alicloud:vpc:Network
name: accepting
properties:
vpcName: ${name}
cidrBlock: 192.168.0.0/16
default:
type: alicloud:vpc:PeerConnection
properties:
peerConnectionName: ${name}
vpcId: ${local.id}
acceptingAliUid: ${accepting.id}
acceptingRegionId: ${acceptingRegion}
acceptingVpcId: ${acceptingNetwork.id}
description: ${name}
defaultPeerConnectionAccepter:
type: alicloud:vpc:PeerConnectionAccepter
name: default
properties:
instanceId: ${default.id}
variables:
accepting:
fn::invoke:
Function: alicloud:getAccount
Arguments: {}
Create PeerConnectionAccepter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PeerConnectionAccepter(name: string, args: PeerConnectionAccepterArgs, opts?: CustomResourceOptions);
@overload
def PeerConnectionAccepter(resource_name: str,
args: PeerConnectionAccepterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PeerConnectionAccepter(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
dry_run: Optional[bool] = None)
func NewPeerConnectionAccepter(ctx *Context, name string, args PeerConnectionAccepterArgs, opts ...ResourceOption) (*PeerConnectionAccepter, error)
public PeerConnectionAccepter(string name, PeerConnectionAccepterArgs args, CustomResourceOptions? opts = null)
public PeerConnectionAccepter(String name, PeerConnectionAccepterArgs args)
public PeerConnectionAccepter(String name, PeerConnectionAccepterArgs args, CustomResourceOptions options)
type: alicloud:vpc:PeerConnectionAccepter
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PeerConnectionAccepterArgs
- 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 PeerConnectionAccepterArgs
- 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 PeerConnectionAccepterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PeerConnectionAccepterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PeerConnectionAccepterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var peerConnectionAccepterResource = new AliCloud.Vpc.PeerConnectionAccepter("peerConnectionAccepterResource", new()
{
InstanceId = "string",
DryRun = false,
});
example, err := vpc.NewPeerConnectionAccepter(ctx, "peerConnectionAccepterResource", &vpc.PeerConnectionAccepterArgs{
InstanceId: pulumi.String("string"),
DryRun: pulumi.Bool(false),
})
var peerConnectionAccepterResource = new PeerConnectionAccepter("peerConnectionAccepterResource", PeerConnectionAccepterArgs.builder()
.instanceId("string")
.dryRun(false)
.build());
peer_connection_accepter_resource = alicloud.vpc.PeerConnectionAccepter("peerConnectionAccepterResource",
instance_id="string",
dry_run=False)
const peerConnectionAccepterResource = new alicloud.vpc.PeerConnectionAccepter("peerConnectionAccepterResource", {
instanceId: "string",
dryRun: false,
});
type: alicloud:vpc:PeerConnectionAccepter
properties:
dryRun: false
instanceId: string
PeerConnectionAccepter 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 PeerConnectionAccepter resource accepts the following input properties:
- Instance
Id string - The ID of the instance of the created VPC peer connection.
- Dry
Run bool - The dry run.
- Instance
Id string - The ID of the instance of the created VPC peer connection.
- Dry
Run bool - The dry run.
- instance
Id String - The ID of the instance of the created VPC peer connection.
- dry
Run Boolean - The dry run.
- instance
Id string - The ID of the instance of the created VPC peer connection.
- dry
Run boolean - The dry run.
- instance_
id str - The ID of the instance of the created VPC peer connection.
- dry_
run bool - The dry run.
- instance
Id String - The ID of the instance of the created VPC peer connection.
- dry
Run Boolean - The dry run.
Outputs
All input properties are implicitly available as output properties. Additionally, the PeerConnectionAccepter resource produces the following output properties:
- Accepting
Owner intUid - 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 stringId - 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 stringId - 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Connection stringAccepter Name - The name of the resource
- Status string
- The status of the resource
- Vpc
Id string - You must create a VPC ID on the initiator of a VPC peer connection.
- Accepting
Owner intUid - 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 stringId - 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 stringId - 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Connection stringAccepter Name - The name of the resource
- Status string
- The status of the resource
- Vpc
Id string - You must create a VPC ID on the initiator of a VPC peer connection.
- accepting
Owner IntegerUid - 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 StringId - 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 StringId - 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.
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Connection StringAccepter Name - The name of the resource
- status String
- The status of the resource
- vpc
Id String - You must create a VPC ID on the initiator of a VPC peer connection.
- accepting
Owner numberUid - 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 stringId - 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 stringId - 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.
- id string
- The provider-assigned unique ID for this managed resource.
- peer
Connection stringAccepter Name - The name of the resource
- status string
- The status of the resource
- vpc
Id string - You must create a VPC ID on the initiator of a VPC peer connection.
- accepting_
owner_ intuid - 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_ strid - 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_ strid - 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.
- id str
- The provider-assigned unique ID for this managed resource.
- peer_
connection_ straccepter_ name - The name of the resource
- status str
- The status of the resource
- vpc_
id str - You must create a VPC ID on the initiator of a VPC peer connection.
- accepting
Owner NumberUid - 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 StringId - 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 StringId - 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.
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Connection StringAccepter Name - The name of the resource
- status String
- The status of the resource
- vpc
Id String - You must create a VPC ID on the initiator of a VPC peer connection.
Look up Existing PeerConnectionAccepter Resource
Get an existing PeerConnectionAccepter 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?: PeerConnectionAccepterState, opts?: CustomResourceOptions): PeerConnectionAccepter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accepting_owner_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,
instance_id: Optional[str] = None,
peer_connection_accepter_name: Optional[str] = None,
status: Optional[str] = None,
vpc_id: Optional[str] = None) -> PeerConnectionAccepter
func GetPeerConnectionAccepter(ctx *Context, name string, id IDInput, state *PeerConnectionAccepterState, opts ...ResourceOption) (*PeerConnectionAccepter, error)
public static PeerConnectionAccepter Get(string name, Input<string> id, PeerConnectionAccepterState? state, CustomResourceOptions? opts = null)
public static PeerConnectionAccepter get(String name, Output<String> id, PeerConnectionAccepterState 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.
- Accepting
Owner intUid - 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 stringId - 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 stringId - 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.
- Dry
Run bool - The dry run.
- Instance
Id string - The ID of the instance of the created VPC peer connection.
- Peer
Connection stringAccepter Name - The name of the resource
- Status string
- The status of the resource
- Vpc
Id string - You must create a VPC ID on the initiator of a VPC peer connection.
- Accepting
Owner intUid - 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 stringId - 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 stringId - 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.
- Dry
Run bool - The dry run.
- Instance
Id string - The ID of the instance of the created VPC peer connection.
- Peer
Connection stringAccepter Name - The name of the resource
- Status string
- The status of the resource
- Vpc
Id string - You must create a VPC ID on the initiator of a VPC peer connection.
- accepting
Owner IntegerUid - 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 StringId - 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 StringId - 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.
- dry
Run Boolean - The dry run.
- instance
Id String - The ID of the instance of the created VPC peer connection.
- peer
Connection StringAccepter Name - The name of the resource
- status String
- The status of the resource
- vpc
Id String - You must create a VPC ID on the initiator of a VPC peer connection.
- accepting
Owner numberUid - 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 stringId - 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 stringId - 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.
- dry
Run boolean - The dry run.
- instance
Id string - The ID of the instance of the created VPC peer connection.
- peer
Connection stringAccepter Name - The name of the resource
- status string
- The status of the resource
- vpc
Id string - You must create a VPC ID on the initiator of a VPC peer connection.
- accepting_
owner_ intuid - 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_ strid - 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_ strid - 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.
- instance_
id str - The ID of the instance of the created VPC peer connection.
- peer_
connection_ straccepter_ name - The name of the resource
- status str
- The status of the resource
- vpc_
id str - You must create a VPC ID on the initiator of a VPC peer connection.
- accepting
Owner NumberUid - 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 StringId - 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 StringId - 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.
- dry
Run Boolean - The dry run.
- instance
Id String - The ID of the instance of the created VPC peer connection.
- peer
Connection StringAccepter Name - The name of the resource
- status String
- The status of the resource
- vpc
Id String - You must create a VPC ID on the initiator of a VPC peer connection.
Import
Vpc Peer Connection Accepter can be imported using the id, e.g.
$ pulumi import alicloud:vpc/peerConnectionAccepter:PeerConnectionAccepter example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.