@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
104 lines • 5.36 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.Vdomdns = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure DNS servers for a non-management VDOM.
*
* ## Import
*
* System VdomDns can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/vdomdns:Vdomdns labelname SystemVdomDns
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/vdomdns:Vdomdns labelname SystemVdomDns
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Vdomdns extends pulumi.CustomResource {
/**
* Get an existing Vdomdns 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 Vdomdns(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Vdomdns. 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'] === Vdomdns.__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["dnsOverTls"] = state ? state.dnsOverTls : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : 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["primary"] = state ? state.primary : undefined;
resourceInputs["protocol"] = state ? state.protocol : 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["vdomDns"] = state ? state.vdomDns : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["altPrimary"] = args ? args.altPrimary : undefined;
resourceInputs["altSecondary"] = args ? args.altSecondary : undefined;
resourceInputs["dnsOverTls"] = args ? args.dnsOverTls : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : 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["primary"] = args ? args.primary : undefined;
resourceInputs["protocol"] = args ? args.protocol : 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["vdomDns"] = args ? args.vdomDns : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Vdomdns.__pulumiType, name, resourceInputs, opts);
}
}
exports.Vdomdns = Vdomdns;
/** @internal */
Vdomdns.__pulumiType = 'fortios:system/vdomdns:Vdomdns';
//# sourceMappingURL=vdomdns.js.map
;