@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
84 lines • 4.18 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.IpamIpReverseDns = 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: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
*/
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, id, state, opts) {
pulumi.log.warn("IpamIpReverseDns is deprecated: scaleway.index/ipamipreversedns.IpamIpReverseDns has been deprecated in favor of scaleway.ipam/ipreversedns.IpReverseDns");
return new IpamIpReverseDns(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* 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) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === IpamIpReverseDns.__pulumiType;
}
/** @deprecated scaleway.index/ipamipreversedns.IpamIpReverseDns has been deprecated in favor of scaleway.ipam/ipreversedns.IpReverseDns */
constructor(name, argsOrState, opts) {
pulumi.log.warn("IpamIpReverseDns is deprecated: scaleway.index/ipamipreversedns.IpamIpReverseDns has been deprecated in favor of scaleway.ipam/ipreversedns.IpReverseDns");
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);
super(IpamIpReverseDns.__pulumiType, name, resourceInputs, opts);
}
}
exports.IpamIpReverseDns = IpamIpReverseDns;
/** @internal */
IpamIpReverseDns.__pulumiType = 'scaleway:index/ipamIpReverseDns:IpamIpReverseDns';
//# sourceMappingURL=ipamIpReverseDns.js.map