@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
153 lines (152 loc) • 6 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage a VPC Peering Connection resource.
*
* > **NOTE:** For cross-tenant (requester's tenant differs from the accepter's tenant) VPC Peering Connections,
* use the `huaweicloud.Vpc.PeeringConnection` resource to manage the requester's side of the connection and
* use the `huaweicloud.Vpc.PeeringConnectionAccepter` resource to manage the accepter's side of the connection.
* <br/>If you create a VPC peering connection with another VPC of your own, the connection is created without the need
* for you to accept the connection.
*
* ## Example Usage
*
* ## Import
*
* VPC Peering resources can be imported using the `vpc peering id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Vpc/peeringConnection:PeeringConnection test_connection 22b76469-08e3-4937-8c1d-7aad34892be1
* ```
*/
export declare class PeeringConnection extends pulumi.CustomResource {
/**
* Get an existing PeeringConnection resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PeeringConnectionState, opts?: pulumi.CustomResourceOptions): PeeringConnection;
/**
* Returns true if the given object is an instance of PeeringConnection. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is PeeringConnection;
/**
* Specifies the description of the VPC peering connection.
*/
readonly description: pulumi.Output<string>;
/**
* Specifies the name of the VPC peering connection. The value can contain 1 to 64
* characters.
*/
readonly name: pulumi.Output<string>;
/**
* Specifies the tenant ID of the accepter tenant. Changing this creates
* a new VPC peering connection.
*/
readonly peerTenantId: pulumi.Output<string>;
/**
* Specifies the VPC ID of the accepter tenant. Changing this creates a new
* VPC peering connection.
*/
readonly peerVpcId: pulumi.Output<string>;
/**
* The region in which to create the VPC peering connection. If omitted, the
* provider-level region will be used. Changing this creates a new VPC peering connection resource.
*/
readonly region: pulumi.Output<string>;
/**
* The VPC peering connection status. The value can be PENDING_ACCEPTANCE, REJECTED, EXPIRED, DELETED, or
* ACTIVE.
*/
readonly status: pulumi.Output<string>;
/**
* Specifies the ID of a VPC involved in a VPC peering connection. Changing this
* creates a new VPC peering connection.
*/
readonly vpcId: pulumi.Output<string>;
/**
* Create a PeeringConnection resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: PeeringConnectionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering PeeringConnection resources.
*/
export interface PeeringConnectionState {
/**
* Specifies the description of the VPC peering connection.
*/
description?: pulumi.Input<string>;
/**
* Specifies the name of the VPC peering connection. The value can contain 1 to 64
* characters.
*/
name?: pulumi.Input<string>;
/**
* Specifies the tenant ID of the accepter tenant. Changing this creates
* a new VPC peering connection.
*/
peerTenantId?: pulumi.Input<string>;
/**
* Specifies the VPC ID of the accepter tenant. Changing this creates a new
* VPC peering connection.
*/
peerVpcId?: pulumi.Input<string>;
/**
* The region in which to create the VPC peering connection. If omitted, the
* provider-level region will be used. Changing this creates a new VPC peering connection resource.
*/
region?: pulumi.Input<string>;
/**
* The VPC peering connection status. The value can be PENDING_ACCEPTANCE, REJECTED, EXPIRED, DELETED, or
* ACTIVE.
*/
status?: pulumi.Input<string>;
/**
* Specifies the ID of a VPC involved in a VPC peering connection. Changing this
* creates a new VPC peering connection.
*/
vpcId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a PeeringConnection resource.
*/
export interface PeeringConnectionArgs {
/**
* Specifies the description of the VPC peering connection.
*/
description?: pulumi.Input<string>;
/**
* Specifies the name of the VPC peering connection. The value can contain 1 to 64
* characters.
*/
name?: pulumi.Input<string>;
/**
* Specifies the tenant ID of the accepter tenant. Changing this creates
* a new VPC peering connection.
*/
peerTenantId?: pulumi.Input<string>;
/**
* Specifies the VPC ID of the accepter tenant. Changing this creates a new
* VPC peering connection.
*/
peerVpcId: pulumi.Input<string>;
/**
* The region in which to create the VPC peering connection. If omitted, the
* provider-level region will be used. Changing this creates a new VPC peering connection resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the ID of a VPC involved in a VPC peering connection. Changing this
* creates a new VPC peering connection.
*/
vpcId: pulumi.Input<string>;
}