UNPKG

@pulumi/ns1

Version:

A Pulumi package for creating and managing ns1 cloud resources.

103 lines 5.28 kB
"use strict"; // *** 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.Zone = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Import * * ```sh * $ pulumi import ns1:index/zone:Zone <name> <zone>` * ``` * * So for the example above: * * ```sh * $ pulumi import ns1:index/zone:Zone example terraform.example.io` * ``` */ class Zone extends pulumi.CustomResource { /** * Get an existing Zone 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 Zone(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Zone. 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'] === Zone.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["additionalPorts"] = state ? state.additionalPorts : undefined; resourceInputs["additionalPrimaries"] = state ? state.additionalPrimaries : undefined; resourceInputs["autogenerateNsRecord"] = state ? state.autogenerateNsRecord : undefined; resourceInputs["dnsServers"] = state ? state.dnsServers : undefined; resourceInputs["dnssec"] = state ? state.dnssec : undefined; resourceInputs["expiry"] = state ? state.expiry : undefined; resourceInputs["hostmaster"] = state ? state.hostmaster : undefined; resourceInputs["link"] = state ? state.link : undefined; resourceInputs["networks"] = state ? state.networks : undefined; resourceInputs["nxTtl"] = state ? state.nxTtl : undefined; resourceInputs["primary"] = state ? state.primary : undefined; resourceInputs["primaryNetwork"] = state ? state.primaryNetwork : undefined; resourceInputs["primaryPort"] = state ? state.primaryPort : undefined; resourceInputs["refresh"] = state ? state.refresh : undefined; resourceInputs["retry"] = state ? state.retry : undefined; resourceInputs["secondaries"] = state ? state.secondaries : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tsig"] = state ? state.tsig : undefined; resourceInputs["ttl"] = state ? state.ttl : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { const args = argsOrState; if ((!args || args.zone === undefined) && !opts.urn) { throw new Error("Missing required property 'zone'"); } resourceInputs["additionalPorts"] = args ? args.additionalPorts : undefined; resourceInputs["additionalPrimaries"] = args ? args.additionalPrimaries : undefined; resourceInputs["autogenerateNsRecord"] = args ? args.autogenerateNsRecord : undefined; resourceInputs["dnssec"] = args ? args.dnssec : undefined; resourceInputs["expiry"] = args ? args.expiry : undefined; resourceInputs["hostmaster"] = args ? args.hostmaster : undefined; resourceInputs["link"] = args ? args.link : undefined; resourceInputs["networks"] = args ? args.networks : undefined; resourceInputs["nxTtl"] = args ? args.nxTtl : undefined; resourceInputs["primary"] = args ? args.primary : undefined; resourceInputs["primaryNetwork"] = args ? args.primaryNetwork : undefined; resourceInputs["primaryPort"] = args ? args.primaryPort : undefined; resourceInputs["refresh"] = args ? args.refresh : undefined; resourceInputs["retry"] = args ? args.retry : undefined; resourceInputs["secondaries"] = args ? args.secondaries : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["tsig"] = args ? args.tsig : undefined; resourceInputs["ttl"] = args ? args.ttl : undefined; resourceInputs["zone"] = args ? args.zone : undefined; resourceInputs["dnsServers"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Zone.__pulumiType, name, resourceInputs, opts); } } exports.Zone = Zone; /** @internal */ Zone.__pulumiType = 'ns1:index/zone:Zone'; //# sourceMappingURL=zone.js.map