UNPKG

@pulumi/gcp

Version:

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

66 lines 2.28 kB
"use strict"; // *** 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.getBucketObjectOutput = exports.getBucketObject = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Gets an existing object 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). * * ## Example Usage * * Example picture stored within a folder. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const picture = gcp.storage.getBucketObject({ * name: "folder/butterfly01.jpg", * bucket: "image-store", * }); * ``` */ function getBucketObject(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:storage/getBucketObject:getBucketObject", { "bucket": args.bucket, "name": args.name, }, opts); } exports.getBucketObject = getBucketObject; /** * Gets an existing object 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). * * ## Example Usage * * Example picture stored within a folder. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const picture = gcp.storage.getBucketObject({ * name: "folder/butterfly01.jpg", * bucket: "image-store", * }); * ``` */ function getBucketObjectOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:storage/getBucketObject:getBucketObject", { "bucket": args.bucket, "name": args.name, }, opts); } exports.getBucketObjectOutput = getBucketObjectOutput; //# sourceMappingURL=getBucketObject.js.map