@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
84 lines (83 loc) • 2.4 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about the Bucket's policy.
* For more information, see [the documentation](https://www.scaleway.com/en/docs/object-storage-feature/).
*
* ## Example Usage
*
* ```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<GetObjectBucketPolicyResult>;
/**
* A collection of arguments for invoking getObjectBucketPolicy.
*/
export interface GetObjectBucketPolicyArgs {
/**
* The bucket name.
*/
bucket: string;
/**
* `projectId`) The ID of the project the bucket is associated with.
*/
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 bucket's policy in JSON format.
*/
readonly policy: string;
readonly projectId?: string;
readonly region?: string;
}
/**
* Gets information about the Bucket's policy.
* For more information, see [the documentation](https://www.scaleway.com/en/docs/object-storage-feature/).
*
* ## Example Usage
*
* ```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.InvokeOptions): pulumi.Output<GetObjectBucketPolicyResult>;
/**
* A collection of arguments for invoking getObjectBucketPolicy.
*/
export interface GetObjectBucketPolicyOutputArgs {
/**
* The bucket name.
*/
bucket: pulumi.Input<string>;
/**
* `projectId`) The ID of the project the bucket is associated with.
*/
projectId?: pulumi.Input<string>;
/**
* `region`) The region in which the Object Storage exists.
*/
region?: pulumi.Input<string>;
}