UNPKG

@lubyou/pulumi-fortios

Version:

A Pulumi package for creating and managing fortios cloud resources.

107 lines 6.77 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.UserDomainController = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class UserDomainController extends pulumi.CustomResource { /** * Get an existing UserDomainController 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 UserDomainController(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of UserDomainController. 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'] === UserDomainController.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["adMode"] = state ? state.adMode : undefined; resourceInputs["adldsDn"] = state ? state.adldsDn : undefined; resourceInputs["adldsIp6"] = state ? state.adldsIp6 : undefined; resourceInputs["adldsIpAddress"] = state ? state.adldsIpAddress : undefined; resourceInputs["adldsPort"] = state ? state.adldsPort : undefined; resourceInputs["changeDetection"] = state ? state.changeDetection : undefined; resourceInputs["changeDetectionPeriod"] = state ? state.changeDetectionPeriod : undefined; resourceInputs["dnsSrvLookup"] = state ? state.dnsSrvLookup : undefined; resourceInputs["domainName"] = state ? state.domainName : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["extraServers"] = state ? state.extraServers : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["hostname"] = state ? state.hostname : undefined; resourceInputs["interface"] = state ? state.interface : undefined; resourceInputs["interfaceSelectMethod"] = state ? state.interfaceSelectMethod : undefined; resourceInputs["ip6"] = state ? state.ip6 : undefined; resourceInputs["ipAddress"] = state ? state.ipAddress : undefined; resourceInputs["ldapServer"] = state ? state.ldapServer : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["port"] = state ? state.port : undefined; resourceInputs["replicationPort"] = state ? state.replicationPort : undefined; resourceInputs["sourceIp6"] = state ? state.sourceIp6 : undefined; resourceInputs["sourceIpAddress"] = state ? state.sourceIpAddress : undefined; resourceInputs["sourcePort"] = state ? state.sourcePort : undefined; resourceInputs["username"] = state ? state.username : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; if ((!args || args.ipAddress === undefined) && !opts.urn) { throw new Error("Missing required property 'ipAddress'"); } if ((!args || args.ldapServer === undefined) && !opts.urn) { throw new Error("Missing required property 'ldapServer'"); } resourceInputs["adMode"] = args ? args.adMode : undefined; resourceInputs["adldsDn"] = args ? args.adldsDn : undefined; resourceInputs["adldsIp6"] = args ? args.adldsIp6 : undefined; resourceInputs["adldsIpAddress"] = args ? args.adldsIpAddress : undefined; resourceInputs["adldsPort"] = args ? args.adldsPort : undefined; resourceInputs["changeDetection"] = args ? args.changeDetection : undefined; resourceInputs["changeDetectionPeriod"] = args ? args.changeDetectionPeriod : undefined; resourceInputs["dnsSrvLookup"] = args ? args.dnsSrvLookup : undefined; resourceInputs["domainName"] = args ? args.domainName : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["extraServers"] = args ? args.extraServers : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["hostname"] = args ? args.hostname : undefined; resourceInputs["interface"] = args ? args.interface : undefined; resourceInputs["interfaceSelectMethod"] = args ? args.interfaceSelectMethod : undefined; resourceInputs["ip6"] = args ? args.ip6 : undefined; resourceInputs["ipAddress"] = args ? args.ipAddress : undefined; resourceInputs["ldapServer"] = args ? args.ldapServer : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["password"] = args ? args.password : undefined; resourceInputs["port"] = args ? args.port : undefined; resourceInputs["replicationPort"] = args ? args.replicationPort : undefined; resourceInputs["sourceIp6"] = args ? args.sourceIp6 : undefined; resourceInputs["sourceIpAddress"] = args ? args.sourceIpAddress : undefined; resourceInputs["sourcePort"] = args ? args.sourcePort : undefined; resourceInputs["username"] = args ? args.username : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(UserDomainController.__pulumiType, name, resourceInputs, opts); } } exports.UserDomainController = UserDomainController; /** @internal */ UserDomainController.__pulumiType = 'fortios:index/userDomainController:UserDomainController'; //# sourceMappingURL=userDomainController.js.map