UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

60 lines 2.04 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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"); /** * 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({}); * ``` */ function getLocations(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:cloudrun/getLocations:getLocations", { "project": args.project, }, opts); } exports.getLocations = getLocations; /** * 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({}); * ``` */ function getLocationsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:cloudrun/getLocations:getLocations", { "project": args.project, }, opts); } exports.getLocationsOutput = getLocationsOutput; //# sourceMappingURL=getLocations.js.map