UNPKG

@pulumiverse/fortios

Version:

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

130 lines 7.32 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.Nacpolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure NAC policy matching pattern to identify matching NAC devices. Applies to FortiOS Version `>= 6.4.0`. * * ## Import * * User NacPolicy can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:user/nacpolicy:Nacpolicy labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:user/nacpolicy:Nacpolicy labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Nacpolicy extends pulumi.CustomResource { /** * Get an existing Nacpolicy 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 Nacpolicy(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Nacpolicy. 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'] === Nacpolicy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["category"] = state ? state.category : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["emsTag"] = state ? state.emsTag : undefined; resourceInputs["family"] = state ? state.family : undefined; resourceInputs["firewallAddress"] = state ? state.firewallAddress : undefined; resourceInputs["fortivoiceTag"] = state ? state.fortivoiceTag : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["host"] = state ? state.host : undefined; resourceInputs["hwVendor"] = state ? state.hwVendor : undefined; resourceInputs["hwVersion"] = state ? state.hwVersion : undefined; resourceInputs["mac"] = state ? state.mac : undefined; resourceInputs["matchPeriod"] = state ? state.matchPeriod : undefined; resourceInputs["matchType"] = state ? state.matchType : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["os"] = state ? state.os : undefined; resourceInputs["severities"] = state ? state.severities : undefined; resourceInputs["src"] = state ? state.src : undefined; resourceInputs["ssidPolicy"] = state ? state.ssidPolicy : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["swVersion"] = state ? state.swVersion : undefined; resourceInputs["switchAutoAuth"] = state ? state.switchAutoAuth : undefined; resourceInputs["switchFortilink"] = state ? state.switchFortilink : undefined; resourceInputs["switchGroups"] = state ? state.switchGroups : undefined; resourceInputs["switchMacPolicy"] = state ? state.switchMacPolicy : undefined; resourceInputs["switchPortPolicy"] = state ? state.switchPortPolicy : undefined; resourceInputs["switchScopes"] = state ? state.switchScopes : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["user"] = state ? state.user : undefined; resourceInputs["userGroup"] = state ? state.userGroup : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["category"] = args ? args.category : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["emsTag"] = args ? args.emsTag : undefined; resourceInputs["family"] = args ? args.family : undefined; resourceInputs["firewallAddress"] = args ? args.firewallAddress : undefined; resourceInputs["fortivoiceTag"] = args ? args.fortivoiceTag : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["host"] = args ? args.host : undefined; resourceInputs["hwVendor"] = args ? args.hwVendor : undefined; resourceInputs["hwVersion"] = args ? args.hwVersion : undefined; resourceInputs["mac"] = args ? args.mac : undefined; resourceInputs["matchPeriod"] = args ? args.matchPeriod : undefined; resourceInputs["matchType"] = args ? args.matchType : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["os"] = args ? args.os : undefined; resourceInputs["severities"] = args ? args.severities : undefined; resourceInputs["src"] = args ? args.src : undefined; resourceInputs["ssidPolicy"] = args ? args.ssidPolicy : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["swVersion"] = args ? args.swVersion : undefined; resourceInputs["switchAutoAuth"] = args ? args.switchAutoAuth : undefined; resourceInputs["switchFortilink"] = args ? args.switchFortilink : undefined; resourceInputs["switchGroups"] = args ? args.switchGroups : undefined; resourceInputs["switchMacPolicy"] = args ? args.switchMacPolicy : undefined; resourceInputs["switchPortPolicy"] = args ? args.switchPortPolicy : undefined; resourceInputs["switchScopes"] = args ? args.switchScopes : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["user"] = args ? args.user : undefined; resourceInputs["userGroup"] = args ? args.userGroup : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Nacpolicy.__pulumiType, name, resourceInputs, opts); } } exports.Nacpolicy = Nacpolicy; /** @internal */ Nacpolicy.__pulumiType = 'fortios:user/nacpolicy:Nacpolicy'; //# sourceMappingURL=nacpolicy.js.map