@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
191 lines (190 loc) • 7.56 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a CCI Network resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const namespaceName = config.requireObject("namespaceName");
* const networkName = config.requireObject("networkName");
* const vpcNetworkId = config.requireObject("vpcNetworkId");
* const securityGroupId = config.requireObject("securityGroupId");
* const test = new huaweicloud.cci.Network("test", {
* namespace: namespaceName,
* networkId: vpcNetworkId,
* securityGroupId: securityGroupId,
* });
* ```
*
* ## Import
*
* Networks can be imported using their `namespace` and `id`, separated by a slash, e.g.bash
*
* ```sh
* $ pulumi import huaweicloud:Cci/network:Network test <namespace>/<id>
* ```
*/
export declare class Network extends pulumi.CustomResource {
/**
* Get an existing Network 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?: NetworkState, opts?: pulumi.CustomResourceOptions): Network;
/**
* Returns true if the given object is an instance of Network. 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 Network;
/**
* Specifies the availability zone (AZ) to which the CCI network
* belongs. Changing this will create a new CCI network resource.
*/
readonly availabilityZone: pulumi.Output<string | undefined>;
/**
* The network segment on which the subnet resides.
*/
readonly cidr: pulumi.Output<string>;
/**
* Specifies an unique name of the CCI network resource.
* The name can contain a maximum of `200` characters, which may consist of lowercase letters, digits and hyphens (-).
* The name must start and end with a lowercase letter or digit. Changing this will create a new CCI network resource.
*/
readonly name: pulumi.Output<string>;
/**
* Specifies the namespace to logically divide your cloud container instances
* into different group. Changing this will create a new CCI network resource.
*/
readonly namespace: pulumi.Output<string>;
/**
* Specifies a network ID of the VPC subnet which the CCI network belongs to.
* Changing this will create a new CCI network resource.
*/
readonly networkId: pulumi.Output<string>;
/**
* Specifies the region in which to create the CCI network.
* If omitted, the provider-level region will be used. Changing this will create a new CCI network resource.
*/
readonly region: pulumi.Output<string>;
/**
* Specifies a security group ID to which the CCI network belongs to.
* Changing this will create a new CCI network resource.
*/
readonly securityGroupId: pulumi.Output<string>;
/**
* The CCI network status, including **Initializing**, **Pending** and **Active**.
*/
readonly status: pulumi.Output<string>;
/**
* IPv4 subnet ID.
*/
readonly subnetId: pulumi.Output<string>;
/**
* VPC ID which the subnet and CCI network belongs to.
*/
readonly vpcId: pulumi.Output<string>;
/**
* Create a Network 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: NetworkArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Network resources.
*/
export interface NetworkState {
/**
* Specifies the availability zone (AZ) to which the CCI network
* belongs. Changing this will create a new CCI network resource.
*/
availabilityZone?: pulumi.Input<string>;
/**
* The network segment on which the subnet resides.
*/
cidr?: pulumi.Input<string>;
/**
* Specifies an unique name of the CCI network resource.
* The name can contain a maximum of `200` characters, which may consist of lowercase letters, digits and hyphens (-).
* The name must start and end with a lowercase letter or digit. Changing this will create a new CCI network resource.
*/
name?: pulumi.Input<string>;
/**
* Specifies the namespace to logically divide your cloud container instances
* into different group. Changing this will create a new CCI network resource.
*/
namespace?: pulumi.Input<string>;
/**
* Specifies a network ID of the VPC subnet which the CCI network belongs to.
* Changing this will create a new CCI network resource.
*/
networkId?: pulumi.Input<string>;
/**
* Specifies the region in which to create the CCI network.
* If omitted, the provider-level region will be used. Changing this will create a new CCI network resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies a security group ID to which the CCI network belongs to.
* Changing this will create a new CCI network resource.
*/
securityGroupId?: pulumi.Input<string>;
/**
* The CCI network status, including **Initializing**, **Pending** and **Active**.
*/
status?: pulumi.Input<string>;
/**
* IPv4 subnet ID.
*/
subnetId?: pulumi.Input<string>;
/**
* VPC ID which the subnet and CCI network belongs to.
*/
vpcId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Network resource.
*/
export interface NetworkArgs {
/**
* Specifies the availability zone (AZ) to which the CCI network
* belongs. Changing this will create a new CCI network resource.
*/
availabilityZone?: pulumi.Input<string>;
/**
* Specifies an unique name of the CCI network resource.
* The name can contain a maximum of `200` characters, which may consist of lowercase letters, digits and hyphens (-).
* The name must start and end with a lowercase letter or digit. Changing this will create a new CCI network resource.
*/
name?: pulumi.Input<string>;
/**
* Specifies the namespace to logically divide your cloud container instances
* into different group. Changing this will create a new CCI network resource.
*/
namespace: pulumi.Input<string>;
/**
* Specifies a network ID of the VPC subnet which the CCI network belongs to.
* Changing this will create a new CCI network resource.
*/
networkId: pulumi.Input<string>;
/**
* Specifies the region in which to create the CCI network.
* If omitted, the provider-level region will be used. Changing this will create a new CCI network resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies a security group ID to which the CCI network belongs to.
* Changing this will create a new CCI network resource.
*/
securityGroupId: pulumi.Input<string>;
}