UNPKG

@pulumiverse/fortios

Version:

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

123 lines 5.25 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.Override = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../../utilities"); /** * Configure FortiGuard Web Filter administrative overrides. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.filter.web.Override("trname", { * expires: "2021/03/16 19:18:25", * fosid: 1, * ip: "69.101.119.0", * ip6: "4565:7700::", * newProfile: "monitor-all", * oldProfile: "default", * scope: "user", * status: "disable", * user: "Eew", * }); * ``` * * ## Import * * Webfilter Override can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:filter/web/override:Override labelname {{fosid}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:filter/web/override:Override labelname {{fosid}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Override extends pulumi.CustomResource { /** * Get an existing Override 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 Override(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Override. 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'] === Override.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["expires"] = state ? state.expires : undefined; resourceInputs["fosid"] = state ? state.fosid : undefined; resourceInputs["initiator"] = state ? state.initiator : undefined; resourceInputs["ip"] = state ? state.ip : undefined; resourceInputs["ip6"] = state ? state.ip6 : undefined; resourceInputs["newProfile"] = state ? state.newProfile : undefined; resourceInputs["oldProfile"] = state ? state.oldProfile : undefined; resourceInputs["scope"] = state ? state.scope : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["user"] = state ? state.user : undefined; resourceInputs["userGroup"] = state ? state.userGroup : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; if ((!args || args.expires === undefined) && !opts.urn) { throw new Error("Missing required property 'expires'"); } if ((!args || args.newProfile === undefined) && !opts.urn) { throw new Error("Missing required property 'newProfile'"); } if ((!args || args.oldProfile === undefined) && !opts.urn) { throw new Error("Missing required property 'oldProfile'"); } if ((!args || args.user === undefined) && !opts.urn) { throw new Error("Missing required property 'user'"); } resourceInputs["expires"] = args ? args.expires : undefined; resourceInputs["fosid"] = args ? args.fosid : undefined; resourceInputs["initiator"] = args ? args.initiator : undefined; resourceInputs["ip"] = args ? args.ip : undefined; resourceInputs["ip6"] = args ? args.ip6 : undefined; resourceInputs["newProfile"] = args ? args.newProfile : undefined; resourceInputs["oldProfile"] = args ? args.oldProfile : undefined; resourceInputs["scope"] = args ? args.scope : undefined; resourceInputs["status"] = args ? args.status : 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(Override.__pulumiType, name, resourceInputs, opts); } } exports.Override = Override; /** @internal */ Override.__pulumiType = 'fortios:filter/web/override:Override'; //# sourceMappingURL=override.js.map