@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
48 lines • 1.79 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLocationsOutput = exports.getLocations = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information about the available locations. For more details refer the [API docs](https://cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const qa = gcp.alloydb.getLocations({});
* ```
*/
function getLocations(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:alloydb/getLocations:getLocations", {
"project": args.project,
}, opts);
}
exports.getLocations = getLocations;
/**
* Use this data source to get information about the available locations. For more details refer the [API docs](https://cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const qa = gcp.alloydb.getLocations({});
* ```
*/
function getLocationsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:alloydb/getLocations:getLocations", {
"project": args.project,
}, opts);
}
exports.getLocationsOutput = getLocationsOutput;
//# sourceMappingURL=getLocations.js.map
;