@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
72 lines (71 loc) • 1.97 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the list of CFW regions.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const fwInstanceId = config.requireObject("fwInstanceId");
* const test = huaweicloud.Cfw.getRegions({
* fwInstanceId: fwInstanceId,
* });
* ```
*/
export declare function getRegions(args: GetRegionsArgs, opts?: pulumi.InvokeOptions): Promise<GetRegionsResult>;
/**
* A collection of arguments for invoking getRegions.
*/
export interface GetRegionsArgs {
/**
* Specifies the enterprise project ID.
*/
enterpriseProjectId?: string;
/**
* Specifies the firewall ID.
*/
fwInstanceId: string;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getRegions.
*/
export interface GetRegionsResult {
/**
* The region list.
*/
readonly data: string;
readonly enterpriseProjectId?: string;
readonly fwInstanceId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
}
export declare function getRegionsOutput(args: GetRegionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRegionsResult>;
/**
* A collection of arguments for invoking getRegions.
*/
export interface GetRegionsOutputArgs {
/**
* Specifies the enterprise project ID.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies the firewall ID.
*/
fwInstanceId: pulumi.Input<string>;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
}