import * as pulumi from "@pulumi/pulumi"; /** * Creates a share for an EFS service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const efs = ovh.getStorageEfs({ * serviceName: "XXX", * }); * const share = new ovh.StorageEfsShare("share", { * serviceName: efs.then(efs => efs.serviceName), * name: "share", * description: "My share", * protocol: "NFS", * size: 100, * }); * ``` * * ## Import * * An EFS share can be imported using its `service_name` and `id` fields. * * Using the following configuration: * * terraform * * import { * * to = ovh_storage_efs_share.share * * id = "/" * * } * * You can then run: * * bash * * $ pulumi preview -generate-config-out=share.tf * * $ pulumi up * * The file `share.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 StorageEfsShare extends pulumi.CustomResource { /** * Get an existing StorageEfsShare 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?: StorageEfsShareState, opts?: pulumi.CustomResourceOptions): StorageEfsShare; /** * Returns true if the given object is an instance of StorageEfsShare. 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 StorageEfsShare; /** * Share creation date */ readonly createdAt: pulumi.Output; /** * Share description */ readonly description: pulumi.Output; /** * User-defined name used to generate human readable access path for the share */ readonly mountPointName: pulumi.Output; /** * Share name */ readonly name: pulumi.Output; /** * Share protocol */ readonly protocol: pulumi.Output; /** * Service name */ readonly serviceName: pulumi.Output; /** * Share size in Gigabytes */ readonly size: pulumi.Output; /** * Snapshot ID used to create the share */ readonly snapshotId: pulumi.Output; /** * Share status */ readonly status: pulumi.Output; /** * Create a StorageEfsShare 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: StorageEfsShareArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StorageEfsShare resources. */ export interface StorageEfsShareState { /** * Share creation date */ createdAt?: pulumi.Input; /** * Share description */ description?: pulumi.Input; /** * User-defined name used to generate human readable access path for the share */ mountPointName?: pulumi.Input; /** * Share name */ name?: pulumi.Input; /** * Share protocol */ protocol?: pulumi.Input; /** * Service name */ serviceName?: pulumi.Input; /** * Share size in Gigabytes */ size?: pulumi.Input; /** * Snapshot ID used to create the share */ snapshotId?: pulumi.Input; /** * Share status */ status?: pulumi.Input; } /** * The set of arguments for constructing a StorageEfsShare resource. */ export interface StorageEfsShareArgs { /** * Share description */ description?: pulumi.Input; /** * User-defined name used to generate human readable access path for the share */ mountPointName?: pulumi.Input; /** * Share name */ name?: pulumi.Input; /** * Share protocol */ protocol: pulumi.Input; /** * Service name */ serviceName: pulumi.Input; /** * Share size in Gigabytes */ size: pulumi.Input; /** * Snapshot ID used to create the share */ snapshotId?: pulumi.Input; }