@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
84 lines (83 loc) • 2.64 kB
TypeScript
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 "@pulumi/scaleway";
*
* const main = scaleway.object.getBucketPolicy({
* bucket: "bucket.test.com",
* });
* ```
*/
export declare function getBucketPolicy(args: GetBucketPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetBucketPolicyResult>;
/**
* A collection of arguments for invoking getBucketPolicy.
*/
export interface GetBucketPolicyArgs {
/**
* 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 getBucketPolicy.
*/
export interface GetBucketPolicyResult {
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 "@pulumi/scaleway";
*
* const main = scaleway.object.getBucketPolicy({
* bucket: "bucket.test.com",
* });
* ```
*/
export declare function getBucketPolicyOutput(args: GetBucketPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBucketPolicyResult>;
/**
* A collection of arguments for invoking getBucketPolicy.
*/
export interface GetBucketPolicyOutputArgs {
/**
* The name of the bucket.
*/
bucket: pulumi.Input<string>;
projectId?: pulumi.Input<string>;
/**
* `region`) The region in which the Object Storage exists.
*/
region?: pulumi.Input<string>;
}