import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Flexible IP Mac Addresses. * For more information, see [the documentation](https://www.scaleway.com/en/developers/api/elastic-metal-flexible-ip/). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const mainFlexibleIp = new scaleway.FlexibleIp("mainFlexibleIp", {}); * const mainFlexibleIpMacAddress = new scaleway.FlexibleIpMacAddress("mainFlexibleIpMacAddress", { * flexibleIpId: mainFlexibleIp.id, * type: "kvm", * }); * ``` * * ### Duplicate on many other flexible IPs * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const myOffer = scaleway.getBaremetalOffer({ * name: "EM-B112X-SSD", * }); * const base = new scaleway.BaremetalServer("base", { * offer: myOffer.then(myOffer => myOffer.offerId), * installConfigAfterward: true, * }); * const ip01 = new scaleway.FlexibleIp("ip01", {serverId: base.id}); * const ip02 = new scaleway.FlexibleIp("ip02", {serverId: base.id}); * const ip03 = new scaleway.FlexibleIp("ip03", {serverId: base.id}); * const main = new scaleway.FlexibleIpMacAddress("main", { * flexibleIpId: ip01.id, * type: "kvm", * flexibleIpIdsToDuplicates: [ * ip02.id, * ip03.id, * ], * }); * ``` * * ## Import * * Flexible IP Mac Addresses can be imported using the `{zone}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/flexibleIpMacAddress:FlexibleIpMacAddress main fr-par-1/11111111-1111-1111-1111-111111111111 * ``` */ export declare class FlexibleIpMacAddress extends pulumi.CustomResource { /** * Get an existing FlexibleIpMacAddress 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?: FlexibleIpMacAddressState, opts?: pulumi.CustomResourceOptions): FlexibleIpMacAddress; /** * Returns true if the given object is an instance of FlexibleIpMacAddress. 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 FlexibleIpMacAddress; /** * The Virtual MAC address. */ readonly address: pulumi.Output; /** * The date at which the Virtual Mac Address was created (RFC 3339 format). */ readonly createdAt: pulumi.Output; /** * The ID of the flexible IP for which to generate a virtual MAC. */ readonly flexibleIpId: pulumi.Output; /** * The IDs of the flexible IPs on which to duplicate the virtual MAC. * > **Important:** The flexible IPs need to be attached to the same server for the operation to work. */ readonly flexibleIpIdsToDuplicates: pulumi.Output; /** * The Virtual MAC status. */ readonly status: pulumi.Output; /** * The type of the virtual MAC. */ readonly type: pulumi.Output; /** * The date at which the Virtual Mac Address was last updated (RFC 3339 format). */ readonly updatedAt: pulumi.Output; /** * The zone of the Virtual Mac Address. */ readonly zone: pulumi.Output; /** * Create a FlexibleIpMacAddress 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: FlexibleIpMacAddressArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FlexibleIpMacAddress resources. */ export interface FlexibleIpMacAddressState { /** * The Virtual MAC address. */ address?: pulumi.Input; /** * The date at which the Virtual Mac Address was created (RFC 3339 format). */ createdAt?: pulumi.Input; /** * The ID of the flexible IP for which to generate a virtual MAC. */ flexibleIpId?: pulumi.Input; /** * The IDs of the flexible IPs on which to duplicate the virtual MAC. * > **Important:** The flexible IPs need to be attached to the same server for the operation to work. */ flexibleIpIdsToDuplicates?: pulumi.Input[]>; /** * The Virtual MAC status. */ status?: pulumi.Input; /** * The type of the virtual MAC. */ type?: pulumi.Input; /** * The date at which the Virtual Mac Address was last updated (RFC 3339 format). */ updatedAt?: pulumi.Input; /** * The zone of the Virtual Mac Address. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a FlexibleIpMacAddress resource. */ export interface FlexibleIpMacAddressArgs { /** * The ID of the flexible IP for which to generate a virtual MAC. */ flexibleIpId: pulumi.Input; /** * The IDs of the flexible IPs on which to duplicate the virtual MAC. * > **Important:** The flexible IPs need to be attached to the same server for the operation to work. */ flexibleIpIdsToDuplicates?: pulumi.Input[]>; /** * The type of the virtual MAC. */ type: pulumi.Input; /** * The zone of the Virtual Mac Address. */ zone?: pulumi.Input; }