@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
118 lines • 5.85 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.Clustersync = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure FortiGate Session Life Support Protocol (FGSP) session synchronization. Applies to FortiOS Version `<= 7.2.0`.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Clustersync("trname", {
* hbInterval: 3,
* hbLostThreshold: 3,
* peerip: "1.1.1.1",
* peervd: "root",
* slaveAddIkeRoutes: "enable",
* syncId: 1,
* });
* ```
*
* ## Import
*
* System ClusterSync can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/clustersync:Clustersync labelname {{sync_id}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/clustersync:Clustersync labelname {{sync_id}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Clustersync extends pulumi.CustomResource {
/**
* Get an existing Clustersync 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 Clustersync(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Clustersync. 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'] === Clustersync.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["downIntfsBeforeSessSyncs"] = state ? state.downIntfsBeforeSessSyncs : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["hbInterval"] = state ? state.hbInterval : undefined;
resourceInputs["hbLostThreshold"] = state ? state.hbLostThreshold : undefined;
resourceInputs["ikeHeartbeatInterval"] = state ? state.ikeHeartbeatInterval : undefined;
resourceInputs["ikeMonitor"] = state ? state.ikeMonitor : undefined;
resourceInputs["ikeMonitorInterval"] = state ? state.ikeMonitorInterval : undefined;
resourceInputs["ipsecTunnelSync"] = state ? state.ipsecTunnelSync : undefined;
resourceInputs["peerip"] = state ? state.peerip : undefined;
resourceInputs["peervd"] = state ? state.peervd : undefined;
resourceInputs["secondaryAddIpsecRoutes"] = state ? state.secondaryAddIpsecRoutes : undefined;
resourceInputs["sessionSyncFilter"] = state ? state.sessionSyncFilter : undefined;
resourceInputs["slaveAddIkeRoutes"] = state ? state.slaveAddIkeRoutes : undefined;
resourceInputs["syncId"] = state ? state.syncId : undefined;
resourceInputs["syncvds"] = state ? state.syncvds : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["downIntfsBeforeSessSyncs"] = args ? args.downIntfsBeforeSessSyncs : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["hbInterval"] = args ? args.hbInterval : undefined;
resourceInputs["hbLostThreshold"] = args ? args.hbLostThreshold : undefined;
resourceInputs["ikeHeartbeatInterval"] = args ? args.ikeHeartbeatInterval : undefined;
resourceInputs["ikeMonitor"] = args ? args.ikeMonitor : undefined;
resourceInputs["ikeMonitorInterval"] = args ? args.ikeMonitorInterval : undefined;
resourceInputs["ipsecTunnelSync"] = args ? args.ipsecTunnelSync : undefined;
resourceInputs["peerip"] = args ? args.peerip : undefined;
resourceInputs["peervd"] = args ? args.peervd : undefined;
resourceInputs["secondaryAddIpsecRoutes"] = args ? args.secondaryAddIpsecRoutes : undefined;
resourceInputs["sessionSyncFilter"] = args ? args.sessionSyncFilter : undefined;
resourceInputs["slaveAddIkeRoutes"] = args ? args.slaveAddIkeRoutes : undefined;
resourceInputs["syncId"] = args ? args.syncId : undefined;
resourceInputs["syncvds"] = args ? args.syncvds : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Clustersync.__pulumiType, name, resourceInputs, opts);
}
}
exports.Clustersync = Clustersync;
/** @internal */
Clustersync.__pulumiType = 'fortios:system/clustersync:Clustersync';
//# sourceMappingURL=clustersync.js.map
;