1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. vpc
  5. PeerConnectionAccepter
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.vpc.PeerConnectionAccepter

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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, map[string]interface{}{}, 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,
                               bandwidth: Optional[int] = None,
                               description: Optional[str] = None,
                               dry_run: Optional[bool] = None,
                               force_delete: Optional[bool] = None,
                               peer_connection_accepter_name: Optional[str] = None,
                               resource_group_id: Optional[str] = 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",
        Bandwidth = 0,
        Description = "string",
        DryRun = false,
        ForceDelete = false,
        PeerConnectionAccepterName = "string",
        ResourceGroupId = "string",
    });
    
    example, err := vpc.NewPeerConnectionAccepter(ctx, "peerConnectionAccepterResource", &vpc.PeerConnectionAccepterArgs{
    	InstanceId:                 pulumi.String("string"),
    	Bandwidth:                  pulumi.Int(0),
    	Description:                pulumi.String("string"),
    	DryRun:                     pulumi.Bool(false),
    	ForceDelete:                pulumi.Bool(false),
    	PeerConnectionAccepterName: pulumi.String("string"),
    	ResourceGroupId:            pulumi.String("string"),
    })
    
    var peerConnectionAccepterResource = new PeerConnectionAccepter("peerConnectionAccepterResource", PeerConnectionAccepterArgs.builder()
        .instanceId("string")
        .bandwidth(0)
        .description("string")
        .dryRun(false)
        .forceDelete(false)
        .peerConnectionAccepterName("string")
        .resourceGroupId("string")
        .build());
    
    peer_connection_accepter_resource = alicloud.vpc.PeerConnectionAccepter("peerConnectionAccepterResource",
        instance_id="string",
        bandwidth=0,
        description="string",
        dry_run=False,
        force_delete=False,
        peer_connection_accepter_name="string",
        resource_group_id="string")
    
    const peerConnectionAccepterResource = new alicloud.vpc.PeerConnectionAccepter("peerConnectionAccepterResource", {
        instanceId: "string",
        bandwidth: 0,
        description: "string",
        dryRun: false,
        forceDelete: false,
        peerConnectionAccepterName: "string",
        resourceGroupId: "string",
    });
    
    type: alicloud:vpc:PeerConnectionAccepter
    properties:
        bandwidth: 0
        description: string
        dryRun: false
        forceDelete: false
        instanceId: string
        peerConnectionAccepterName: string
        resourceGroupId: 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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PeerConnectionAccepter resource accepts the following input properties:

    InstanceId string
    The ID of the VPC peering connection whose name or description you want to modify.
    Bandwidth int
    The new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    Description string

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    ForceDelete bool
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    PeerConnectionAccepterName string

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    ResourceGroupId string

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    InstanceId string
    The ID of the VPC peering connection whose name or description you want to modify.
    Bandwidth int
    The new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    Description string

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    ForceDelete bool
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    PeerConnectionAccepterName string

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    ResourceGroupId string

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    instanceId String
    The ID of the VPC peering connection whose name or description you want to modify.
    bandwidth Integer
    The new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    description String

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    forceDelete Boolean
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    peerConnectionAccepterName String

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    resourceGroupId String

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    instanceId string
    The ID of the VPC peering connection whose name or description you want to modify.
    bandwidth number
    The new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    description string

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    dryRun boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    forceDelete boolean
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    peerConnectionAccepterName string

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    resourceGroupId string

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    instance_id str
    The ID of the VPC peering connection whose name or description you want to modify.
    bandwidth int
    The new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    description str

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    dry_run bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    force_delete bool
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    peer_connection_accepter_name str

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    resource_group_id str

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    instanceId String
    The ID of the VPC peering connection whose name or description you want to modify.
    bandwidth Number
    The new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    description String

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    forceDelete Boolean
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    peerConnectionAccepterName String

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    resourceGroupId String

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    Outputs

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

    AcceptingOwnerUid int
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    AcceptingRegionId string
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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.
    CreateTime string
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource
    VpcId string
    The VPC ID of the initiator of the VPC peering connection.
    AcceptingOwnerUid int
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    AcceptingRegionId string
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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.
    CreateTime string
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource
    VpcId string
    The VPC ID of the initiator of the VPC peering connection.
    acceptingOwnerUid Integer
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    acceptingRegionId String
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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.
    createTime String
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource
    vpcId String
    The VPC ID of the initiator of the VPC peering connection.
    acceptingOwnerUid number
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    acceptingRegionId string
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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.
    createTime string
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the resource
    vpcId string
    The VPC ID of the initiator of the VPC peering connection.
    accepting_owner_uid int
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    accepting_region_id str
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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.
    create_time str
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the resource
    vpc_id str
    The VPC ID of the initiator of the VPC peering connection.
    acceptingOwnerUid Number
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    acceptingRegionId String
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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.
    createTime String
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource
    vpcId String
    The VPC ID of the initiator of the VPC peering 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,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            dry_run: Optional[bool] = None,
            force_delete: Optional[bool] = None,
            instance_id: Optional[str] = None,
            peer_connection_accepter_name: Optional[str] = None,
            resource_group_id: 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.
    The following state arguments are supported:
    AcceptingOwnerUid int
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    AcceptingRegionId string
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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 new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    CreateTime string
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    Description string

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    ForceDelete bool
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    InstanceId string
    The ID of the VPC peering connection whose name or description you want to modify.
    PeerConnectionAccepterName string

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    ResourceGroupId string

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    Status string
    The status of the resource
    VpcId string
    The VPC ID of the initiator of the VPC peering connection.
    AcceptingOwnerUid int
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    AcceptingRegionId string
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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 new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    CreateTime string
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    Description string

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    ForceDelete bool
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    InstanceId string
    The ID of the VPC peering connection whose name or description you want to modify.
    PeerConnectionAccepterName string

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    ResourceGroupId string

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    Status string
    The status of the resource
    VpcId string
    The VPC ID of the initiator of the VPC peering connection.
    acceptingOwnerUid Integer
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    acceptingRegionId String
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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 new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    createTime String
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    description String

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    forceDelete Boolean
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    instanceId String
    The ID of the VPC peering connection whose name or description you want to modify.
    peerConnectionAccepterName String

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    resourceGroupId String

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    status String
    The status of the resource
    vpcId String
    The VPC ID of the initiator of the VPC peering connection.
    acceptingOwnerUid number
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    acceptingRegionId string
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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 new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    createTime string
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    description string

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    dryRun boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    forceDelete boolean
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    instanceId string
    The ID of the VPC peering connection whose name or description you want to modify.
    peerConnectionAccepterName string

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    resourceGroupId string

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    status string
    The status of the resource
    vpcId string
    The VPC ID of the initiator of the VPC peering connection.
    accepting_owner_uid int
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    accepting_region_id str
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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 new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    create_time str
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    description str

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    dry_run bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    force_delete bool
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    instance_id str
    The ID of the VPC peering connection whose name or description you want to modify.
    peer_connection_accepter_name str

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    resource_group_id str

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    status str
    The status of the resource
    vpc_id str
    The VPC ID of the initiator of the VPC peering connection.
    acceptingOwnerUid Number
    The ID of the Alibaba Cloud account (primary account) of the receiving end of the VPC peering connection to be created.-to-peer connection to the VPC account.-account VPC peer-to-peer connection.
    acceptingRegionId String
    The region ID of the recipient of the VPC peering connection to be created.-to-peer connection in the same region, enter the same region ID as the region ID of the initiator.-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 new bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0.
    createTime String
    The creation time of the VPC peer connection. Use UTC time in the format' YYYY-MM-DDThh:mm:ssZ '.
    description String

    The new description of the VPC peering connection.

    The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    forceDelete Boolean
    Specifies whether to forcefully delete the VPC peering connection. Valid values:
    instanceId String
    The ID of the VPC peering connection whose name or description you want to modify.
    peerConnectionAccepterName String

    The new name of the VPC peering connection.

    The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

    resourceGroupId String

    The ID of the new resource group.

    NOTE: You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is resource management?

    status String
    The status of the resource
    vpcId String
    The VPC ID of the initiator of the VPC peering 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi