UNPKG

@pulumiverse/fortios

Version:

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

331 lines 21.6 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.Vip = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure virtual IP for IPv4. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.firewall.Vip("trname", { * arpReply: "enable", * color: 0, * dnsMappingTtl: 0, * extintf: "any", * extip: "1.0.0.1-1.0.0.2", * extport: "0-65535", * fosid: 0, * httpCookieAge: 60, * httpCookieDomainFromHost: "disable", * httpCookieGeneration: 0, * httpCookieShare: "same-ip", * httpIpHeader: "disable", * httpMultiplex: "disable", * httpsCookieSecure: "disable", * ldbMethod: "static", * mappedips: [{ * range: "3.0.0.0-3.0.0.1", * }], * mappedport: "0-65535", * maxEmbryonicConnections: 1000, * natSourceVip: "disable", * outlookWebAccess: "disable", * persistence: "none", * portforward: "disable", * portmappingType: "1-to-1", * protocol: "tcp", * sslAlgorithm: "high", * sslClientFallback: "enable", * sslClientRenegotiation: "secure", * sslClientSessionStateMax: 1000, * sslClientSessionStateTimeout: 30, * sslClientSessionStateType: "both", * sslDhBits: "2048", * sslHpkp: "disable", * sslHpkpAge: 5184000, * sslHpkpIncludeSubdomains: "disable", * sslHsts: "disable", * sslHstsAge: 5184000, * sslHstsIncludeSubdomains: "disable", * sslHttpLocationConversion: "disable", * sslHttpMatchHost: "enable", * sslMaxVersion: "tls-1.2", * sslMinVersion: "tls-1.1", * sslMode: "half", * sslPfs: "require", * sslSendEmptyFrags: "enable", * sslServerAlgorithm: "client", * sslServerMaxVersion: "client", * sslServerMinVersion: "client", * sslServerSessionStateMax: 100, * sslServerSessionStateTimeout: 60, * sslServerSessionStateType: "both", * type: "static-nat", * weblogicServer: "disable", * websphereServer: "disable", * }); * ``` * * ## Import * * Firewall Vip can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:firewall/vip:Vip labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:firewall/vip:Vip labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Vip extends pulumi.CustomResource { /** * Get an existing Vip 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 Vip(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Vip. 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'] === Vip.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["addNat46Route"] = state ? state.addNat46Route : undefined; resourceInputs["arpReply"] = state ? state.arpReply : undefined; resourceInputs["color"] = state ? state.color : undefined; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["dnsMappingTtl"] = state ? state.dnsMappingTtl : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["extaddrs"] = state ? state.extaddrs : undefined; resourceInputs["extintf"] = state ? state.extintf : undefined; resourceInputs["extip"] = state ? state.extip : undefined; resourceInputs["extport"] = state ? state.extport : undefined; resourceInputs["fosid"] = state ? state.fosid : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["gratuitousArpInterval"] = state ? state.gratuitousArpInterval : undefined; resourceInputs["gslbDomainName"] = state ? state.gslbDomainName : undefined; resourceInputs["gslbHostname"] = state ? state.gslbHostname : undefined; resourceInputs["gslbPublicIps"] = state ? state.gslbPublicIps : undefined; resourceInputs["h2Support"] = state ? state.h2Support : undefined; resourceInputs["h3Support"] = state ? state.h3Support : undefined; resourceInputs["httpCookieAge"] = state ? state.httpCookieAge : undefined; resourceInputs["httpCookieDomain"] = state ? state.httpCookieDomain : undefined; resourceInputs["httpCookieDomainFromHost"] = state ? state.httpCookieDomainFromHost : undefined; resourceInputs["httpCookieGeneration"] = state ? state.httpCookieGeneration : undefined; resourceInputs["httpCookiePath"] = state ? state.httpCookiePath : undefined; resourceInputs["httpCookieShare"] = state ? state.httpCookieShare : undefined; resourceInputs["httpIpHeader"] = state ? state.httpIpHeader : undefined; resourceInputs["httpIpHeaderName"] = state ? state.httpIpHeaderName : undefined; resourceInputs["httpMultiplex"] = state ? state.httpMultiplex : undefined; resourceInputs["httpMultiplexMaxConcurrentRequest"] = state ? state.httpMultiplexMaxConcurrentRequest : undefined; resourceInputs["httpMultiplexMaxRequest"] = state ? state.httpMultiplexMaxRequest : undefined; resourceInputs["httpMultiplexTtl"] = state ? state.httpMultiplexTtl : undefined; resourceInputs["httpRedirect"] = state ? state.httpRedirect : undefined; resourceInputs["httpSupportedMaxVersion"] = state ? state.httpSupportedMaxVersion : undefined; resourceInputs["httpsCookieSecure"] = state ? state.httpsCookieSecure : undefined; resourceInputs["ipv6Mappedip"] = state ? state.ipv6Mappedip : undefined; resourceInputs["ipv6Mappedport"] = state ? state.ipv6Mappedport : undefined; resourceInputs["ldbMethod"] = state ? state.ldbMethod : undefined; resourceInputs["mappedAddr"] = state ? state.mappedAddr : undefined; resourceInputs["mappedips"] = state ? state.mappedips : undefined; resourceInputs["mappedport"] = state ? state.mappedport : undefined; resourceInputs["maxEmbryonicConnections"] = state ? state.maxEmbryonicConnections : undefined; resourceInputs["monitors"] = state ? state.monitors : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nat44"] = state ? state.nat44 : undefined; resourceInputs["nat46"] = state ? state.nat46 : undefined; resourceInputs["natSourceVip"] = state ? state.natSourceVip : undefined; resourceInputs["oneClickGslbServer"] = state ? state.oneClickGslbServer : undefined; resourceInputs["outlookWebAccess"] = state ? state.outlookWebAccess : undefined; resourceInputs["persistence"] = state ? state.persistence : undefined; resourceInputs["portforward"] = state ? state.portforward : undefined; resourceInputs["portmappingType"] = state ? state.portmappingType : undefined; resourceInputs["protocol"] = state ? state.protocol : undefined; resourceInputs["quic"] = state ? state.quic : undefined; resourceInputs["realservers"] = state ? state.realservers : undefined; resourceInputs["serverType"] = state ? state.serverType : undefined; resourceInputs["services"] = state ? state.services : undefined; resourceInputs["srcFilters"] = state ? state.srcFilters : undefined; resourceInputs["srcVipFilter"] = state ? state.srcVipFilter : undefined; resourceInputs["srcintfFilters"] = state ? state.srcintfFilters : undefined; resourceInputs["sslAcceptFfdheGroups"] = state ? state.sslAcceptFfdheGroups : undefined; resourceInputs["sslAlgorithm"] = state ? state.sslAlgorithm : undefined; resourceInputs["sslCertificate"] = state ? state.sslCertificate : undefined; resourceInputs["sslCipherSuites"] = state ? state.sslCipherSuites : undefined; resourceInputs["sslClientFallback"] = state ? state.sslClientFallback : undefined; resourceInputs["sslClientRekeyCount"] = state ? state.sslClientRekeyCount : undefined; resourceInputs["sslClientRenegotiation"] = state ? state.sslClientRenegotiation : undefined; resourceInputs["sslClientSessionStateMax"] = state ? state.sslClientSessionStateMax : undefined; resourceInputs["sslClientSessionStateTimeout"] = state ? state.sslClientSessionStateTimeout : undefined; resourceInputs["sslClientSessionStateType"] = state ? state.sslClientSessionStateType : undefined; resourceInputs["sslDhBits"] = state ? state.sslDhBits : undefined; resourceInputs["sslHpkp"] = state ? state.sslHpkp : undefined; resourceInputs["sslHpkpAge"] = state ? state.sslHpkpAge : undefined; resourceInputs["sslHpkpBackup"] = state ? state.sslHpkpBackup : undefined; resourceInputs["sslHpkpIncludeSubdomains"] = state ? state.sslHpkpIncludeSubdomains : undefined; resourceInputs["sslHpkpPrimary"] = state ? state.sslHpkpPrimary : undefined; resourceInputs["sslHpkpReportUri"] = state ? state.sslHpkpReportUri : undefined; resourceInputs["sslHsts"] = state ? state.sslHsts : undefined; resourceInputs["sslHstsAge"] = state ? state.sslHstsAge : undefined; resourceInputs["sslHstsIncludeSubdomains"] = state ? state.sslHstsIncludeSubdomains : undefined; resourceInputs["sslHttpLocationConversion"] = state ? state.sslHttpLocationConversion : undefined; resourceInputs["sslHttpMatchHost"] = state ? state.sslHttpMatchHost : undefined; resourceInputs["sslMaxVersion"] = state ? state.sslMaxVersion : undefined; resourceInputs["sslMinVersion"] = state ? state.sslMinVersion : undefined; resourceInputs["sslMode"] = state ? state.sslMode : undefined; resourceInputs["sslPfs"] = state ? state.sslPfs : undefined; resourceInputs["sslSendEmptyFrags"] = state ? state.sslSendEmptyFrags : undefined; resourceInputs["sslServerAlgorithm"] = state ? state.sslServerAlgorithm : undefined; resourceInputs["sslServerCipherSuites"] = state ? state.sslServerCipherSuites : undefined; resourceInputs["sslServerMaxVersion"] = state ? state.sslServerMaxVersion : undefined; resourceInputs["sslServerMinVersion"] = state ? state.sslServerMinVersion : undefined; resourceInputs["sslServerRenegotiation"] = state ? state.sslServerRenegotiation : undefined; resourceInputs["sslServerSessionStateMax"] = state ? state.sslServerSessionStateMax : undefined; resourceInputs["sslServerSessionStateTimeout"] = state ? state.sslServerSessionStateTimeout : undefined; resourceInputs["sslServerSessionStateType"] = state ? state.sslServerSessionStateType : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["uuid"] = state ? state.uuid : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["weblogicServer"] = state ? state.weblogicServer : undefined; resourceInputs["websphereServer"] = state ? state.websphereServer : undefined; } else { const args = argsOrState; resourceInputs["addNat46Route"] = args ? args.addNat46Route : undefined; resourceInputs["arpReply"] = args ? args.arpReply : undefined; resourceInputs["color"] = args ? args.color : undefined; resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["dnsMappingTtl"] = args ? args.dnsMappingTtl : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["extaddrs"] = args ? args.extaddrs : undefined; resourceInputs["extintf"] = args ? args.extintf : undefined; resourceInputs["extip"] = args ? args.extip : undefined; resourceInputs["extport"] = args ? args.extport : undefined; resourceInputs["fosid"] = args ? args.fosid : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["gratuitousArpInterval"] = args ? args.gratuitousArpInterval : undefined; resourceInputs["gslbDomainName"] = args ? args.gslbDomainName : undefined; resourceInputs["gslbHostname"] = args ? args.gslbHostname : undefined; resourceInputs["gslbPublicIps"] = args ? args.gslbPublicIps : undefined; resourceInputs["h2Support"] = args ? args.h2Support : undefined; resourceInputs["h3Support"] = args ? args.h3Support : undefined; resourceInputs["httpCookieAge"] = args ? args.httpCookieAge : undefined; resourceInputs["httpCookieDomain"] = args ? args.httpCookieDomain : undefined; resourceInputs["httpCookieDomainFromHost"] = args ? args.httpCookieDomainFromHost : undefined; resourceInputs["httpCookieGeneration"] = args ? args.httpCookieGeneration : undefined; resourceInputs["httpCookiePath"] = args ? args.httpCookiePath : undefined; resourceInputs["httpCookieShare"] = args ? args.httpCookieShare : undefined; resourceInputs["httpIpHeader"] = args ? args.httpIpHeader : undefined; resourceInputs["httpIpHeaderName"] = args ? args.httpIpHeaderName : undefined; resourceInputs["httpMultiplex"] = args ? args.httpMultiplex : undefined; resourceInputs["httpMultiplexMaxConcurrentRequest"] = args ? args.httpMultiplexMaxConcurrentRequest : undefined; resourceInputs["httpMultiplexMaxRequest"] = args ? args.httpMultiplexMaxRequest : undefined; resourceInputs["httpMultiplexTtl"] = args ? args.httpMultiplexTtl : undefined; resourceInputs["httpRedirect"] = args ? args.httpRedirect : undefined; resourceInputs["httpSupportedMaxVersion"] = args ? args.httpSupportedMaxVersion : undefined; resourceInputs["httpsCookieSecure"] = args ? args.httpsCookieSecure : undefined; resourceInputs["ipv6Mappedip"] = args ? args.ipv6Mappedip : undefined; resourceInputs["ipv6Mappedport"] = args ? args.ipv6Mappedport : undefined; resourceInputs["ldbMethod"] = args ? args.ldbMethod : undefined; resourceInputs["mappedAddr"] = args ? args.mappedAddr : undefined; resourceInputs["mappedips"] = args ? args.mappedips : undefined; resourceInputs["mappedport"] = args ? args.mappedport : undefined; resourceInputs["maxEmbryonicConnections"] = args ? args.maxEmbryonicConnections : undefined; resourceInputs["monitors"] = args ? args.monitors : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nat44"] = args ? args.nat44 : undefined; resourceInputs["nat46"] = args ? args.nat46 : undefined; resourceInputs["natSourceVip"] = args ? args.natSourceVip : undefined; resourceInputs["oneClickGslbServer"] = args ? args.oneClickGslbServer : undefined; resourceInputs["outlookWebAccess"] = args ? args.outlookWebAccess : undefined; resourceInputs["persistence"] = args ? args.persistence : undefined; resourceInputs["portforward"] = args ? args.portforward : undefined; resourceInputs["portmappingType"] = args ? args.portmappingType : undefined; resourceInputs["protocol"] = args ? args.protocol : undefined; resourceInputs["quic"] = args ? args.quic : undefined; resourceInputs["realservers"] = args ? args.realservers : undefined; resourceInputs["serverType"] = args ? args.serverType : undefined; resourceInputs["services"] = args ? args.services : undefined; resourceInputs["srcFilters"] = args ? args.srcFilters : undefined; resourceInputs["srcVipFilter"] = args ? args.srcVipFilter : undefined; resourceInputs["srcintfFilters"] = args ? args.srcintfFilters : undefined; resourceInputs["sslAcceptFfdheGroups"] = args ? args.sslAcceptFfdheGroups : undefined; resourceInputs["sslAlgorithm"] = args ? args.sslAlgorithm : undefined; resourceInputs["sslCertificate"] = args ? args.sslCertificate : undefined; resourceInputs["sslCipherSuites"] = args ? args.sslCipherSuites : undefined; resourceInputs["sslClientFallback"] = args ? args.sslClientFallback : undefined; resourceInputs["sslClientRekeyCount"] = args ? args.sslClientRekeyCount : undefined; resourceInputs["sslClientRenegotiation"] = args ? args.sslClientRenegotiation : undefined; resourceInputs["sslClientSessionStateMax"] = args ? args.sslClientSessionStateMax : undefined; resourceInputs["sslClientSessionStateTimeout"] = args ? args.sslClientSessionStateTimeout : undefined; resourceInputs["sslClientSessionStateType"] = args ? args.sslClientSessionStateType : undefined; resourceInputs["sslDhBits"] = args ? args.sslDhBits : undefined; resourceInputs["sslHpkp"] = args ? args.sslHpkp : undefined; resourceInputs["sslHpkpAge"] = args ? args.sslHpkpAge : undefined; resourceInputs["sslHpkpBackup"] = args ? args.sslHpkpBackup : undefined; resourceInputs["sslHpkpIncludeSubdomains"] = args ? args.sslHpkpIncludeSubdomains : undefined; resourceInputs["sslHpkpPrimary"] = args ? args.sslHpkpPrimary : undefined; resourceInputs["sslHpkpReportUri"] = args ? args.sslHpkpReportUri : undefined; resourceInputs["sslHsts"] = args ? args.sslHsts : undefined; resourceInputs["sslHstsAge"] = args ? args.sslHstsAge : undefined; resourceInputs["sslHstsIncludeSubdomains"] = args ? args.sslHstsIncludeSubdomains : undefined; resourceInputs["sslHttpLocationConversion"] = args ? args.sslHttpLocationConversion : undefined; resourceInputs["sslHttpMatchHost"] = args ? args.sslHttpMatchHost : undefined; resourceInputs["sslMaxVersion"] = args ? args.sslMaxVersion : undefined; resourceInputs["sslMinVersion"] = args ? args.sslMinVersion : undefined; resourceInputs["sslMode"] = args ? args.sslMode : undefined; resourceInputs["sslPfs"] = args ? args.sslPfs : undefined; resourceInputs["sslSendEmptyFrags"] = args ? args.sslSendEmptyFrags : undefined; resourceInputs["sslServerAlgorithm"] = args ? args.sslServerAlgorithm : undefined; resourceInputs["sslServerCipherSuites"] = args ? args.sslServerCipherSuites : undefined; resourceInputs["sslServerMaxVersion"] = args ? args.sslServerMaxVersion : undefined; resourceInputs["sslServerMinVersion"] = args ? args.sslServerMinVersion : undefined; resourceInputs["sslServerRenegotiation"] = args ? args.sslServerRenegotiation : undefined; resourceInputs["sslServerSessionStateMax"] = args ? args.sslServerSessionStateMax : undefined; resourceInputs["sslServerSessionStateTimeout"] = args ? args.sslServerSessionStateTimeout : undefined; resourceInputs["sslServerSessionStateType"] = args ? args.sslServerSessionStateType : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["uuid"] = args ? args.uuid : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["weblogicServer"] = args ? args.weblogicServer : undefined; resourceInputs["websphereServer"] = args ? args.websphereServer : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Vip.__pulumiType, name, resourceInputs, opts); } } exports.Vip = Vip; /** @internal */ Vip.__pulumiType = 'fortios:firewall/vip:Vip'; //# sourceMappingURL=vip.js.map