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.1 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.Profilegroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure profile groups. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.firewall.Profilegroup("trname", { * profileProtocolOptions: "default", * sslSshProfile: "deep-inspection", * }); * ``` * * ## Import * * Firewall ProfileGroup can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:firewall/profilegroup:Profilegroup labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:firewall/profilegroup:Profilegroup labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Profilegroup extends pulumi.CustomResource { /** * Get an existing Profilegroup 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 Profilegroup(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Profilegroup. 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'] === Profilegroup.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["applicationList"] = state ? state.applicationList : undefined; resourceInputs["avProfile"] = state ? state.avProfile : undefined; resourceInputs["casbProfile"] = state ? state.casbProfile : undefined; resourceInputs["cifsProfile"] = state ? state.cifsProfile : undefined; resourceInputs["diameterFilterProfile"] = state ? state.diameterFilterProfile : undefined; resourceInputs["dlpProfile"] = state ? state.dlpProfile : undefined; resourceInputs["dlpSensor"] = state ? state.dlpSensor : undefined; resourceInputs["dnsfilterProfile"] = state ? state.dnsfilterProfile : undefined; resourceInputs["emailfilterProfile"] = state ? state.emailfilterProfile : undefined; resourceInputs["fileFilterProfile"] = state ? state.fileFilterProfile : undefined; resourceInputs["icapProfile"] = state ? state.icapProfile : undefined; resourceInputs["ipsSensor"] = state ? state.ipsSensor : undefined; resourceInputs["ipsVoipFilter"] = state ? state.ipsVoipFilter : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["profileProtocolOptions"] = state ? state.profileProtocolOptions : undefined; resourceInputs["sctpFilterProfile"] = state ? state.sctpFilterProfile : undefined; resourceInputs["spamfilterProfile"] = state ? state.spamfilterProfile : undefined; resourceInputs["sshFilterProfile"] = state ? state.sshFilterProfile : undefined; resourceInputs["sslSshProfile"] = state ? state.sslSshProfile : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["videofilterProfile"] = state ? state.videofilterProfile : undefined; resourceInputs["virtualPatchProfile"] = state ? state.virtualPatchProfile : undefined; resourceInputs["voipProfile"] = state ? state.voipProfile : undefined; resourceInputs["wafProfile"] = state ? state.wafProfile : undefined; resourceInputs["webfilterProfile"] = state ? state.webfilterProfile : undefined; } else { const args = argsOrState; resourceInputs["applicationList"] = args ? args.applicationList : undefined; resourceInputs["avProfile"] = args ? args.avProfile : undefined; resourceInputs["casbProfile"] = args ? args.casbProfile : undefined; resourceInputs["cifsProfile"] = args ? args.cifsProfile : undefined; resourceInputs["diameterFilterProfile"] = args ? args.diameterFilterProfile : undefined; resourceInputs["dlpProfile"] = args ? args.dlpProfile : undefined; resourceInputs["dlpSensor"] = args ? args.dlpSensor : undefined; resourceInputs["dnsfilterProfile"] = args ? args.dnsfilterProfile : undefined; resourceInputs["emailfilterProfile"] = args ? args.emailfilterProfile : undefined; resourceInputs["fileFilterProfile"] = args ? args.fileFilterProfile : undefined; resourceInputs["icapProfile"] = args ? args.icapProfile : undefined; resourceInputs["ipsSensor"] = args ? args.ipsSensor : undefined; resourceInputs["ipsVoipFilter"] = args ? args.ipsVoipFilter : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["profileProtocolOptions"] = args ? args.profileProtocolOptions : undefined; resourceInputs["sctpFilterProfile"] = args ? args.sctpFilterProfile : undefined; resourceInputs["spamfilterProfile"] = args ? args.spamfilterProfile : undefined; resourceInputs["sshFilterProfile"] = args ? args.sshFilterProfile : undefined; resourceInputs["sslSshProfile"] = args ? args.sslSshProfile : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["videofilterProfile"] = args ? args.videofilterProfile : undefined; resourceInputs["virtualPatchProfile"] = args ? args.virtualPatchProfile : undefined; resourceInputs["voipProfile"] = args ? args.voipProfile : undefined; resourceInputs["wafProfile"] = args ? args.wafProfile : undefined; resourceInputs["webfilterProfile"] = args ? args.webfilterProfile : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Profilegroup.__pulumiType, name, resourceInputs, opts); } } exports.Profilegroup = Profilegroup; /** @internal */ Profilegroup.__pulumiType = 'fortios:firewall/profilegroup:Profilegroup'; //# sourceMappingURL=profilegroup.js.map