@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
197 lines (196 loc) • 7.26 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a Cloud Connection resource within HuaweiCloud.
*
* Cloud Connect (CC) is a service that enables you to quickly build ultra-fast, high-quality, and stable networks
* between VPCs across regions and between VPCs and on-premises data centers.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = new huaweicloud.Cc.Connection("test", {});
* ```
*
* ## Import
*
* The cloud connection can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Cc/connection:Connection test 0ce123456a00f2591fabc00385ff1234
* ```
*/
export declare class Connection extends pulumi.CustomResource {
/**
* Get an existing Connection 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?: ConnectionState, opts?: pulumi.CustomResourceOptions): Connection;
/**
* Returns true if the given object is an instance of Connection. 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 Connection;
/**
* The number of bandwidth packages associated with the cloud connection instance.
*/
readonly bandwidthPackageNumber: pulumi.Output<number>;
/**
* The Description about the cloud connection.
* The description contain a maximum of `255` characters, and the angle brackets (< and >) are not allowed.
*/
readonly description: pulumi.Output<string>;
/**
* The Domain ID.
*/
readonly domainId: pulumi.Output<string>;
/**
* The enterprise project id of the cloud connection.
* Value 0 indicates the default enterprise project.
*/
readonly enterpriseProjectId: pulumi.Output<string>;
/**
* The number of inter-domain bandwidths associated with the cloud connection instance.
*/
readonly interRegionBandwidthNumber: pulumi.Output<number>;
/**
* The cloud connection name.
* The name can contain `1` to `64` characters, only English letters, Chinese characters, digits, hyphens (-),
* underscores (_) and dots (.) are allowed.
*/
readonly name: pulumi.Output<string>;
/**
* The number of network instances associated with the cloud connection instance.
*/
readonly networkInstanceNumber: pulumi.Output<number>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* The status of the cloud connection.
* The options are as follows:
* + **ACTIVE**: Device deleted.
*/
readonly status: pulumi.Output<string>;
/**
* Specifies the key/value pairs to associate with the cloud connection.
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* The Scenario.
* The options are as follows:
* + **vpc**: VPCs or virtual gateways can use this cloud connection.
*/
readonly usedScene: pulumi.Output<string>;
/**
* Create a Connection 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?: ConnectionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Connection resources.
*/
export interface ConnectionState {
/**
* The number of bandwidth packages associated with the cloud connection instance.
*/
bandwidthPackageNumber?: pulumi.Input<number>;
/**
* The Description about the cloud connection.
* The description contain a maximum of `255` characters, and the angle brackets (< and >) are not allowed.
*/
description?: pulumi.Input<string>;
/**
* The Domain ID.
*/
domainId?: pulumi.Input<string>;
/**
* The enterprise project id of the cloud connection.
* Value 0 indicates the default enterprise project.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* The number of inter-domain bandwidths associated with the cloud connection instance.
*/
interRegionBandwidthNumber?: pulumi.Input<number>;
/**
* The cloud connection name.
* The name can contain `1` to `64` characters, only English letters, Chinese characters, digits, hyphens (-),
* underscores (_) and dots (.) are allowed.
*/
name?: pulumi.Input<string>;
/**
* The number of network instances associated with the cloud connection instance.
*/
networkInstanceNumber?: pulumi.Input<number>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
/**
* The status of the cloud connection.
* The options are as follows:
* + **ACTIVE**: Device deleted.
*/
status?: pulumi.Input<string>;
/**
* Specifies the key/value pairs to associate with the cloud connection.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The Scenario.
* The options are as follows:
* + **vpc**: VPCs or virtual gateways can use this cloud connection.
*/
usedScene?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Connection resource.
*/
export interface ConnectionArgs {
/**
* The Description about the cloud connection.
* The description contain a maximum of `255` characters, and the angle brackets (< and >) are not allowed.
*/
description?: pulumi.Input<string>;
/**
* The enterprise project id of the cloud connection.
* Value 0 indicates the default enterprise project.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* The cloud connection name.
* The name can contain `1` to `64` characters, only English letters, Chinese characters, digits, hyphens (-),
* underscores (_) and dots (.) are allowed.
*/
name?: pulumi.Input<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the key/value pairs to associate with the cloud connection.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}