@lubyou/pulumi-fortios
Version:
A Pulumi package for creating and managing fortios cloud resources.
81 lines • 4.73 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.UserExchange = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class UserExchange extends pulumi.CustomResource {
/**
* Get an existing UserExchange 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 UserExchange(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of UserExchange. 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'] === UserExchange.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["authLevel"] = state ? state.authLevel : undefined;
resourceInputs["authType"] = state ? state.authType : undefined;
resourceInputs["autoDiscoverKdc"] = state ? state.autoDiscoverKdc : undefined;
resourceInputs["connectProtocol"] = state ? state.connectProtocol : undefined;
resourceInputs["domainName"] = state ? state.domainName : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["httpAuthType"] = state ? state.httpAuthType : undefined;
resourceInputs["ip"] = state ? state.ip : undefined;
resourceInputs["kdcIps"] = state ? state.kdcIps : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["password"] = state ? state.password : undefined;
resourceInputs["serverName"] = state ? state.serverName : undefined;
resourceInputs["sslMinProtoVersion"] = state ? state.sslMinProtoVersion : undefined;
resourceInputs["username"] = state ? state.username : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["authLevel"] = args ? args.authLevel : undefined;
resourceInputs["authType"] = args ? args.authType : undefined;
resourceInputs["autoDiscoverKdc"] = args ? args.autoDiscoverKdc : undefined;
resourceInputs["connectProtocol"] = args ? args.connectProtocol : undefined;
resourceInputs["domainName"] = args ? args.domainName : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["httpAuthType"] = args ? args.httpAuthType : undefined;
resourceInputs["ip"] = args ? args.ip : undefined;
resourceInputs["kdcIps"] = args ? args.kdcIps : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
resourceInputs["serverName"] = args ? args.serverName : undefined;
resourceInputs["sslMinProtoVersion"] = args ? args.sslMinProtoVersion : undefined;
resourceInputs["username"] = args ? args.username : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["password"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(UserExchange.__pulumiType, name, resourceInputs, opts);
}
}
exports.UserExchange = UserExchange;
/** @internal */
UserExchange.__pulumiType = 'fortios:index/userExchange:UserExchange';
//# sourceMappingURL=userExchange.js.map