import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Books and manages IPAM IPs. * * For more information about IPAM, see the main [documentation](https://www.scaleway.com/en/docs/network/vpc/concepts/#ipam). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const vpc01 = new scaleway.Vpc("vpc01", {}); * const pn01 = new scaleway.VpcPrivateNetwork("pn01", { * vpcId: vpc01.id, * ipv4Subnet: { * subnet: "172.16.32.0/22", * }, * }); * const ip01 = new scaleway.IpamIp("ip01", {sources: [{ * privateNetworkId: pn01.id, * }]}); * ``` * * ### Request a specific IPv4 address * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const vpc01 = new scaleway.Vpc("vpc01", {}); * const pn01 = new scaleway.VpcPrivateNetwork("pn01", { * vpcId: vpc01.id, * ipv4Subnet: { * subnet: "172.16.32.0/22", * }, * }); * const ip01 = new scaleway.IpamIp("ip01", { * address: "172.16.32.7", * sources: [{ * privateNetworkId: pn01.id, * }], * }); * ``` * * ### Request an IPv6 address * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const vpc01 = new scaleway.Vpc("vpc01", {}); * const pn01 = new scaleway.VpcPrivateNetwork("pn01", { * vpcId: vpc01.id, * ipv6Subnets: [{ * subnet: "fd46:78ab:30b8:177c::/64", * }], * }); * const ip01 = new scaleway.IpamIp("ip01", { * isIpv6: true, * sources: [{ * privateNetworkId: pn01.id, * }], * }); * ``` * * ### Book an IP for a custom resource * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const vpc01 = new scaleway.Vpc("vpc01", {}); * const pn01 = new scaleway.VpcPrivateNetwork("pn01", { * vpcId: vpc01.id, * ipv4Subnet: { * subnet: "172.16.32.0/22", * }, * }); * const ip01 = new scaleway.IpamIp("ip01", { * address: "172.16.32.7", * sources: [{ * privateNetworkId: pn01.id, * }], * customResources: [{ * macAddress: "bc:24:11:74:d0:6a", * }], * }); * ``` * * ## Import * * IPAM IPs can be imported using `{region}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/ipamIp:IpamIp ip_demo fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class IpamIp extends pulumi.CustomResource { /** * Get an existing IpamIp 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?: IpamIpState, opts?: pulumi.CustomResourceOptions): IpamIp; /** * Returns true if the given object is an instance of IpamIp. 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 IpamIp; /** * Request a specific IP in the requested source pool */ readonly address: pulumi.Output; /** * Date and time of IP's creation (RFC 3339 format). */ readonly createdAt: pulumi.Output; /** * The custom resource in which to book the IP */ readonly customResources: pulumi.Output; /** * Defines whether to request an IPv6 address instead of IPv4. */ readonly isIpv6: pulumi.Output; /** * `projectId`) The ID of the Project the IP is associated with. */ readonly projectId: pulumi.Output; /** * `region`) The region of the IP. */ readonly region: pulumi.Output; /** * The IP resource. */ readonly resources: pulumi.Output; /** * The reverse DNS for this IP. */ readonly reverses: pulumi.Output; /** * The source in which to book the IP. */ readonly sources: pulumi.Output; /** * The tags associated with the IP. */ readonly tags: pulumi.Output; /** * Date and time of IP's last update (RFC 3339 format). */ readonly updatedAt: pulumi.Output; /** * The zone of the IP. */ readonly zone: pulumi.Output; /** * Create a IpamIp 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: IpamIpArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IpamIp resources. */ export interface IpamIpState { /** * Request a specific IP in the requested source pool */ address?: pulumi.Input; /** * Date and time of IP's creation (RFC 3339 format). */ createdAt?: pulumi.Input; /** * The custom resource in which to book the IP */ customResources?: pulumi.Input[]>; /** * Defines whether to request an IPv6 address instead of IPv4. */ isIpv6?: pulumi.Input; /** * `projectId`) The ID of the Project the IP is associated with. */ projectId?: pulumi.Input; /** * `region`) The region of the IP. */ region?: pulumi.Input; /** * The IP resource. */ resources?: pulumi.Input[]>; /** * The reverse DNS for this IP. */ reverses?: pulumi.Input[]>; /** * The source in which to book the IP. */ sources?: pulumi.Input[]>; /** * The tags associated with the IP. */ tags?: pulumi.Input[]>; /** * Date and time of IP's last update (RFC 3339 format). */ updatedAt?: pulumi.Input; /** * The zone of the IP. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a IpamIp resource. */ export interface IpamIpArgs { /** * Request a specific IP in the requested source pool */ address?: pulumi.Input; /** * The custom resource in which to book the IP */ customResources?: pulumi.Input[]>; /** * Defines whether to request an IPv6 address instead of IPv4. */ isIpv6?: pulumi.Input; /** * `projectId`) The ID of the Project the IP is associated with. */ projectId?: pulumi.Input; /** * `region`) The region of the IP. */ region?: pulumi.Input; /** * The source in which to book the IP. */ sources: pulumi.Input[]>; /** * The tags associated with the IP. */ tags?: pulumi.Input[]>; }