import * as pulumi from "@pulumi/pulumi"; /** * This resource represents an UpCloud Managed Object Storage bucket. * * > This resource uses the UpCloud API to manage the Managed Object Storage buckets. The main difference to S3 API is that the buckets can be deleted even when the bucket contains objects. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * const example = new upcloud.ManagedObjectStorage("example", { * name: "bucket-example-objstov2", * region: "europe-1", * configuredStatus: "started", * }); * const exampleManagedObjectStorageBucket = new upcloud.ManagedObjectStorageBucket("example", { * serviceUuid: example.id, * name: "bucket", * }); * ``` */ export declare class ManagedObjectStorageBucket extends pulumi.CustomResource { /** * Get an existing ManagedObjectStorageBucket resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ManagedObjectStorageBucketState, opts?: pulumi.CustomResourceOptions): ManagedObjectStorageBucket; /** * Returns true if the given object is an instance of ManagedObjectStorageBucket. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ManagedObjectStorageBucket; /** * Name of the bucket. */ readonly name: pulumi.Output; /** * Managed Object Storage service UUID. */ readonly serviceUuid: pulumi.Output; /** * Number of objects stored in the bucket. */ readonly totalObjects: pulumi.Output; /** * Total size of objects stored in the bucket. */ readonly totalSizeBytes: pulumi.Output; /** * Create a ManagedObjectStorageBucket resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ManagedObjectStorageBucketArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManagedObjectStorageBucket resources. */ export interface ManagedObjectStorageBucketState { /** * Name of the bucket. */ name?: pulumi.Input; /** * Managed Object Storage service UUID. */ serviceUuid?: pulumi.Input; /** * Number of objects stored in the bucket. */ totalObjects?: pulumi.Input; /** * Total size of objects stored in the bucket. */ totalSizeBytes?: pulumi.Input; } /** * The set of arguments for constructing a ManagedObjectStorageBucket resource. */ export interface ManagedObjectStorageBucketArgs { /** * Name of the bucket. */ name?: pulumi.Input; /** * Managed Object Storage service UUID. */ serviceUuid: pulumi.Input; }