import * as pulumi from "@pulumi/pulumi"; /** * The `scaleway.ObjectBucketPolicy` 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/storage/object/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.getObjectBucketPolicy({ * bucket: "bucket.test.com", * }); * ``` */ export declare function getObjectBucketPolicy(args: GetObjectBucketPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getObjectBucketPolicy. */ export interface GetObjectBucketPolicyArgs { /** * The name of the bucket. */ bucket: string; projectId?: string; /** * `region`) The region in which the Object Storage exists. */ region?: string; } /** * A collection of values returned by getObjectBucketPolicy. */ export interface GetObjectBucketPolicyResult { readonly bucket: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The content of the bucket policy in JSON format. */ readonly policy: string; readonly projectId?: string; readonly region?: string; } /** * The `scaleway.ObjectBucketPolicy` 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/storage/object/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.getObjectBucketPolicy({ * bucket: "bucket.test.com", * }); * ``` */ export declare function getObjectBucketPolicyOutput(args: GetObjectBucketPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getObjectBucketPolicy. */ export interface GetObjectBucketPolicyOutputArgs { /** * The name of the bucket. */ bucket: pulumi.Input; projectId?: pulumi.Input; /** * `region`) The region in which the Object Storage exists. */ region?: pulumi.Input; }