@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
124 lines (123 loc) • 3.61 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Gets information about the Bucket.
* 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 "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const main = new scaleway.ObjectBucket("main", {tags: {
* foo: "bar",
* }});
* const selected = scaleway.getObjectBucket({
* name: "bucket.test.com",
* });
* ```
* ### Fetching the bucket from a specific project
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const selected = scaleway.getObjectBucket({
* name: "bucket.test.com",
* projectId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getObjectBucket(args?: GetObjectBucketArgs, opts?: pulumi.InvokeOptions): Promise<GetObjectBucketResult>;
/**
* A collection of arguments for invoking getObjectBucket.
*/
export interface GetObjectBucketArgs {
/**
* The bucket name.
*/
name?: 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 getObjectBucket.
*/
export interface GetObjectBucketResult {
readonly acl: string;
readonly corsRules: outputs.GetObjectBucketCorsRule[];
/**
* The endpoint URL of the bucket
*/
readonly endpoint: string;
readonly forceDestroy: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly lifecycleRules: outputs.GetObjectBucketLifecycleRule[];
readonly name?: string;
readonly objectLockEnabled: boolean;
readonly projectId?: string;
readonly region?: string;
readonly tags: {
[key: string]: string;
};
readonly versionings: outputs.GetObjectBucketVersioning[];
}
/**
* Gets information about the Bucket.
* 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 "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const main = new scaleway.ObjectBucket("main", {tags: {
* foo: "bar",
* }});
* const selected = scaleway.getObjectBucket({
* name: "bucket.test.com",
* });
* ```
* ### Fetching the bucket from a specific project
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const selected = scaleway.getObjectBucket({
* name: "bucket.test.com",
* projectId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getObjectBucketOutput(args?: GetObjectBucketOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetObjectBucketResult>;
/**
* A collection of arguments for invoking getObjectBucket.
*/
export interface GetObjectBucketOutputArgs {
/**
* The bucket name.
*/
name?: 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>;
}