@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
74 lines (73 loc) • 2.15 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get Cloud Run locations available for a project.
*
* To get more information about Cloud Run, see:
*
* * [API documentation](https://cloud.google.com/run/docs/reference/rest/v1/projects.locations)
* * How-to Guides
* * [Official Documentation](https://cloud.google.com/run/docs/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const available = gcp.cloudrun.getLocations({});
* ```
*/
export declare function getLocations(args?: GetLocationsArgs, opts?: pulumi.InvokeOptions): Promise<GetLocationsResult>;
/**
* A collection of arguments for invoking getLocations.
*/
export interface GetLocationsArgs {
/**
* The project to list versions for. If it
* is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getLocations.
*/
export interface GetLocationsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The list of Cloud Run locations available for the given project.
*/
readonly locations: string[];
readonly project: string;
}
/**
* Get Cloud Run locations available for a project.
*
* To get more information about Cloud Run, see:
*
* * [API documentation](https://cloud.google.com/run/docs/reference/rest/v1/projects.locations)
* * How-to Guides
* * [Official Documentation](https://cloud.google.com/run/docs/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const available = gcp.cloudrun.getLocations({});
* ```
*/
export declare function getLocationsOutput(args?: GetLocationsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLocationsResult>;
/**
* A collection of arguments for invoking getLocations.
*/
export interface GetLocationsOutputArgs {
/**
* The project to list versions for. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}