UNPKG

@pulumiverse/fortios

Version:

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

102 lines 5.17 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.Exchange = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure MS Exchange server entries. Applies to FortiOS Version `>= 6.2.4`. * * ## Import * * User Exchange can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:user/exchange:Exchange labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:user/exchange:Exchange labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Exchange extends pulumi.CustomResource { /** * Get an existing Exchange 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 Exchange(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Exchange. 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'] === Exchange.__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(Exchange.__pulumiType, name, resourceInputs, opts); } } exports.Exchange = Exchange; /** @internal */ Exchange.__pulumiType = 'fortios:user/exchange:Exchange'; //# sourceMappingURL=exchange.js.map