@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
62 lines • 2.24 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.getBucketObjectsOutput = exports.getBucketObjects = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Gets existing objects inside an existing bucket in Google Cloud Storage service (GCS).
* See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects)
* and [API](https://cloud.google.com/storage/docs/json_api/v1/objects/list).
*
* ## Example Usage
*
* Example files stored within a bucket.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const files = gcp.storage.getBucketObjects({
* bucket: "file-store",
* });
* ```
*/
function getBucketObjects(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:storage/getBucketObjects:getBucketObjects", {
"bucket": args.bucket,
"matchGlob": args.matchGlob,
"prefix": args.prefix,
}, opts);
}
exports.getBucketObjects = getBucketObjects;
/**
* Gets existing objects inside an existing bucket in Google Cloud Storage service (GCS).
* See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects)
* and [API](https://cloud.google.com/storage/docs/json_api/v1/objects/list).
*
* ## Example Usage
*
* Example files stored within a bucket.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const files = gcp.storage.getBucketObjects({
* bucket: "file-store",
* });
* ```
*/
function getBucketObjectsOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:storage/getBucketObjects:getBucketObjects", {
"bucket": args.bucket,
"matchGlob": args.matchGlob,
"prefix": args.prefix,
}, opts);
}
exports.getBucketObjectsOutput = getBucketObjectsOutput;
//# sourceMappingURL=getBucketObjects.js.map
;