UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

62 lines 2.45 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.getBucketPolicyOutput = exports.getBucketPolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The `scaleway.object.BucketPolicy` data source is used to retrieve information about the bucket policy of an Object Storage bucket. * * Refer to the Object Storage [documentation](https://www.scaleway.com/en/docs/object-storage/api-cli/bucket-policy/) for more information. * * ## Retrieve the bucket policy of a bucket * * The following command allows you to retrieve a bucket policy by its bucket. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const main = scaleway.object.getBucketPolicy({ * bucket: "bucket.test.com", * }); * ``` */ function getBucketPolicy(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:object/getBucketPolicy:getBucketPolicy", { "bucket": args.bucket, "projectId": args.projectId, "region": args.region, }, opts); } exports.getBucketPolicy = getBucketPolicy; /** * The `scaleway.object.BucketPolicy` data source is used to retrieve information about the bucket policy of an Object Storage bucket. * * Refer to the Object Storage [documentation](https://www.scaleway.com/en/docs/object-storage/api-cli/bucket-policy/) for more information. * * ## Retrieve the bucket policy of a bucket * * The following command allows you to retrieve a bucket policy by its bucket. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const main = scaleway.object.getBucketPolicy({ * bucket: "bucket.test.com", * }); * ``` */ function getBucketPolicyOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:object/getBucketPolicy:getBucketPolicy", { "bucket": args.bucket, "projectId": args.projectId, "region": args.region, }, opts); } exports.getBucketPolicyOutput = getBucketPolicyOutput; //# sourceMappingURL=getBucketPolicy.js.map