import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## Import * * A storage in a public cloud project can be imported using the `service_name`, `region_name` and `name` attributes. Using the following configuration: * * terraform * * import { * * id = "//" * * to = ovh_cloud_project_storage.storage * * } * * You can then run: * * bash * * $ pulumi preview -generate-config-out=storage.tf * * $ pulumi up * * The file `storage.tf` will then contain the imported resource's configuration, that can be copied next to the `import` block above. See https://developer.hashicorp.com/terraform/language/import/generating-configuration for more details. */ export declare class Storage extends pulumi.CustomResource { /** * Get an existing Storage 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?: StorageState, opts?: pulumi.CustomResourceOptions): Storage; /** * Returns true if the given object is an instance of Storage. 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 Storage; /** * The date and timestamp when the resource was created */ readonly createdAt: pulumi.Output; /** * Encryption configuration */ readonly encryption: pulumi.Output; /** * If true, objects list will not be saved in state (useful for large buckets) */ readonly hideObjects: pulumi.Output; /** * Limit the number of objects returned (1000 maximum, defaults to 1000) */ readonly limit: pulumi.Output; /** * Key to start with when listing objects */ readonly marker: pulumi.Output; /** * Container name */ readonly name: pulumi.Output; /** * Object lock configuration */ readonly objectLock: pulumi.Output; /** * Container objects */ readonly objects: pulumi.Output; /** * Container total objects count */ readonly objectsCount: pulumi.Output; /** * Container total objects size (bytes) */ readonly objectsSize: pulumi.Output; /** * Container owner user ID */ readonly ownerId: pulumi.Output; /** * List objects whose key begins with this prefix */ readonly prefix: pulumi.Output; /** * Container region */ readonly region: pulumi.Output; /** * Region name */ readonly regionName: pulumi.Output; /** * Replication configuration */ readonly replication: pulumi.Output; /** * Service name. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Container tags */ readonly tags: pulumi.Output<{ [key: string]: string; }>; /** * Versioning configuration */ readonly versioning: pulumi.Output; /** * Container virtual host */ readonly virtualHost: pulumi.Output; /** * Create a Storage 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: StorageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Storage resources. */ export interface StorageState { /** * The date and timestamp when the resource was created */ createdAt?: pulumi.Input; /** * Encryption configuration */ encryption?: pulumi.Input; /** * If true, objects list will not be saved in state (useful for large buckets) */ hideObjects?: pulumi.Input; /** * Limit the number of objects returned (1000 maximum, defaults to 1000) */ limit?: pulumi.Input; /** * Key to start with when listing objects */ marker?: pulumi.Input; /** * Container name */ name?: pulumi.Input; /** * Object lock configuration */ objectLock?: pulumi.Input; /** * Container objects */ objects?: pulumi.Input[]>; /** * Container total objects count */ objectsCount?: pulumi.Input; /** * Container total objects size (bytes) */ objectsSize?: pulumi.Input; /** * Container owner user ID */ ownerId?: pulumi.Input; /** * List objects whose key begins with this prefix */ prefix?: pulumi.Input; /** * Container region */ region?: pulumi.Input; /** * Region name */ regionName?: pulumi.Input; /** * Replication configuration */ replication?: pulumi.Input; /** * Service name. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Container tags */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Versioning configuration */ versioning?: pulumi.Input; /** * Container virtual host */ virtualHost?: pulumi.Input; } /** * The set of arguments for constructing a Storage resource. */ export interface StorageArgs { /** * Encryption configuration */ encryption?: pulumi.Input; /** * If true, objects list will not be saved in state (useful for large buckets) */ hideObjects?: pulumi.Input; /** * Limit the number of objects returned (1000 maximum, defaults to 1000) */ limit?: pulumi.Input; /** * Key to start with when listing objects */ marker?: pulumi.Input; /** * Container name */ name?: pulumi.Input; /** * Object lock configuration */ objectLock?: pulumi.Input; /** * Container owner user ID */ ownerId?: pulumi.Input; /** * List objects whose key begins with this prefix */ prefix?: pulumi.Input; /** * Region name */ regionName: pulumi.Input; /** * Replication configuration */ replication?: pulumi.Input; /** * Service name. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Container tags */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Versioning configuration */ versioning?: pulumi.Input; }