@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
301 lines • 19.1 kB
JavaScript
// *** 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.Vip6 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure virtual IP for IPv6.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.firewall.Vip6("trname", {
* arpReply: "enable",
* color: 0,
* extip: "2001:1:1:12::100",
* extport: "0-65535",
* fosid: 0,
* httpCookieAge: 60,
* httpCookieDomainFromHost: "disable",
* httpCookieGeneration: 0,
* httpCookieShare: "same-ip",
* httpIpHeader: "disable",
* httpMultiplex: "disable",
* httpsCookieSecure: "disable",
* ldbMethod: "static",
* mappedip: "2001:1:1:12::200",
* mappedport: "0-65535",
* maxEmbryonicConnections: 1000,
* outlookWebAccess: "disable",
* persistence: "none",
* portforward: "disable",
* 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 Vip6 can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:firewall/vip6:Vip6 labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:firewall/vip6:Vip6 labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Vip6 extends pulumi.CustomResource {
/**
* Get an existing Vip6 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 Vip6(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Vip6. 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'] === Vip6.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["addNat64Route"] = state ? state.addNat64Route : undefined;
resourceInputs["arpReply"] = state ? state.arpReply : undefined;
resourceInputs["color"] = state ? state.color : undefined;
resourceInputs["comment"] = state ? state.comment : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["embeddedIpv4Address"] = state ? state.embeddedIpv4Address : 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["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["httpRedirect"] = state ? state.httpRedirect : undefined;
resourceInputs["httpsCookieSecure"] = state ? state.httpsCookieSecure : undefined;
resourceInputs["ipv4Mappedip"] = state ? state.ipv4Mappedip : undefined;
resourceInputs["ipv4Mappedport"] = state ? state.ipv4Mappedport : undefined;
resourceInputs["ldbMethod"] = state ? state.ldbMethod : undefined;
resourceInputs["mappedip"] = state ? state.mappedip : 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["nat64"] = state ? state.nat64 : undefined;
resourceInputs["nat66"] = state ? state.nat66 : undefined;
resourceInputs["natSourceVip"] = state ? state.natSourceVip : undefined;
resourceInputs["ndpReply"] = state ? state.ndpReply : undefined;
resourceInputs["outlookWebAccess"] = state ? state.outlookWebAccess : undefined;
resourceInputs["persistence"] = state ? state.persistence : undefined;
resourceInputs["portforward"] = state ? state.portforward : 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["srcFilters"] = state ? state.srcFilters : undefined;
resourceInputs["srcVipFilter"] = state ? state.srcVipFilter : 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["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;
if ((!args || args.extip === undefined) && !opts.urn) {
throw new Error("Missing required property 'extip'");
}
if ((!args || args.mappedip === undefined) && !opts.urn) {
throw new Error("Missing required property 'mappedip'");
}
resourceInputs["addNat64Route"] = args ? args.addNat64Route : undefined;
resourceInputs["arpReply"] = args ? args.arpReply : undefined;
resourceInputs["color"] = args ? args.color : undefined;
resourceInputs["comment"] = args ? args.comment : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["embeddedIpv4Address"] = args ? args.embeddedIpv4Address : 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["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["httpRedirect"] = args ? args.httpRedirect : undefined;
resourceInputs["httpsCookieSecure"] = args ? args.httpsCookieSecure : undefined;
resourceInputs["ipv4Mappedip"] = args ? args.ipv4Mappedip : undefined;
resourceInputs["ipv4Mappedport"] = args ? args.ipv4Mappedport : undefined;
resourceInputs["ldbMethod"] = args ? args.ldbMethod : undefined;
resourceInputs["mappedip"] = args ? args.mappedip : 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["nat64"] = args ? args.nat64 : undefined;
resourceInputs["nat66"] = args ? args.nat66 : undefined;
resourceInputs["natSourceVip"] = args ? args.natSourceVip : undefined;
resourceInputs["ndpReply"] = args ? args.ndpReply : undefined;
resourceInputs["outlookWebAccess"] = args ? args.outlookWebAccess : undefined;
resourceInputs["persistence"] = args ? args.persistence : undefined;
resourceInputs["portforward"] = args ? args.portforward : 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["srcFilters"] = args ? args.srcFilters : undefined;
resourceInputs["srcVipFilter"] = args ? args.srcVipFilter : 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["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(Vip6.__pulumiType, name, resourceInputs, opts);
}
}
exports.Vip6 = Vip6;
/** @internal */
Vip6.__pulumiType = 'fortios:firewall/vip6:Vip6';
//# sourceMappingURL=vip6.js.map
;