@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
126 lines • 7.09 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.Settings = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure endpoint control settings. Applies to FortiOS Version `6.2.0,6.2.4,6.2.6,7.4.0,7.4.1,7.4.2,7.4.3,7.4.4`.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.endpointcontrol.Settings("trname", {
* downloadLocation: "fortiguard",
* forticlientAvdbUpdateInterval: 8,
* forticlientDeregUnsupportedClient: "enable",
* forticlientEmsRestApiCallTimeout: 5000,
* forticlientKeepaliveInterval: 60,
* forticlientOfflineGrace: "disable",
* forticlientOfflineGraceInterval: 120,
* forticlientRegKeyEnforce: "disable",
* forticlientRegTimeout: 7,
* forticlientSysUpdateInterval: 720,
* forticlientUserAvatar: "enable",
* forticlientWarningInterval: 1,
* });
* ```
*
* ## Import
*
* EndpointControl Settings can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:endpointcontrol/settings:Settings labelname EndpointControlSettings
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:endpointcontrol/settings:Settings labelname EndpointControlSettings
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Settings extends pulumi.CustomResource {
/**
* Get an existing Settings 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 Settings(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Settings. 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'] === Settings.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["downloadCustomLink"] = state ? state.downloadCustomLink : undefined;
resourceInputs["downloadLocation"] = state ? state.downloadLocation : undefined;
resourceInputs["forticlientAvdbUpdateInterval"] = state ? state.forticlientAvdbUpdateInterval : undefined;
resourceInputs["forticlientDeregUnsupportedClient"] = state ? state.forticlientDeregUnsupportedClient : undefined;
resourceInputs["forticlientDisconnectUnsupportedClient"] = state ? state.forticlientDisconnectUnsupportedClient : undefined;
resourceInputs["forticlientEmsRestApiCallTimeout"] = state ? state.forticlientEmsRestApiCallTimeout : undefined;
resourceInputs["forticlientKeepaliveInterval"] = state ? state.forticlientKeepaliveInterval : undefined;
resourceInputs["forticlientOfflineGrace"] = state ? state.forticlientOfflineGrace : undefined;
resourceInputs["forticlientOfflineGraceInterval"] = state ? state.forticlientOfflineGraceInterval : undefined;
resourceInputs["forticlientRegKey"] = state ? state.forticlientRegKey : undefined;
resourceInputs["forticlientRegKeyEnforce"] = state ? state.forticlientRegKeyEnforce : undefined;
resourceInputs["forticlientRegTimeout"] = state ? state.forticlientRegTimeout : undefined;
resourceInputs["forticlientSysUpdateInterval"] = state ? state.forticlientSysUpdateInterval : undefined;
resourceInputs["forticlientUserAvatar"] = state ? state.forticlientUserAvatar : undefined;
resourceInputs["forticlientWarningInterval"] = state ? state.forticlientWarningInterval : undefined;
resourceInputs["override"] = state ? state.override : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["downloadCustomLink"] = args ? args.downloadCustomLink : undefined;
resourceInputs["downloadLocation"] = args ? args.downloadLocation : undefined;
resourceInputs["forticlientAvdbUpdateInterval"] = args ? args.forticlientAvdbUpdateInterval : undefined;
resourceInputs["forticlientDeregUnsupportedClient"] = args ? args.forticlientDeregUnsupportedClient : undefined;
resourceInputs["forticlientDisconnectUnsupportedClient"] = args ? args.forticlientDisconnectUnsupportedClient : undefined;
resourceInputs["forticlientEmsRestApiCallTimeout"] = args ? args.forticlientEmsRestApiCallTimeout : undefined;
resourceInputs["forticlientKeepaliveInterval"] = args ? args.forticlientKeepaliveInterval : undefined;
resourceInputs["forticlientOfflineGrace"] = args ? args.forticlientOfflineGrace : undefined;
resourceInputs["forticlientOfflineGraceInterval"] = args ? args.forticlientOfflineGraceInterval : undefined;
resourceInputs["forticlientRegKey"] = (args === null || args === void 0 ? void 0 : args.forticlientRegKey) ? pulumi.secret(args.forticlientRegKey) : undefined;
resourceInputs["forticlientRegKeyEnforce"] = args ? args.forticlientRegKeyEnforce : undefined;
resourceInputs["forticlientRegTimeout"] = args ? args.forticlientRegTimeout : undefined;
resourceInputs["forticlientSysUpdateInterval"] = args ? args.forticlientSysUpdateInterval : undefined;
resourceInputs["forticlientUserAvatar"] = args ? args.forticlientUserAvatar : undefined;
resourceInputs["forticlientWarningInterval"] = args ? args.forticlientWarningInterval : undefined;
resourceInputs["override"] = args ? args.override : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["forticlientRegKey"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Settings.__pulumiType, name, resourceInputs, opts);
}
}
exports.Settings = Settings;
/** @internal */
Settings.__pulumiType = 'fortios:endpointcontrol/settings:Settings';
//# sourceMappingURL=settings.js.map
;