UNPKG

@pulumiverse/fortios

Version:

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

155 lines 7.08 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.Profile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure FortiClient endpoint control profiles. Applies to FortiOS Version `<= 6.2.0`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.endpointcontrol.Profile("trname", { * deviceGroups: [{ * name: "Mobile Devices", * }], * forticlientAndroidSettings: { * disableWfWhenProtected: "enable", * forticlientAdvancedVpn: "disable", * forticlientVpnProvisioning: "disable", * forticlientWf: "disable", * }, * forticlientIosSettings: { * clientVpnProvisioning: "disable", * disableWfWhenProtected: "enable", * distributeConfigurationProfile: "disable", * forticlientWf: "disable", * }, * forticlientWinmacSettings: { * avRealtimeProtection: "disable", * avSignatureUpToDate: "disable", * forticlientApplicationFirewall: "disable", * forticlientAv: "disable", * forticlientEmsCompliance: "disable", * forticlientEmsComplianceAction: "warning", * forticlientLinuxVer: "5.4.1", * forticlientLogUpload: "enable", * forticlientLogUploadLevel: "traffic vulnerability event", * forticlientMacVer: "5.4.1", * forticlientMinimumSoftwareVersion: "disable", * forticlientRegistrationComplianceAction: "warning", * forticlientSecurityPosture: "disable", * forticlientSecurityPostureComplianceAction: "warning", * forticlientSystemCompliance: "enable", * forticlientSystemComplianceAction: "warning", * forticlientVulnScan: "enable", * forticlientVulnScanComplianceAction: "warning", * forticlientVulnScanEnforce: "high", * forticlientVulnScanEnforceGrace: 1, * forticlientVulnScanExempt: "disable", * forticlientWf: "disable", * forticlientWinVer: "5.4.1", * osAvSoftwareInstalled: "disable", * sandboxAnalysis: "disable", * }, * onNetAddrs: [{ * name: "all", * }], * profileName: "1", * users: [{ * name: "guest", * }], * }); * ``` * * ## Import * * EndpointControl Profile can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:endpointcontrol/profile:Profile labelname {{profile_name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:endpointcontrol/profile:Profile labelname {{profile_name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Profile extends pulumi.CustomResource { /** * Get an existing Profile 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 Profile(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Profile. 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'] === Profile.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["deviceGroups"] = state ? state.deviceGroups : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["forticlientAndroidSettings"] = state ? state.forticlientAndroidSettings : undefined; resourceInputs["forticlientIosSettings"] = state ? state.forticlientIosSettings : undefined; resourceInputs["forticlientWinmacSettings"] = state ? state.forticlientWinmacSettings : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["onNetAddrs"] = state ? state.onNetAddrs : undefined; resourceInputs["profileName"] = state ? state.profileName : undefined; resourceInputs["replacemsgOverrideGroup"] = state ? state.replacemsgOverrideGroup : undefined; resourceInputs["srcAddrs"] = state ? state.srcAddrs : undefined; resourceInputs["userGroups"] = state ? state.userGroups : undefined; resourceInputs["users"] = state ? state.users : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["deviceGroups"] = args ? args.deviceGroups : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["forticlientAndroidSettings"] = args ? args.forticlientAndroidSettings : undefined; resourceInputs["forticlientIosSettings"] = args ? args.forticlientIosSettings : undefined; resourceInputs["forticlientWinmacSettings"] = args ? args.forticlientWinmacSettings : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["onNetAddrs"] = args ? args.onNetAddrs : undefined; resourceInputs["profileName"] = args ? args.profileName : undefined; resourceInputs["replacemsgOverrideGroup"] = args ? args.replacemsgOverrideGroup : undefined; resourceInputs["srcAddrs"] = args ? args.srcAddrs : undefined; resourceInputs["userGroups"] = args ? args.userGroups : undefined; resourceInputs["users"] = args ? args.users : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Profile.__pulumiType, name, resourceInputs, opts); } } exports.Profile = Profile; /** @internal */ Profile.__pulumiType = 'fortios:endpointcontrol/profile:Profile'; //# sourceMappingURL=profile.js.map