@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
79 lines (78 loc) • 2.02 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of redis regions
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.redis.getRegions({
* regionId: "cn-north-3",
* });
* ```
*/
export declare function getRegions(args?: GetRegionsArgs, opts?: pulumi.InvokeOptions): Promise<GetRegionsResult>;
/**
* A collection of arguments for invoking getRegions.
*/
export interface GetRegionsArgs {
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* Target region info.
*/
regionId?: string;
}
/**
* A collection of values returned by getRegions.
*/
export interface GetRegionsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly outputFile?: string;
/**
* The id of the region.
*/
readonly regionId?: string;
/**
* The collection of region query.
*/
readonly regions: outputs.redis.GetRegionsRegion[];
/**
* The total count of region query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of redis regions
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.redis.getRegions({
* regionId: "cn-north-3",
* });
* ```
*/
export declare function getRegionsOutput(args?: GetRegionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRegionsResult>;
/**
* A collection of arguments for invoking getRegions.
*/
export interface GetRegionsOutputArgs {
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* Target region info.
*/
regionId?: pulumi.Input<string>;
}