UNPKG

@pulumiverse/fortios

Version:

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

289 lines 19.2 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.Ha = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure HA. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.system.Ha("trname", { * cpuThreshold: "5 0 0", * encryption: "disable", * ftpProxyThreshold: "5 0 0", * gratuitousArps: "enable", * groupId: 0, * haDirect: "disable", * haEthType: "8890", * haMgmtStatus: "disable", * haUptimeDiffMargin: 300, * hbInterval: 2, * hbLostThreshold: 20, * hcEthType: "8891", * helloHolddown: 20, * httpProxyThreshold: "5 0 0", * imapProxyThreshold: "5 0 0", * interClusterSessionSync: "disable", * l2epEthType: "8893", * linkFailedSignal: "disable", * loadBalanceAll: "disable", * memoryCompatibleMode: "disable", * memoryThreshold: "5 0 0", * mode: "standalone", * multicastTtl: 600, * nntpProxyThreshold: "5 0 0", * override: "disable", * overrideWaitTime: 0, * secondaryVcluster: { * override: "enable", * overrideWaitTime: 0, * pingserverFailoverThreshold: 0, * pingserverSlaveForceReset: "enable", * priority: 128, * vclusterId: 1, * }, * weight: "40 ", * }); * ``` * * ## Import * * System Ha can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:system/ha:Ha labelname SystemHa * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:system/ha:Ha labelname SystemHa * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Ha extends pulumi.CustomResource { /** * Get an existing Ha 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 Ha(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Ha. 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'] === Ha.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arps"] = state ? state.arps : undefined; resourceInputs["arpsInterval"] = state ? state.arpsInterval : undefined; resourceInputs["authentication"] = state ? state.authentication : undefined; resourceInputs["cpuThreshold"] = state ? state.cpuThreshold : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["encryption"] = state ? state.encryption : undefined; resourceInputs["evpnTtl"] = state ? state.evpnTtl : undefined; resourceInputs["failoverHoldTime"] = state ? state.failoverHoldTime : undefined; resourceInputs["ftpProxyThreshold"] = state ? state.ftpProxyThreshold : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["gratuitousArps"] = state ? state.gratuitousArps : undefined; resourceInputs["groupId"] = state ? state.groupId : undefined; resourceInputs["groupName"] = state ? state.groupName : undefined; resourceInputs["haDirect"] = state ? state.haDirect : undefined; resourceInputs["haEthType"] = state ? state.haEthType : undefined; resourceInputs["haMgmtInterfaces"] = state ? state.haMgmtInterfaces : undefined; resourceInputs["haMgmtStatus"] = state ? state.haMgmtStatus : undefined; resourceInputs["haUptimeDiffMargin"] = state ? state.haUptimeDiffMargin : undefined; resourceInputs["hbInterval"] = state ? state.hbInterval : undefined; resourceInputs["hbIntervalInMilliseconds"] = state ? state.hbIntervalInMilliseconds : undefined; resourceInputs["hbLostThreshold"] = state ? state.hbLostThreshold : undefined; resourceInputs["hbdev"] = state ? state.hbdev : undefined; resourceInputs["hcEthType"] = state ? state.hcEthType : undefined; resourceInputs["helloHolddown"] = state ? state.helloHolddown : undefined; resourceInputs["httpProxyThreshold"] = state ? state.httpProxyThreshold : undefined; resourceInputs["imapProxyThreshold"] = state ? state.imapProxyThreshold : undefined; resourceInputs["interClusterSessionSync"] = state ? state.interClusterSessionSync : undefined; resourceInputs["ipsecPhase2Proposal"] = state ? state.ipsecPhase2Proposal : undefined; resourceInputs["key"] = state ? state.key : undefined; resourceInputs["l2epEthType"] = state ? state.l2epEthType : undefined; resourceInputs["linkFailedSignal"] = state ? state.linkFailedSignal : undefined; resourceInputs["loadBalanceAll"] = state ? state.loadBalanceAll : undefined; resourceInputs["logicalSn"] = state ? state.logicalSn : undefined; resourceInputs["memoryBasedFailover"] = state ? state.memoryBasedFailover : undefined; resourceInputs["memoryCompatibleMode"] = state ? state.memoryCompatibleMode : undefined; resourceInputs["memoryFailoverFlipTimeout"] = state ? state.memoryFailoverFlipTimeout : undefined; resourceInputs["memoryFailoverMonitorPeriod"] = state ? state.memoryFailoverMonitorPeriod : undefined; resourceInputs["memoryFailoverSampleRate"] = state ? state.memoryFailoverSampleRate : undefined; resourceInputs["memoryFailoverThreshold"] = state ? state.memoryFailoverThreshold : undefined; resourceInputs["memoryThreshold"] = state ? state.memoryThreshold : undefined; resourceInputs["mode"] = state ? state.mode : undefined; resourceInputs["monitor"] = state ? state.monitor : undefined; resourceInputs["multicastTtl"] = state ? state.multicastTtl : undefined; resourceInputs["nntpProxyThreshold"] = state ? state.nntpProxyThreshold : undefined; resourceInputs["override"] = state ? state.override : undefined; resourceInputs["overrideWaitTime"] = state ? state.overrideWaitTime : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["pingserverFailoverThreshold"] = state ? state.pingserverFailoverThreshold : undefined; resourceInputs["pingserverFlipTimeout"] = state ? state.pingserverFlipTimeout : undefined; resourceInputs["pingserverMonitorInterface"] = state ? state.pingserverMonitorInterface : undefined; resourceInputs["pingserverSecondaryForceReset"] = state ? state.pingserverSecondaryForceReset : undefined; resourceInputs["pingserverSlaveForceReset"] = state ? state.pingserverSlaveForceReset : undefined; resourceInputs["pop3ProxyThreshold"] = state ? state.pop3ProxyThreshold : undefined; resourceInputs["priority"] = state ? state.priority : undefined; resourceInputs["routeHold"] = state ? state.routeHold : undefined; resourceInputs["routeTtl"] = state ? state.routeTtl : undefined; resourceInputs["routeWait"] = state ? state.routeWait : undefined; resourceInputs["schedule"] = state ? state.schedule : undefined; resourceInputs["secondaryVcluster"] = state ? state.secondaryVcluster : undefined; resourceInputs["sessionPickup"] = state ? state.sessionPickup : undefined; resourceInputs["sessionPickupConnectionless"] = state ? state.sessionPickupConnectionless : undefined; resourceInputs["sessionPickupDelay"] = state ? state.sessionPickupDelay : undefined; resourceInputs["sessionPickupExpectation"] = state ? state.sessionPickupExpectation : undefined; resourceInputs["sessionPickupNat"] = state ? state.sessionPickupNat : undefined; resourceInputs["sessionSyncDev"] = state ? state.sessionSyncDev : undefined; resourceInputs["smtpProxyThreshold"] = state ? state.smtpProxyThreshold : undefined; resourceInputs["ssdFailover"] = state ? state.ssdFailover : undefined; resourceInputs["standaloneConfigSync"] = state ? state.standaloneConfigSync : undefined; resourceInputs["standaloneMgmtVdom"] = state ? state.standaloneMgmtVdom : undefined; resourceInputs["syncConfig"] = state ? state.syncConfig : undefined; resourceInputs["syncPacketBalance"] = state ? state.syncPacketBalance : undefined; resourceInputs["unicastGateway"] = state ? state.unicastGateway : undefined; resourceInputs["unicastHb"] = state ? state.unicastHb : undefined; resourceInputs["unicastHbNetmask"] = state ? state.unicastHbNetmask : undefined; resourceInputs["unicastHbPeerip"] = state ? state.unicastHbPeerip : undefined; resourceInputs["unicastPeers"] = state ? state.unicastPeers : undefined; resourceInputs["unicastStatus"] = state ? state.unicastStatus : undefined; resourceInputs["uninterruptiblePrimaryWait"] = state ? state.uninterruptiblePrimaryWait : undefined; resourceInputs["uninterruptibleUpgrade"] = state ? state.uninterruptibleUpgrade : undefined; resourceInputs["upgradeMode"] = state ? state.upgradeMode : undefined; resourceInputs["vcluster2"] = state ? state.vcluster2 : undefined; resourceInputs["vclusterId"] = state ? state.vclusterId : undefined; resourceInputs["vclusterStatus"] = state ? state.vclusterStatus : undefined; resourceInputs["vclusters"] = state ? state.vclusters : undefined; resourceInputs["vdom"] = state ? state.vdom : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["weight"] = state ? state.weight : undefined; } else { const args = argsOrState; resourceInputs["arps"] = args ? args.arps : undefined; resourceInputs["arpsInterval"] = args ? args.arpsInterval : undefined; resourceInputs["authentication"] = args ? args.authentication : undefined; resourceInputs["cpuThreshold"] = args ? args.cpuThreshold : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["encryption"] = args ? args.encryption : undefined; resourceInputs["evpnTtl"] = args ? args.evpnTtl : undefined; resourceInputs["failoverHoldTime"] = args ? args.failoverHoldTime : undefined; resourceInputs["ftpProxyThreshold"] = args ? args.ftpProxyThreshold : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["gratuitousArps"] = args ? args.gratuitousArps : undefined; resourceInputs["groupId"] = args ? args.groupId : undefined; resourceInputs["groupName"] = args ? args.groupName : undefined; resourceInputs["haDirect"] = args ? args.haDirect : undefined; resourceInputs["haEthType"] = args ? args.haEthType : undefined; resourceInputs["haMgmtInterfaces"] = args ? args.haMgmtInterfaces : undefined; resourceInputs["haMgmtStatus"] = args ? args.haMgmtStatus : undefined; resourceInputs["haUptimeDiffMargin"] = args ? args.haUptimeDiffMargin : undefined; resourceInputs["hbInterval"] = args ? args.hbInterval : undefined; resourceInputs["hbIntervalInMilliseconds"] = args ? args.hbIntervalInMilliseconds : undefined; resourceInputs["hbLostThreshold"] = args ? args.hbLostThreshold : undefined; resourceInputs["hbdev"] = args ? args.hbdev : undefined; resourceInputs["hcEthType"] = args ? args.hcEthType : undefined; resourceInputs["helloHolddown"] = args ? args.helloHolddown : undefined; resourceInputs["httpProxyThreshold"] = args ? args.httpProxyThreshold : undefined; resourceInputs["imapProxyThreshold"] = args ? args.imapProxyThreshold : undefined; resourceInputs["interClusterSessionSync"] = args ? args.interClusterSessionSync : undefined; resourceInputs["ipsecPhase2Proposal"] = args ? args.ipsecPhase2Proposal : undefined; resourceInputs["key"] = (args === null || args === void 0 ? void 0 : args.key) ? pulumi.secret(args.key) : undefined; resourceInputs["l2epEthType"] = args ? args.l2epEthType : undefined; resourceInputs["linkFailedSignal"] = args ? args.linkFailedSignal : undefined; resourceInputs["loadBalanceAll"] = args ? args.loadBalanceAll : undefined; resourceInputs["logicalSn"] = args ? args.logicalSn : undefined; resourceInputs["memoryBasedFailover"] = args ? args.memoryBasedFailover : undefined; resourceInputs["memoryCompatibleMode"] = args ? args.memoryCompatibleMode : undefined; resourceInputs["memoryFailoverFlipTimeout"] = args ? args.memoryFailoverFlipTimeout : undefined; resourceInputs["memoryFailoverMonitorPeriod"] = args ? args.memoryFailoverMonitorPeriod : undefined; resourceInputs["memoryFailoverSampleRate"] = args ? args.memoryFailoverSampleRate : undefined; resourceInputs["memoryFailoverThreshold"] = args ? args.memoryFailoverThreshold : undefined; resourceInputs["memoryThreshold"] = args ? args.memoryThreshold : undefined; resourceInputs["mode"] = args ? args.mode : undefined; resourceInputs["monitor"] = args ? args.monitor : undefined; resourceInputs["multicastTtl"] = args ? args.multicastTtl : undefined; resourceInputs["nntpProxyThreshold"] = args ? args.nntpProxyThreshold : undefined; resourceInputs["override"] = args ? args.override : undefined; resourceInputs["overrideWaitTime"] = args ? args.overrideWaitTime : undefined; resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined; resourceInputs["pingserverFailoverThreshold"] = args ? args.pingserverFailoverThreshold : undefined; resourceInputs["pingserverFlipTimeout"] = args ? args.pingserverFlipTimeout : undefined; resourceInputs["pingserverMonitorInterface"] = args ? args.pingserverMonitorInterface : undefined; resourceInputs["pingserverSecondaryForceReset"] = args ? args.pingserverSecondaryForceReset : undefined; resourceInputs["pingserverSlaveForceReset"] = args ? args.pingserverSlaveForceReset : undefined; resourceInputs["pop3ProxyThreshold"] = args ? args.pop3ProxyThreshold : undefined; resourceInputs["priority"] = args ? args.priority : undefined; resourceInputs["routeHold"] = args ? args.routeHold : undefined; resourceInputs["routeTtl"] = args ? args.routeTtl : undefined; resourceInputs["routeWait"] = args ? args.routeWait : undefined; resourceInputs["schedule"] = args ? args.schedule : undefined; resourceInputs["secondaryVcluster"] = args ? args.secondaryVcluster : undefined; resourceInputs["sessionPickup"] = args ? args.sessionPickup : undefined; resourceInputs["sessionPickupConnectionless"] = args ? args.sessionPickupConnectionless : undefined; resourceInputs["sessionPickupDelay"] = args ? args.sessionPickupDelay : undefined; resourceInputs["sessionPickupExpectation"] = args ? args.sessionPickupExpectation : undefined; resourceInputs["sessionPickupNat"] = args ? args.sessionPickupNat : undefined; resourceInputs["sessionSyncDev"] = args ? args.sessionSyncDev : undefined; resourceInputs["smtpProxyThreshold"] = args ? args.smtpProxyThreshold : undefined; resourceInputs["ssdFailover"] = args ? args.ssdFailover : undefined; resourceInputs["standaloneConfigSync"] = args ? args.standaloneConfigSync : undefined; resourceInputs["standaloneMgmtVdom"] = args ? args.standaloneMgmtVdom : undefined; resourceInputs["syncConfig"] = args ? args.syncConfig : undefined; resourceInputs["syncPacketBalance"] = args ? args.syncPacketBalance : undefined; resourceInputs["unicastGateway"] = args ? args.unicastGateway : undefined; resourceInputs["unicastHb"] = args ? args.unicastHb : undefined; resourceInputs["unicastHbNetmask"] = args ? args.unicastHbNetmask : undefined; resourceInputs["unicastHbPeerip"] = args ? args.unicastHbPeerip : undefined; resourceInputs["unicastPeers"] = args ? args.unicastPeers : undefined; resourceInputs["unicastStatus"] = args ? args.unicastStatus : undefined; resourceInputs["uninterruptiblePrimaryWait"] = args ? args.uninterruptiblePrimaryWait : undefined; resourceInputs["uninterruptibleUpgrade"] = args ? args.uninterruptibleUpgrade : undefined; resourceInputs["upgradeMode"] = args ? args.upgradeMode : undefined; resourceInputs["vcluster2"] = args ? args.vcluster2 : undefined; resourceInputs["vclusterId"] = args ? args.vclusterId : undefined; resourceInputs["vclusterStatus"] = args ? args.vclusterStatus : undefined; resourceInputs["vclusters"] = args ? args.vclusters : undefined; resourceInputs["vdom"] = args ? args.vdom : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["weight"] = args ? args.weight : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["key", "password"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Ha.__pulumiType, name, resourceInputs, opts); } } exports.Ha = Ha; /** @internal */ Ha.__pulumiType = 'fortios:system/ha:Ha'; //# sourceMappingURL=ha.js.map