@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
62 lines • 2.02 kB
JavaScript
;
// *** 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.getBucketsOutput = exports.getBuckets = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Gets a list of existing GCS buckets.
* See [the official documentation](https://cloud.google.com/storage/docs/introduction)
* and [API](https://cloud.google.com/storage/docs/json_api/v1/buckets/list).
*
* ## Example Usage
*
* Example GCS buckets.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const example = gcp.storage.getBuckets({
* project: "example-project",
* });
* ```
*/
function getBuckets(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:storage/getBuckets:getBuckets", {
"prefix": args.prefix,
"project": args.project,
}, opts);
}
exports.getBuckets = getBuckets;
/**
* Gets a list of existing GCS buckets.
* See [the official documentation](https://cloud.google.com/storage/docs/introduction)
* and [API](https://cloud.google.com/storage/docs/json_api/v1/buckets/list).
*
* ## Example Usage
*
* Example GCS buckets.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const example = gcp.storage.getBuckets({
* project: "example-project",
* });
* ```
*/
function getBucketsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:storage/getBuckets:getBuckets", {
"prefix": args.prefix,
"project": args.project,
}, opts);
}
exports.getBucketsOutput = getBucketsOutput;
//# sourceMappingURL=getBuckets.js.map