UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

66 lines 3.24 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.getObjectBucketPolicyOutput = exports.getObjectBucketPolicy = 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", * }); * ``` */ /** @deprecated scaleway.index/getobjectbucketpolicy.getObjectBucketPolicy has been deprecated in favor of scaleway.object/getbucketpolicy.getBucketPolicy */ function getObjectBucketPolicy(args, opts) { pulumi.log.warn("getObjectBucketPolicy is deprecated: scaleway.index/getobjectbucketpolicy.getObjectBucketPolicy has been deprecated in favor of scaleway.object/getbucketpolicy.getBucketPolicy"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getObjectBucketPolicy:getObjectBucketPolicy", { "bucket": args.bucket, "projectId": args.projectId, "region": args.region, }, opts); } exports.getObjectBucketPolicy = getObjectBucketPolicy; /** * 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", * }); * ``` */ /** @deprecated scaleway.index/getobjectbucketpolicy.getObjectBucketPolicy has been deprecated in favor of scaleway.object/getbucketpolicy.getBucketPolicy */ function getObjectBucketPolicyOutput(args, opts) { pulumi.log.warn("getObjectBucketPolicy is deprecated: scaleway.index/getobjectbucketpolicy.getObjectBucketPolicy has been deprecated in favor of scaleway.object/getbucketpolicy.getBucketPolicy"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getObjectBucketPolicy:getObjectBucketPolicy", { "bucket": args.bucket, "projectId": args.projectId, "region": args.region, }, opts); } exports.getObjectBucketPolicyOutput = getObjectBucketPolicyOutput; //# sourceMappingURL=getObjectBucketPolicy.js.map