UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

52 lines (51 loc) 1.54 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a list of subnet ids for a vpc. * * This resource can be useful for getting back a list of subnet ids for a vpc. */ export declare function getSubnetIds(args: GetSubnetIdsArgs, opts?: pulumi.InvokeOptions): Promise<GetSubnetIdsResult>; /** * A collection of arguments for invoking getSubnetIds. */ export interface GetSubnetIdsArgs { /** * The region in which to obtain the subnet ids. If omitted, the provider-level region will * be used. */ region?: string; /** * Specifies the VPC ID used as the query filter. */ vpcId: string; } /** * A collection of values returned by getSubnetIds. */ export interface GetSubnetIdsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * A set of all the subnet ids found. This data source will fail if none are found. */ readonly ids: string[]; readonly region: string; readonly vpcId: string; } export declare function getSubnetIdsOutput(args: GetSubnetIdsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSubnetIdsResult>; /** * A collection of arguments for invoking getSubnetIds. */ export interface GetSubnetIdsOutputArgs { /** * The region in which to obtain the subnet ids. If omitted, the provider-level region will * be used. */ region?: pulumi.Input<string>; /** * Specifies the VPC ID used as the query filter. */ vpcId: pulumi.Input<string>; }