UNPKG

@pulumiverse/fortios

Version:

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

210 lines 8.5 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.Profileprotocoloptions = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure protocol options. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.firewall.Profileprotocoloptions("trname", { * dns: { * ports: 53, * status: "enable", * }, * ftp: { * comfortAmount: 1, * comfortInterval: 10, * inspectAll: "disable", * options: "splice", * oversizeLimit: 10, * ports: 21, * scanBzip2: "enable", * status: "enable", * uncompressedNestLimit: 12, * uncompressedOversizeLimit: 10, * }, * http: { * blockPageStatusCode: 403, * comfortAmount: 1, * comfortInterval: 10, * fortinetBar: "disable", * fortinetBarPort: 8011, * httpPolicy: "disable", * inspectAll: "disable", * oversizeLimit: 10, * ports: 80, * rangeBlock: "disable", * retryCount: 0, * scanBzip2: "enable", * status: "enable", * streamingContentBypass: "enable", * stripXForwardedFor: "disable", * switchingProtocols: "bypass", * uncompressedNestLimit: 12, * uncompressedOversizeLimit: 10, * }, * imap: { * inspectAll: "disable", * options: "fragmail", * oversizeLimit: 10, * ports: 143, * scanBzip2: "enable", * status: "enable", * uncompressedNestLimit: 12, * uncompressedOversizeLimit: 10, * }, * mailSignature: { * status: "disable", * }, * mapi: { * options: "fragmail", * oversizeLimit: 10, * ports: 135, * scanBzip2: "enable", * status: "enable", * uncompressedNestLimit: 12, * uncompressedOversizeLimit: 10, * }, * nntp: { * inspectAll: "disable", * options: "splice", * oversizeLimit: 10, * ports: 119, * scanBzip2: "enable", * status: "enable", * uncompressedNestLimit: 12, * uncompressedOversizeLimit: 10, * }, * oversizeLog: "disable", * pop3: { * inspectAll: "disable", * options: "fragmail", * oversizeLimit: 10, * ports: 110, * scanBzip2: "enable", * status: "enable", * uncompressedNestLimit: 12, * uncompressedOversizeLimit: 10, * }, * rpcOverHttp: "disable", * smtp: { * inspectAll: "disable", * options: "fragmail splice", * oversizeLimit: 10, * ports: 25, * scanBzip2: "enable", * serverBusy: "disable", * status: "enable", * uncompressedNestLimit: 12, * uncompressedOversizeLimit: 10, * }, * switchingProtocolsLog: "disable", * }); * ``` * * ## Import * * Firewall ProfileProtocolOptions can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:firewall/profileprotocoloptions:Profileprotocoloptions labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:firewall/profileprotocoloptions:Profileprotocoloptions labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Profileprotocoloptions extends pulumi.CustomResource { /** * Get an existing Profileprotocoloptions 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 Profileprotocoloptions(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Profileprotocoloptions. 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'] === Profileprotocoloptions.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["cifs"] = state ? state.cifs : undefined; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["dns"] = state ? state.dns : undefined; resourceInputs["featureSet"] = state ? state.featureSet : undefined; resourceInputs["ftp"] = state ? state.ftp : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["http"] = state ? state.http : undefined; resourceInputs["imap"] = state ? state.imap : undefined; resourceInputs["mailSignature"] = state ? state.mailSignature : undefined; resourceInputs["mapi"] = state ? state.mapi : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nntp"] = state ? state.nntp : undefined; resourceInputs["oversizeLog"] = state ? state.oversizeLog : undefined; resourceInputs["pop3"] = state ? state.pop3 : undefined; resourceInputs["replacemsgGroup"] = state ? state.replacemsgGroup : undefined; resourceInputs["rpcOverHttp"] = state ? state.rpcOverHttp : undefined; resourceInputs["smtp"] = state ? state.smtp : undefined; resourceInputs["ssh"] = state ? state.ssh : undefined; resourceInputs["switchingProtocolsLog"] = state ? state.switchingProtocolsLog : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["cifs"] = args ? args.cifs : undefined; resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["dns"] = args ? args.dns : undefined; resourceInputs["featureSet"] = args ? args.featureSet : undefined; resourceInputs["ftp"] = args ? args.ftp : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["http"] = args ? args.http : undefined; resourceInputs["imap"] = args ? args.imap : undefined; resourceInputs["mailSignature"] = args ? args.mailSignature : undefined; resourceInputs["mapi"] = args ? args.mapi : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nntp"] = args ? args.nntp : undefined; resourceInputs["oversizeLog"] = args ? args.oversizeLog : undefined; resourceInputs["pop3"] = args ? args.pop3 : undefined; resourceInputs["replacemsgGroup"] = args ? args.replacemsgGroup : undefined; resourceInputs["rpcOverHttp"] = args ? args.rpcOverHttp : undefined; resourceInputs["smtp"] = args ? args.smtp : undefined; resourceInputs["ssh"] = args ? args.ssh : undefined; resourceInputs["switchingProtocolsLog"] = args ? args.switchingProtocolsLog : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Profileprotocoloptions.__pulumiType, name, resourceInputs, opts); } } exports.Profileprotocoloptions = Profileprotocoloptions; /** @internal */ Profileprotocoloptions.__pulumiType = 'fortios:firewall/profileprotocoloptions:Profileprotocoloptions'; //# sourceMappingURL=profileprotocoloptions.js.map