UNPKG

@pulumiverse/fortios

Version:

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

92 lines 4.77 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.Standalonecluster = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure FortiGate Session Life Support Protocol (FGSP) cluster attributes. Applies to FortiOS Version `>= 6.4.0`. * * ## Import * * System StandaloneCluster can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:system/standalonecluster:Standalonecluster labelname SystemStandaloneCluster * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:system/standalonecluster:Standalonecluster labelname SystemStandaloneCluster * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Standalonecluster extends pulumi.CustomResource { /** * Get an existing Standalonecluster 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 Standalonecluster(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Standalonecluster. 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'] === Standalonecluster.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["asymmetricTrafficControl"] = state ? state.asymmetricTrafficControl : undefined; resourceInputs["clusterPeers"] = state ? state.clusterPeers : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["encryption"] = state ? state.encryption : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["groupMemberId"] = state ? state.groupMemberId : undefined; resourceInputs["layer2Connection"] = state ? state.layer2Connection : undefined; resourceInputs["psksecret"] = state ? state.psksecret : undefined; resourceInputs["sessionSyncDev"] = state ? state.sessionSyncDev : undefined; resourceInputs["standaloneGroupId"] = state ? state.standaloneGroupId : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["asymmetricTrafficControl"] = args ? args.asymmetricTrafficControl : undefined; resourceInputs["clusterPeers"] = args ? args.clusterPeers : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["encryption"] = args ? args.encryption : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["groupMemberId"] = args ? args.groupMemberId : undefined; resourceInputs["layer2Connection"] = args ? args.layer2Connection : undefined; resourceInputs["psksecret"] = (args === null || args === void 0 ? void 0 : args.psksecret) ? pulumi.secret(args.psksecret) : undefined; resourceInputs["sessionSyncDev"] = args ? args.sessionSyncDev : undefined; resourceInputs["standaloneGroupId"] = args ? args.standaloneGroupId : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["psksecret"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Standalonecluster.__pulumiType, name, resourceInputs, opts); } } exports.Standalonecluster = Standalonecluster; /** @internal */ Standalonecluster.__pulumiType = 'fortios:system/standalonecluster:Standalonecluster'; //# sourceMappingURL=standalonecluster.js.map