UNPKG

@pulumiverse/fortios

Version:

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

134 lines 6.35 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.Resourcelimits = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure resource limits. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.system.Resourcelimits("trname", { * customService: 0, * dialupTunnel: 0, * firewallAddress: 41024, * firewallAddrgrp: 10692, * firewallPolicy: 41024, * ipsecPhase1: 2000, * ipsecPhase1Interface: 0, * ipsecPhase2: 2000, * ipsecPhase2Interface: 0, * logDiskQuota: 30235, * onetimeSchedule: 0, * proxy: 64000, * recurringSchedule: 0, * serviceGroup: 0, * session: 0, * sslvpn: 0, * user: 0, * userGroup: 0, * }); * ``` * * ## Import * * System ResourceLimits can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:system/resourcelimits:Resourcelimits labelname SystemResourceLimits * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:system/resourcelimits:Resourcelimits labelname SystemResourceLimits * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Resourcelimits extends pulumi.CustomResource { /** * Get an existing Resourcelimits 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 Resourcelimits(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Resourcelimits. 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'] === Resourcelimits.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["customService"] = state ? state.customService : undefined; resourceInputs["dialupTunnel"] = state ? state.dialupTunnel : undefined; resourceInputs["firewallAddress"] = state ? state.firewallAddress : undefined; resourceInputs["firewallAddrgrp"] = state ? state.firewallAddrgrp : undefined; resourceInputs["firewallPolicy"] = state ? state.firewallPolicy : undefined; resourceInputs["ipsecPhase1"] = state ? state.ipsecPhase1 : undefined; resourceInputs["ipsecPhase1Interface"] = state ? state.ipsecPhase1Interface : undefined; resourceInputs["ipsecPhase2"] = state ? state.ipsecPhase2 : undefined; resourceInputs["ipsecPhase2Interface"] = state ? state.ipsecPhase2Interface : undefined; resourceInputs["logDiskQuota"] = state ? state.logDiskQuota : undefined; resourceInputs["onetimeSchedule"] = state ? state.onetimeSchedule : undefined; resourceInputs["proxy"] = state ? state.proxy : undefined; resourceInputs["recurringSchedule"] = state ? state.recurringSchedule : undefined; resourceInputs["serviceGroup"] = state ? state.serviceGroup : undefined; resourceInputs["session"] = state ? state.session : undefined; resourceInputs["sslvpn"] = state ? state.sslvpn : undefined; resourceInputs["user"] = state ? state.user : undefined; resourceInputs["userGroup"] = state ? state.userGroup : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["customService"] = args ? args.customService : undefined; resourceInputs["dialupTunnel"] = args ? args.dialupTunnel : undefined; resourceInputs["firewallAddress"] = args ? args.firewallAddress : undefined; resourceInputs["firewallAddrgrp"] = args ? args.firewallAddrgrp : undefined; resourceInputs["firewallPolicy"] = args ? args.firewallPolicy : undefined; resourceInputs["ipsecPhase1"] = args ? args.ipsecPhase1 : undefined; resourceInputs["ipsecPhase1Interface"] = args ? args.ipsecPhase1Interface : undefined; resourceInputs["ipsecPhase2"] = args ? args.ipsecPhase2 : undefined; resourceInputs["ipsecPhase2Interface"] = args ? args.ipsecPhase2Interface : undefined; resourceInputs["logDiskQuota"] = args ? args.logDiskQuota : undefined; resourceInputs["onetimeSchedule"] = args ? args.onetimeSchedule : undefined; resourceInputs["proxy"] = args ? args.proxy : undefined; resourceInputs["recurringSchedule"] = args ? args.recurringSchedule : undefined; resourceInputs["serviceGroup"] = args ? args.serviceGroup : undefined; resourceInputs["session"] = args ? args.session : undefined; resourceInputs["sslvpn"] = args ? args.sslvpn : 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(Resourcelimits.__pulumiType, name, resourceInputs, opts); } } exports.Resourcelimits = Resourcelimits; /** @internal */ Resourcelimits.__pulumiType = 'fortios:system/resourcelimits:Resourcelimits'; //# sourceMappingURL=resourcelimits.js.map