UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

82 lines 2.69 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.getObjectBucketOutput = exports.getObjectBucket = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about the Bucket. * For more information, see [the documentation](https://www.scaleway.com/en/docs/object-storage-feature/). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const main = new scaleway.ObjectBucket("main", {tags: { * foo: "bar", * }}); * const selected = scaleway.getObjectBucket({ * name: "bucket.test.com", * }); * ``` * ### Fetching the bucket from a specific project * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const selected = scaleway.getObjectBucket({ * name: "bucket.test.com", * projectId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getObjectBucket(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getObjectBucket:getObjectBucket", { "name": args.name, "projectId": args.projectId, "region": args.region, }, opts); } exports.getObjectBucket = getObjectBucket; /** * Gets information about the Bucket. * For more information, see [the documentation](https://www.scaleway.com/en/docs/object-storage-feature/). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const main = new scaleway.ObjectBucket("main", {tags: { * foo: "bar", * }}); * const selected = scaleway.getObjectBucket({ * name: "bucket.test.com", * }); * ``` * ### Fetching the bucket from a specific project * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const selected = scaleway.getObjectBucket({ * name: "bucket.test.com", * projectId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getObjectBucketOutput(args, opts) { return pulumi.output(args).apply((a) => getObjectBucket(a, opts)); } exports.getObjectBucketOutput = getObjectBucketOutput; //# sourceMappingURL=getObjectBucket.js.map