UNPKG

@pulumi/digitalocean

Version:

A Pulumi package for creating and managing DigitalOcean cloud resources.

97 lines (96 loc) 3.22 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages attaching a NFS share to a vpc. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as digitalocean from "@pulumi/digitalocean"; * * const foobar = new digitalocean.Vpc("foobar", { * name: "example-vpc", * region: "atl1", * }); * const foobarNfs = new digitalocean.Nfs("foobar", { * region: "atl1", * name: "example-nfs", * size: 50, * vpcId: foobar.id, * }); * const foobarNfsAttachment = new digitalocean.NfsAttachment("foobar", { * shareId: foobarNfs.id, * vpcId: foobar.id, * }); * ``` * * ## Import * * NFS attachments can be imported using the `share_id` and `vpc_id` separated by a comma, e.g. * * ```sh * $ pulumi import digitalocean:index/nfsAttachment:NfsAttachment foobar 506f78a4-e098-11e5-ad9f-000f53306ae1,d1ebc5a4-e098-11e5-ad9f-000f53306ae1 * ``` */ export declare class NfsAttachment extends pulumi.CustomResource { /** * Get an existing NfsAttachment 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<pulumi.ID>, state?: NfsAttachmentState, opts?: pulumi.CustomResourceOptions): NfsAttachment; /** * Returns true if the given object is an instance of NfsAttachment. 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 NfsAttachment; readonly region: pulumi.Output<string>; /** * The ID of the NFS share to attach. */ readonly shareId: pulumi.Output<string>; /** * The ID of the vpc to attach the NFS share to. */ readonly vpcId: pulumi.Output<string>; /** * Create a NfsAttachment 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: NfsAttachmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NfsAttachment resources. */ export interface NfsAttachmentState { region?: pulumi.Input<string>; /** * The ID of the NFS share to attach. */ shareId?: pulumi.Input<string>; /** * The ID of the vpc to attach the NFS share to. */ vpcId?: pulumi.Input<string>; } /** * The set of arguments for constructing a NfsAttachment resource. */ export interface NfsAttachmentArgs { region: pulumi.Input<string>; /** * The ID of the NFS share to attach. */ shareId: pulumi.Input<string>; /** * The ID of the vpc to attach the NFS share to. */ vpcId: pulumi.Input<string>; }