UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

78 lines (77 loc) 2.27 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get the details of a specific IEC VPC. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const vpcName = config.requireObject("vpcName"); * const myVpc = huaweicloud.Iec.getVpc({ * name: vpcName, * }); * ``` */ export declare function getVpc(args?: GetVpcArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcResult>; /** * A collection of arguments for invoking getVpc. */ export interface GetVpcArgs { /** * Specifies the ID of the IEC VPC to retrieve. */ id?: string; /** * Specifies the name of the IEC VPC. The name can contain a maximum of 64 characters. Only * letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. */ name?: string; /** * Specifies the region in which to obtain the vpc. If omitted, the provider-level region * will be used. */ region?: string; } /** * A collection of values returned by getVpc. */ export interface GetVpcResult { /** * Indicates the IP address range for the VPC. */ readonly cidr: string; readonly id: string; /** * Indicates the mode of the IEC VPC. Possible values are *SYSTEM* and *CUSTOMER*. */ readonly mode: string; readonly name: string; readonly region: string; /** * Indicates the number of subnets. */ readonly subnetNum: number; } export declare function getVpcOutput(args?: GetVpcOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVpcResult>; /** * A collection of arguments for invoking getVpc. */ export interface GetVpcOutputArgs { /** * Specifies the ID of the IEC VPC to retrieve. */ id?: pulumi.Input<string>; /** * Specifies the name of the IEC VPC. The name can contain a maximum of 64 characters. Only * letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. */ name?: pulumi.Input<string>; /** * Specifies the region in which to obtain the vpc. If omitted, the provider-level region * will be used. */ region?: pulumi.Input<string>; }