UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

141 lines 4.5 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manage the reverse DNS of IP addresses managed by Scaleway's IP Address Management (IPAM) service. * * For more information about IPAM, see the main [documentation](https://www.scaleway.com/en/docs/vpc/concepts/#ipam). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * import * as std from "@pulumi/std"; * * const ip01 = new scaleway.instance.Ip("ip01", {type: "routed_ipv6"}); * const srv01 = new scaleway.instance.Server("srv01", { * name: "tf-tests-instance-server-ips", * ipIds: [ip01.id], * image: "ubuntu_jammy", * type: "PRO2-XXS", * state: "stopped", * }); * const ipam01 = scaleway.ipam.getIpOutput({ * resource: { * id: srv01.id, * type: "instance_server", * }, * type: "ipv6", * }); * const tfAAAA = new scaleway.domain.Record("tf_AAAA", { * dnsZone: "example.com", * name: "", * type: "AAAA", * data: std.cidrhost({ * input: ipam01.apply(ipam01 => ipam01.addressCidr), * host: 42, * }).result, * ttl: 3600, * priority: 1, * }); * const base = new scaleway.ipam.IpReverseDns("base", { * ipamIpId: ipam01.apply(ipam01 => ipam01.id), * hostname: "example.com", * address: std.cidrhost({ * input: ipam01.apply(ipam01 => ipam01.addressCidr), * host: 42, * }).result, * }); * ``` * * ## Import * * IPAM IP reverse DNS can be imported using `{region}/{id}`, e.g. * * ```sh * $ pulumi import scaleway:ipam/ipReverseDns:IpReverseDns main fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class IpReverseDns extends pulumi.CustomResource { /** * Get an existing IpReverseDns 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?: IpReverseDnsState, opts?: pulumi.CustomResourceOptions): IpReverseDns; /** * Returns true if the given object is an instance of IpReverseDns. 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 IpReverseDns; /** * The IP corresponding to the hostname. */ readonly address: pulumi.Output<string>; /** * The reverse domain name. */ readonly hostname: pulumi.Output<string>; /** * The IPAM IP ID. */ readonly ipamIpId: pulumi.Output<string>; /** * `region`) The region of the IP reverse DNS. */ readonly region: pulumi.Output<string | undefined>; /** * Create a IpReverseDns 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: IpReverseDnsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IpReverseDns resources. */ export interface IpReverseDnsState { /** * The IP corresponding to the hostname. */ address?: pulumi.Input<string | undefined>; /** * The reverse domain name. */ hostname?: pulumi.Input<string | undefined>; /** * The IPAM IP ID. */ ipamIpId?: pulumi.Input<string | undefined>; /** * `region`) The region of the IP reverse DNS. */ region?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a IpReverseDns resource. */ export interface IpReverseDnsArgs { /** * The IP corresponding to the hostname. */ address: pulumi.Input<string>; /** * The reverse domain name. */ hostname: pulumi.Input<string>; /** * The IPAM IP ID. */ ipamIpId: pulumi.Input<string>; /** * `region`) The region of the IP reverse DNS. */ region?: pulumi.Input<string | undefined>; } //# sourceMappingURL=ipReverseDns.d.ts.map