@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
81 lines • 3.63 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.IpReverseDns = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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).
*
* ## Import
*
* IPAM IP reverse DNS can be imported using `{region}/{id}`, e.g.
*
* bash
*
* ```sh
* $ pulumi import scaleway:ipam/ipReverseDns:IpReverseDns main fr-par/11111111-1111-1111-1111-111111111111
* ```
*/
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, id, state, opts) {
return new IpReverseDns(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* 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) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === IpReverseDns.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["address"] = state ? state.address : undefined;
resourceInputs["hostname"] = state ? state.hostname : undefined;
resourceInputs["ipamIpId"] = state ? state.ipamIpId : undefined;
resourceInputs["region"] = state ? state.region : undefined;
}
else {
const args = argsOrState;
if ((!args || args.address === undefined) && !opts.urn) {
throw new Error("Missing required property 'address'");
}
if ((!args || args.hostname === undefined) && !opts.urn) {
throw new Error("Missing required property 'hostname'");
}
if ((!args || args.ipamIpId === undefined) && !opts.urn) {
throw new Error("Missing required property 'ipamIpId'");
}
resourceInputs["address"] = args ? args.address : undefined;
resourceInputs["hostname"] = args ? args.hostname : undefined;
resourceInputs["ipamIpId"] = args ? args.ipamIpId : undefined;
resourceInputs["region"] = args ? args.region : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const aliasOpts = { aliases: [{ type: "scaleway:index/ipamIpReverseDns:IpamIpReverseDns" }] };
opts = pulumi.mergeOptions(opts, aliasOpts);
super(IpReverseDns.__pulumiType, name, resourceInputs, opts);
}
}
exports.IpReverseDns = IpReverseDns;
/** @internal */
IpReverseDns.__pulumiType = 'scaleway:ipam/ipReverseDns:IpReverseDns';
//# sourceMappingURL=ipReverseDns.js.map