import * as pulumi from "@pulumi/pulumi"; /** * Creates a file storage share in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const share = new ovh.CloudProjectFileStorageShare("share", { * serviceName: "xxxxxxxxxx", * regionName: "GRA11", * name: "my_share", * description: "My file storage share", * size: 150, * type: "standard-1az", * networkId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * subnetId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * }); * ``` * * ## Import * * A file storage share can be imported using the `service_name`, `region_name`, and `share_id` separated by `/`: * * bash * * ```sh * $ pulumi import ovh:index/cloudProjectFileStorageShare:CloudProjectFileStorageShare share service_name/region_name/share_id * ``` */ export declare class CloudProjectFileStorageShare extends pulumi.CustomResource { /** * Get an existing CloudProjectFileStorageShare 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?: CloudProjectFileStorageShareState, opts?: pulumi.CustomResourceOptions): CloudProjectFileStorageShare; /** * Returns true if the given object is an instance of CloudProjectFileStorageShare. 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 CloudProjectFileStorageShare; /** * Availability zone of the share (required in 3AZ regions). */ readonly availabilityZone: pulumi.Output; /** * Share creation date. */ readonly createdAt: pulumi.Output; /** * Share description. */ readonly description: pulumi.Output; /** * Whether the share is public. */ readonly isPublic: pulumi.Output; /** * Share name. */ readonly name: pulumi.Output; /** * Private network ID. */ readonly networkId: pulumi.Output; /** * Share protocol (e.g. `NFS`). */ readonly protocol: pulumi.Output; /** * The region in which the share will be created. */ readonly regionName: pulumi.Output; /** * The ID of the public cloud project. */ readonly serviceName: pulumi.Output; /** * ID of an existing share network. Exactly one of `shareNetworkId` or the pair (`networkId`, `subnetId`) must be set. */ readonly shareNetworkId: 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; /** * Subnet ID. */ readonly subnetId: pulumi.Output; /** * Share type. Currently only `standard-1az` is supported. */ readonly type: pulumi.Output; /** * Create a CloudProjectFileStorageShare 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: CloudProjectFileStorageShareArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudProjectFileStorageShare resources. */ export interface CloudProjectFileStorageShareState { /** * Availability zone of the share (required in 3AZ regions). */ availabilityZone?: pulumi.Input; /** * Share creation date. */ createdAt?: pulumi.Input; /** * Share description. */ description?: pulumi.Input; /** * Whether the share is public. */ isPublic?: pulumi.Input; /** * Share name. */ name?: pulumi.Input; /** * Private network ID. */ networkId?: pulumi.Input; /** * Share protocol (e.g. `NFS`). */ protocol?: pulumi.Input; /** * The region in which the share will be created. */ regionName?: pulumi.Input; /** * The ID of the public cloud project. */ serviceName?: pulumi.Input; /** * ID of an existing share network. Exactly one of `shareNetworkId` or the pair (`networkId`, `subnetId`) must be set. */ shareNetworkId?: pulumi.Input; /** * Share size in Gigabytes. */ size?: pulumi.Input; /** * Snapshot ID used to create the share. */ snapshotId?: pulumi.Input; /** * Share status. */ status?: pulumi.Input; /** * Subnet ID. */ subnetId?: pulumi.Input; /** * Share type. Currently only `standard-1az` is supported. */ type?: pulumi.Input; } /** * The set of arguments for constructing a CloudProjectFileStorageShare resource. */ export interface CloudProjectFileStorageShareArgs { /** * Availability zone of the share (required in 3AZ regions). */ availabilityZone?: pulumi.Input; /** * Share description. */ description?: pulumi.Input; /** * Share name. */ name?: pulumi.Input; /** * Private network ID. */ networkId?: pulumi.Input; /** * The region in which the share will be created. */ regionName: pulumi.Input; /** * The ID of the public cloud project. */ serviceName: pulumi.Input; /** * ID of an existing share network. Exactly one of `shareNetworkId` or the pair (`networkId`, `subnetId`) must be set. */ shareNetworkId?: pulumi.Input; /** * Share size in Gigabytes. */ size?: pulumi.Input; /** * Snapshot ID used to create the share. */ snapshotId?: pulumi.Input; /** * Subnet ID. */ subnetId?: pulumi.Input; /** * Share type. Currently only `standard-1az` is supported. */ type?: pulumi.Input; }