@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
144 lines • 4.84 kB
TypeScript
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:index/ipamIpReverseDns:IpamIpReverseDns main fr-par/11111111-1111-1111-1111-111111111111
* ```
*
* @deprecated scaleway.index/ipamipreversedns.IpamIpReverseDns has been deprecated in favor of scaleway.ipam/ipreversedns.IpReverseDns
*/
export declare class IpamIpReverseDns extends pulumi.CustomResource {
/**
* Get an existing IpamIpReverseDns 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?: IpamIpReverseDnsState, opts?: pulumi.CustomResourceOptions): IpamIpReverseDns;
/**
* Returns true if the given object is an instance of IpamIpReverseDns. 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 IpamIpReverseDns;
/**
* 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 IpamIpReverseDns 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.
*/
/** @deprecated scaleway.index/ipamipreversedns.IpamIpReverseDns has been deprecated in favor of scaleway.ipam/ipreversedns.IpReverseDns */
constructor(name: string, args: IpamIpReverseDnsArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering IpamIpReverseDns resources.
*/
export interface IpamIpReverseDnsState {
/**
* 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 IpamIpReverseDns resource.
*/
export interface IpamIpReverseDnsArgs {
/**
* 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=ipamIpReverseDns.d.ts.map