UNPKG

@pulumiverse/fortios

Version:

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

101 lines 5.01 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.Forticlientems = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure FortiClient Enterprise Management Server (EMS) entries. Applies to FortiOS Version `<= 6.2.0`. * * ## Import * * EndpointControl ForticlientEms can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:endpointcontrol/forticlientems:Forticlientems labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:endpointcontrol/forticlientems:Forticlientems labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Forticlientems extends pulumi.CustomResource { /** * Get an existing Forticlientems 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 Forticlientems(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Forticlientems. 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'] === Forticlientems.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["address"] = state ? state.address : undefined; resourceInputs["adminPassword"] = state ? state.adminPassword : undefined; resourceInputs["adminType"] = state ? state.adminType : undefined; resourceInputs["adminUsername"] = state ? state.adminUsername : undefined; resourceInputs["httpsPort"] = state ? state.httpsPort : undefined; resourceInputs["listenPort"] = state ? state.listenPort : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["restApiAuth"] = state ? state.restApiAuth : undefined; resourceInputs["serialNumber"] = state ? state.serialNumber : undefined; resourceInputs["uploadPort"] = state ? state.uploadPort : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; if ((!args || args.address === undefined) && !opts.urn) { throw new Error("Missing required property 'address'"); } if ((!args || args.adminUsername === undefined) && !opts.urn) { throw new Error("Missing required property 'adminUsername'"); } if ((!args || args.serialNumber === undefined) && !opts.urn) { throw new Error("Missing required property 'serialNumber'"); } resourceInputs["address"] = args ? args.address : undefined; resourceInputs["adminPassword"] = (args === null || args === void 0 ? void 0 : args.adminPassword) ? pulumi.secret(args.adminPassword) : undefined; resourceInputs["adminType"] = args ? args.adminType : undefined; resourceInputs["adminUsername"] = args ? args.adminUsername : undefined; resourceInputs["httpsPort"] = args ? args.httpsPort : undefined; resourceInputs["listenPort"] = args ? args.listenPort : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["restApiAuth"] = args ? args.restApiAuth : undefined; resourceInputs["serialNumber"] = args ? args.serialNumber : undefined; resourceInputs["uploadPort"] = args ? args.uploadPort : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["adminPassword"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Forticlientems.__pulumiType, name, resourceInputs, opts); } } exports.Forticlientems = Forticlientems; /** @internal */ Forticlientems.__pulumiType = 'fortios:endpointcontrol/forticlientems:Forticlientems'; //# sourceMappingURL=forticlientems.js.map