UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

145 lines 7.38 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.Dns = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure DNS. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.system.Dns("trname", { * cacheNotfoundResponses: "disable", * dnsCacheLimit: 5000, * dnsCacheTtl: 1800, * ip6Primary: "::", * ip6Secondary: "::", * primary: "208.91.112.53", * retry: 2, * secondary: "208.91.112.51", * sourceIp: "0.0.0.0", * timeout: 5, * }); * ``` * * ## Import * * System Dns can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:system/dns:Dns labelname SystemDns * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:system/dns:Dns labelname SystemDns * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Dns extends pulumi.CustomResource { /** * Get an existing Dns 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 Dns(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Dns. 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'] === Dns.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["altPrimary"] = state ? state.altPrimary : undefined; resourceInputs["altSecondary"] = state ? state.altSecondary : undefined; resourceInputs["cacheNotfoundResponses"] = state ? state.cacheNotfoundResponses : undefined; resourceInputs["dnsCacheLimit"] = state ? state.dnsCacheLimit : undefined; resourceInputs["dnsCacheTtl"] = state ? state.dnsCacheTtl : undefined; resourceInputs["dnsOverTls"] = state ? state.dnsOverTls : undefined; resourceInputs["domains"] = state ? state.domains : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["fqdnCacheTtl"] = state ? state.fqdnCacheTtl : undefined; resourceInputs["fqdnMaxRefresh"] = state ? state.fqdnMaxRefresh : undefined; resourceInputs["fqdnMinRefresh"] = state ? state.fqdnMinRefresh : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["interface"] = state ? state.interface : undefined; resourceInputs["interfaceSelectMethod"] = state ? state.interfaceSelectMethod : undefined; resourceInputs["ip6Primary"] = state ? state.ip6Primary : undefined; resourceInputs["ip6Secondary"] = state ? state.ip6Secondary : undefined; resourceInputs["log"] = state ? state.log : undefined; resourceInputs["primary"] = state ? state.primary : undefined; resourceInputs["protocol"] = state ? state.protocol : undefined; resourceInputs["retry"] = state ? state.retry : undefined; resourceInputs["secondary"] = state ? state.secondary : undefined; resourceInputs["serverHostnames"] = state ? state.serverHostnames : undefined; resourceInputs["serverSelectMethod"] = state ? state.serverSelectMethod : undefined; resourceInputs["sourceIp"] = state ? state.sourceIp : undefined; resourceInputs["sslCertificate"] = state ? state.sslCertificate : undefined; resourceInputs["timeout"] = state ? state.timeout : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; if ((!args || args.primary === undefined) && !opts.urn) { throw new Error("Missing required property 'primary'"); } resourceInputs["altPrimary"] = args ? args.altPrimary : undefined; resourceInputs["altSecondary"] = args ? args.altSecondary : undefined; resourceInputs["cacheNotfoundResponses"] = args ? args.cacheNotfoundResponses : undefined; resourceInputs["dnsCacheLimit"] = args ? args.dnsCacheLimit : undefined; resourceInputs["dnsCacheTtl"] = args ? args.dnsCacheTtl : undefined; resourceInputs["dnsOverTls"] = args ? args.dnsOverTls : undefined; resourceInputs["domains"] = args ? args.domains : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["fqdnCacheTtl"] = args ? args.fqdnCacheTtl : undefined; resourceInputs["fqdnMaxRefresh"] = args ? args.fqdnMaxRefresh : undefined; resourceInputs["fqdnMinRefresh"] = args ? args.fqdnMinRefresh : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["interface"] = args ? args.interface : undefined; resourceInputs["interfaceSelectMethod"] = args ? args.interfaceSelectMethod : undefined; resourceInputs["ip6Primary"] = args ? args.ip6Primary : undefined; resourceInputs["ip6Secondary"] = args ? args.ip6Secondary : undefined; resourceInputs["log"] = args ? args.log : undefined; resourceInputs["primary"] = args ? args.primary : undefined; resourceInputs["protocol"] = args ? args.protocol : undefined; resourceInputs["retry"] = args ? args.retry : undefined; resourceInputs["secondary"] = args ? args.secondary : undefined; resourceInputs["serverHostnames"] = args ? args.serverHostnames : undefined; resourceInputs["serverSelectMethod"] = args ? args.serverSelectMethod : undefined; resourceInputs["sourceIp"] = args ? args.sourceIp : undefined; resourceInputs["sslCertificate"] = args ? args.sslCertificate : undefined; resourceInputs["timeout"] = args ? args.timeout : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Dns.__pulumiType, name, resourceInputs, opts); } } exports.Dns = Dns; /** @internal */ Dns.__pulumiType = 'fortios:system/dns:Dns'; //# sourceMappingURL=dns.js.map