alicloud.vpc.PeerConnectionAccepter
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 in v1.196.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 config = new Config();
var acceptingRegion = config.Get("acceptingRegion") ?? "cn-beijing";
var local = new AliCloud.Provider("local", new()
{
Region = "hangzhou",
});
var accepting = new AliCloud.Provider("accepting", new()
{
Region = acceptingRegion,
});
var defaultNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "default-NODELETING",
});
var defaultone = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "default-NODELETING",
});
var defaultPeerConnection = new AliCloud.Vpc.PeerConnection("defaultPeerConnection", new()
{
PeerConnectionName = "example_value",
VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
AcceptingAliUid = defaultAccount.Apply(getAccountResult => getAccountResult.Id),
AcceptingRegionId = acceptingRegion,
AcceptingVpcId = defaultone.Apply(getNetworksResult => getNetworksResult.Ids[0]),
Description = "example_value",
}, new CustomResourceOptions
{
Provider = alicloud.Local,
});
var defaultPeerConnectionAccepter = new AliCloud.Vpc.PeerConnectionAccepter("defaultPeerConnectionAccepter", new()
{
InstanceId = defaultPeerConnection.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 {
defaultAccount, err := alicloud.GetAccount(ctx, nil, nil)
if err != nil {
return err
}
cfg := config.New(ctx, "")
acceptingRegion := "cn-beijing"
if param := cfg.Get("acceptingRegion"); param != "" {
acceptingRegion = param
}
_, err = alicloud.NewProvider(ctx, "local", &alicloud.ProviderArgs{
Region: pulumi.String("hangzhou"),
})
if err != nil {
return err
}
_, err = alicloud.NewProvider(ctx, "accepting", &alicloud.ProviderArgs{
Region: pulumi.String(acceptingRegion),
})
if err != nil {
return err
}
defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("default-NODELETING"),
}, nil)
if err != nil {
return err
}
defaultone, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("default-NODELETING"),
}, nil)
if err != nil {
return err
}
defaultPeerConnection, err := vpc.NewPeerConnection(ctx, "defaultPeerConnection", &vpc.PeerConnectionArgs{
PeerConnectionName: pulumi.String("example_value"),
VpcId: *pulumi.String(defaultNetworks.Ids[0]),
AcceptingAliUid: *pulumi.String(defaultAccount.Id),
AcceptingRegionId: pulumi.String(acceptingRegion),
AcceptingVpcId: *pulumi.String(defaultone.Ids[0]),
Description: pulumi.String("example_value"),
}, pulumi.Provider(alicloud.Local))
if err != nil {
return err
}
_, err = vpc.NewPeerConnectionAccepter(ctx, "defaultPeerConnectionAccepter", &vpc.PeerConnectionAccepterArgs{
InstanceId: defaultPeerConnection.ID(),
})
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.Provider;
import com.pulumi.alicloud.ProviderArgs;
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 com.pulumi.alicloud.vpc.PeerConnectionAccepter;
import com.pulumi.alicloud.vpc.PeerConnectionAccepterArgs;
import com.pulumi.resources.CustomResourceOptions;
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 defaultAccount = AlicloudFunctions.getAccount();
final var acceptingRegion = config.get("acceptingRegion").orElse("cn-beijing");
var local = new Provider("local", ProviderArgs.builder()
.region("hangzhou")
.build());
var accepting = new Provider("accepting", ProviderArgs.builder()
.region(acceptingRegion)
.build());
final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NODELETING")
.build());
final var defaultone = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NODELETING")
.build());
var defaultPeerConnection = new PeerConnection("defaultPeerConnection", PeerConnectionArgs.builder()
.peerConnectionName("example_value")
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.acceptingAliUid(defaultAccount.applyValue(getAccountResult -> getAccountResult.id()))
.acceptingRegionId(acceptingRegion)
.acceptingVpcId(defaultone.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.description("example_value")
.build(), CustomResourceOptions.builder()
.provider(alicloud.local())
.build());
var defaultPeerConnectionAccepter = new PeerConnectionAccepter("defaultPeerConnectionAccepter", PeerConnectionAccepterArgs.builder()
.instanceId(defaultPeerConnection.id())
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default_account = alicloud.get_account()
config = pulumi.Config()
accepting_region = config.get("acceptingRegion")
if accepting_region is None:
accepting_region = "cn-beijing"
local = alicloud.Provider("local", region="hangzhou")
accepting = alicloud.Provider("accepting", region=accepting_region)
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
defaultone = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_peer_connection = alicloud.vpc.PeerConnection("defaultPeerConnection",
peer_connection_name="example_value",
vpc_id=default_networks.ids[0],
accepting_ali_uid=default_account.id,
accepting_region_id=accepting_region,
accepting_vpc_id=defaultone.ids[0],
description="example_value",
opts=pulumi.ResourceOptions(provider=alicloud["local"]))
default_peer_connection_accepter = alicloud.vpc.PeerConnectionAccepter("defaultPeerConnectionAccepter", instance_id=default_peer_connection.id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultAccount = alicloud.getAccount({});
const config = new pulumi.Config();
const acceptingRegion = config.get("acceptingRegion") || "cn-beijing";
const local = new alicloud.Provider("local", {region: "hangzhou"});
const accepting = new alicloud.Provider("accepting", {region: acceptingRegion});
const defaultNetworks = alicloud.vpc.getNetworks({
nameRegex: "default-NODELETING",
});
const defaultone = alicloud.vpc.getNetworks({
nameRegex: "default-NODELETING",
});
const defaultPeerConnection = new alicloud.vpc.PeerConnection("defaultPeerConnection", {
peerConnectionName: "example_value",
vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0]),
acceptingAliUid: defaultAccount.then(defaultAccount => defaultAccount.id),
acceptingRegionId: acceptingRegion,
acceptingVpcId: defaultone.then(defaultone => defaultone.ids?.[0]),
description: "example_value",
}, {
provider: alicloud.local,
});
const defaultPeerConnectionAccepter = new alicloud.vpc.PeerConnectionAccepter("defaultPeerConnectionAccepter", {instanceId: defaultPeerConnection.id});
configuration:
acceptingRegion:
type: string
default: cn-beijing
resources:
local:
type: pulumi:providers:alicloud
properties:
region: hangzhou
accepting:
type: pulumi:providers:alicloud
properties:
region: ${acceptingRegion}
defaultPeerConnection:
type: alicloud:vpc:PeerConnection
properties:
peerConnectionName: example_value
vpcId: ${defaultNetworks.ids[0]}
acceptingAliUid: ${defaultAccount.id}
acceptingRegionId: ${acceptingRegion}
acceptingVpcId: ${defaultone.ids[0]}
description: example_value
options:
provider: ${alicloud.local}
defaultPeerConnectionAccepter:
type: alicloud:vpc:PeerConnectionAccepter
properties:
instanceId: ${defaultPeerConnection.id}
variables:
defaultAccount:
fn::invoke:
Function: alicloud:getAccount
Arguments: {}
defaultNetworks:
fn::invoke:
Function: alicloud:vpc:getNetworks
Arguments:
nameRegex: default-NODELETING
defaultone:
fn::invoke:
Function: alicloud:vpc:getNetworks
Arguments:
nameRegex: default-NODELETING
Create PeerConnectionAccepter Resource
new PeerConnectionAccepter(name: string, args: PeerConnectionAccepterArgs, opts?: CustomResourceOptions);
@overload
def PeerConnectionAccepter(resource_name: str,
opts: Optional[ResourceOptions] = None,
dry_run: Optional[bool] = None,
instance_id: Optional[str] = None)
@overload
def PeerConnectionAccepter(resource_name: str,
args: PeerConnectionAccepterArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.