import * as pulumi from "@pulumi/pulumi";
/**
 * 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 "@pulumiverse/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 */
export declare function getObjectBucketPolicy(args: GetObjectBucketPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetObjectBucketPolicyResult>;
/**
 * A collection of arguments for invoking getObjectBucketPolicy.
 */
export interface GetObjectBucketPolicyArgs {
    /**
     * The name of the bucket.
     */
    bucket: string;
    /**
     * `projectId`) The ID of the project with which the bucket is associated.
     *
     * > **Important:** The `projectId` attribute has a particular behavior with s3 products, because the s3 API is scoped by project.
     * If you are using a project different from the default one, you have to specify the `projectId` for every child resource of the bucket,
     * like bucket policies. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.
     *
     * For more information on Object Storage and Scaleway Projects, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/iam/api-cli/using-api-key-object-storage/).
     */
    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.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 "@pulumiverse/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 */
export declare function getObjectBucketPolicyOutput(args: GetObjectBucketPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetObjectBucketPolicyResult>;
/**
 * A collection of arguments for invoking getObjectBucketPolicy.
 */
export interface GetObjectBucketPolicyOutputArgs {
    /**
     * The name of the bucket.
     */
    bucket: pulumi.Input<string>;
    /**
     * `projectId`) The ID of the project with which the bucket is associated.
     *
     * > **Important:** The `projectId` attribute has a particular behavior with s3 products, because the s3 API is scoped by project.
     * If you are using a project different from the default one, you have to specify the `projectId` for every child resource of the bucket,
     * like bucket policies. Otherwise, Terraform will try to create the child resource with the default project ID and you will get a 403 error.
     *
     * For more information on Object Storage and Scaleway Projects, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/iam/api-cli/using-api-key-object-storage/).
     */
    projectId?: pulumi.Input<string | undefined>;
    /**
     * `region`) The region in which the Object Storage exists.
     */
    region?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getObjectBucketPolicy.d.ts.map