UNPKG

@pulumi/digitalocean

Version:

A Pulumi package for creating and managing DigitalOcean cloud resources.

75 lines (74 loc) 2.93 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource for assigning an existing DigitalOcean reserved IPv6 to a Droplet. This * makes it easy to provision reserved IPv6 addresses that are not tied to the lifecycle of your Droplet. * * ## Import * * Reserved IPv6 assignments can be imported using the reserved IPv6 itself and the `id` of * * the Droplet joined with a comma. For example: * * ```sh * $ pulumi import digitalocean:index/reservedIpv6Assignment:ReservedIpv6Assignment foobar 2409:40d0:fa:27dd:9b24:7074:7b85:eee6,123456 * ``` */ export declare class ReservedIpv6Assignment extends pulumi.CustomResource { /** * Get an existing ReservedIpv6Assignment 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?: ReservedIpv6AssignmentState, opts?: pulumi.CustomResourceOptions): ReservedIpv6Assignment; /** * Returns true if the given object is an instance of ReservedIpv6Assignment. 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 ReservedIpv6Assignment; /** * The ID of Droplet that the reserved IPv6 will be assigned to. */ readonly dropletId: pulumi.Output<number>; /** * The reserved IPv6 to assign to the Droplet. */ readonly ip: pulumi.Output<string>; /** * Create a ReservedIpv6Assignment 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: ReservedIpv6AssignmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ReservedIpv6Assignment resources. */ export interface ReservedIpv6AssignmentState { /** * The ID of Droplet that the reserved IPv6 will be assigned to. */ dropletId?: pulumi.Input<number>; /** * The reserved IPv6 to assign to the Droplet. */ ip?: pulumi.Input<string>; } /** * The set of arguments for constructing a ReservedIpv6Assignment resource. */ export interface ReservedIpv6AssignmentArgs { /** * The ID of Droplet that the reserved IPv6 will be assigned to. */ dropletId: pulumi.Input<number>; /** * The reserved IPv6 to assign to the Droplet. */ ip: pulumi.Input<string>; }