import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates a file storage share network in a public cloud project. A share network binds a Neutron network and subnet to a region so that file shares can be attached to it. * * Share networks are immutable: every argument forces the resource to be recreated when changed, and there is no update operation. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const network = new ovh.CloudStorageFileShareNetwork("network", { * serviceName: "", * name: "my-share-network", * description: "Share network for my NFS shares", * networkId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * subnetId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * region: "GRA1", * }); * ``` * * ## Import * * A cloud storage file share network can be imported using the `service_name` and `share_network_id`, separated by `/`: * * terraform * * import { * * to = ovh_cloud_storage_file_share_network.network * * id = "/" * * } * * bash * * ```sh * $ pulumi import ovh:index/cloudStorageFileShareNetwork:CloudStorageFileShareNetwork network service_name/share_network_id * ``` */ export declare class CloudStorageFileShareNetwork extends pulumi.CustomResource { /** * Get an existing CloudStorageFileShareNetwork 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?: CloudStorageFileShareNetworkState, opts?: pulumi.CustomResourceOptions): CloudStorageFileShareNetwork; /** * Returns true if the given object is an instance of CloudStorageFileShareNetwork. 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 CloudStorageFileShareNetwork; /** * Computed hash representing the current target specification value. */ readonly checksum: pulumi.Output; /** * Creation date of the share network. */ readonly createdAt: pulumi.Output; /** * Current state of the file storage share network: */ readonly currentState: pulumi.Output; /** * Share network description. When omitted, this value is computed by the API (which may return an empty value). **Changing this value recreates the resource.** */ readonly description: pulumi.Output; /** * Share network name. **Changing this value recreates the resource.** */ readonly name: pulumi.Output; /** * ID of the network backing the share network. **Changing this value recreates the resource.** */ readonly networkId: pulumi.Output; /** * Region where the share network will be created. **Changing this value recreates the resource.** */ readonly region: pulumi.Output; /** * Share network readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ readonly resourceStatus: pulumi.Output; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ readonly serviceName: pulumi.Output; /** * ID of the subnet backing the share network. **Changing this value recreates the resource.** */ readonly subnetId: pulumi.Output; /** * Last update date of the share network. */ readonly updatedAt: pulumi.Output; /** * Create a CloudStorageFileShareNetwork 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: CloudStorageFileShareNetworkArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudStorageFileShareNetwork resources. */ export interface CloudStorageFileShareNetworkState { /** * Computed hash representing the current target specification value. */ checksum?: pulumi.Input; /** * Creation date of the share network. */ createdAt?: pulumi.Input; /** * Current state of the file storage share network: */ currentState?: pulumi.Input; /** * Share network description. When omitted, this value is computed by the API (which may return an empty value). **Changing this value recreates the resource.** */ description?: pulumi.Input; /** * Share network name. **Changing this value recreates the resource.** */ name?: pulumi.Input; /** * ID of the network backing the share network. **Changing this value recreates the resource.** */ networkId?: pulumi.Input; /** * Region where the share network will be created. **Changing this value recreates the resource.** */ region?: pulumi.Input; /** * Share network readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ resourceStatus?: pulumi.Input; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; /** * ID of the subnet backing the share network. **Changing this value recreates the resource.** */ subnetId?: pulumi.Input; /** * Last update date of the share network. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a CloudStorageFileShareNetwork resource. */ export interface CloudStorageFileShareNetworkArgs { /** * Share network description. When omitted, this value is computed by the API (which may return an empty value). **Changing this value recreates the resource.** */ description?: pulumi.Input; /** * Share network name. **Changing this value recreates the resource.** */ name?: pulumi.Input; /** * ID of the network backing the share network. **Changing this value recreates the resource.** */ networkId: pulumi.Input; /** * Region where the share network will be created. **Changing this value recreates the resource.** */ region: pulumi.Input; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ serviceName: pulumi.Input; /** * ID of the subnet backing the share network. **Changing this value recreates the resource.** */ subnetId: pulumi.Input; }