import * as pulumi from "@pulumi/pulumi"; /** * This resource represents a UpCloud floating IP address resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * // Create a detached floating IP address. * const myFloatingAddress = new upcloud.FloatingIpAddress("my_floating_address", {zone: "de-fra1"}); * // Floating IP address assigned to a server resource. * const example = new upcloud.Server("example", { * hostname: "terraform.example.tld", * zone: "de-fra1", * plan: "1xCPU-1GB", * metadata: true, * login: { * passwordDelivery: "none", * }, * template: { * storage: "Ubuntu Server 24.04 LTS (Noble Numbat)", * }, * networkInterfaces: [{ * type: "public", * }], * }); * const myNewFloatingAddress = new upcloud.FloatingIpAddress("my_new_floating_address", {macAddress: example.networkInterfaces.apply(networkInterfaces => networkInterfaces?.[0]?.macAddress)}); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import upcloud:index/floatingIpAddress:FloatingIpAddress my_new_floating_address 94.237.114.205 * ``` */ export declare class FloatingIpAddress extends pulumi.CustomResource { /** * Get an existing FloatingIpAddress 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?: FloatingIpAddressState, opts?: pulumi.CustomResourceOptions): FloatingIpAddress; /** * Returns true if the given object is an instance of FloatingIpAddress. 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 FloatingIpAddress; /** * Network access for the floating IP address. Supported value: `public`. */ readonly access: pulumi.Output; /** * The address family of the floating IP address. */ readonly family: pulumi.Output; /** * An UpCloud assigned IP Address. */ readonly ipAddress: pulumi.Output; /** * MAC address of a server interface to assign address to. */ readonly macAddress: pulumi.Output; /** * The release policy of the floating IP address. */ readonly releasePolicy: pulumi.Output; /** * Zone of the address, e.g. `de-fra1`. Required when assigning a detached floating IP address. You can list available zones with `upctl zone list`. */ readonly zone: pulumi.Output; /** * Create a FloatingIpAddress 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?: FloatingIpAddressArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FloatingIpAddress resources. */ export interface FloatingIpAddressState { /** * Network access for the floating IP address. Supported value: `public`. */ access?: pulumi.Input; /** * The address family of the floating IP address. */ family?: pulumi.Input; /** * An UpCloud assigned IP Address. */ ipAddress?: pulumi.Input; /** * MAC address of a server interface to assign address to. */ macAddress?: pulumi.Input; /** * The release policy of the floating IP address. */ releasePolicy?: pulumi.Input; /** * Zone of the address, e.g. `de-fra1`. Required when assigning a detached floating IP address. You can list available zones with `upctl zone list`. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a FloatingIpAddress resource. */ export interface FloatingIpAddressArgs { /** * Network access for the floating IP address. Supported value: `public`. */ access?: pulumi.Input; /** * The address family of the floating IP address. */ family?: pulumi.Input; /** * MAC address of a server interface to assign address to. */ macAddress?: pulumi.Input; /** * The release policy of the floating IP address. */ releasePolicy?: pulumi.Input; /** * Zone of the address, e.g. `de-fra1`. Required when assigning a detached floating IP address. You can list available zones with `upctl zone list`. */ zone?: pulumi.Input; }