@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
120 lines • 6.48 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.Ike = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure IKE global attributes. Applies to FortiOS Version `>= 7.0.1`.
*
* ## Import
*
* System Ike can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/ike:Ike labelname SystemIke
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/ike:Ike labelname SystemIke
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Ike extends pulumi.CustomResource {
/**
* Get an existing Ike 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 Ike(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Ike. 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'] === Ike.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["dhGroup1"] = state ? state.dhGroup1 : undefined;
resourceInputs["dhGroup14"] = state ? state.dhGroup14 : undefined;
resourceInputs["dhGroup15"] = state ? state.dhGroup15 : undefined;
resourceInputs["dhGroup16"] = state ? state.dhGroup16 : undefined;
resourceInputs["dhGroup17"] = state ? state.dhGroup17 : undefined;
resourceInputs["dhGroup18"] = state ? state.dhGroup18 : undefined;
resourceInputs["dhGroup19"] = state ? state.dhGroup19 : undefined;
resourceInputs["dhGroup2"] = state ? state.dhGroup2 : undefined;
resourceInputs["dhGroup20"] = state ? state.dhGroup20 : undefined;
resourceInputs["dhGroup21"] = state ? state.dhGroup21 : undefined;
resourceInputs["dhGroup27"] = state ? state.dhGroup27 : undefined;
resourceInputs["dhGroup28"] = state ? state.dhGroup28 : undefined;
resourceInputs["dhGroup29"] = state ? state.dhGroup29 : undefined;
resourceInputs["dhGroup30"] = state ? state.dhGroup30 : undefined;
resourceInputs["dhGroup31"] = state ? state.dhGroup31 : undefined;
resourceInputs["dhGroup32"] = state ? state.dhGroup32 : undefined;
resourceInputs["dhGroup5"] = state ? state.dhGroup5 : undefined;
resourceInputs["dhKeypairCache"] = state ? state.dhKeypairCache : undefined;
resourceInputs["dhKeypairCount"] = state ? state.dhKeypairCount : undefined;
resourceInputs["dhKeypairThrottle"] = state ? state.dhKeypairThrottle : undefined;
resourceInputs["dhMode"] = state ? state.dhMode : undefined;
resourceInputs["dhMultiprocess"] = state ? state.dhMultiprocess : undefined;
resourceInputs["dhWorkerCount"] = state ? state.dhWorkerCount : undefined;
resourceInputs["embryonicLimit"] = state ? state.embryonicLimit : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["dhGroup1"] = args ? args.dhGroup1 : undefined;
resourceInputs["dhGroup14"] = args ? args.dhGroup14 : undefined;
resourceInputs["dhGroup15"] = args ? args.dhGroup15 : undefined;
resourceInputs["dhGroup16"] = args ? args.dhGroup16 : undefined;
resourceInputs["dhGroup17"] = args ? args.dhGroup17 : undefined;
resourceInputs["dhGroup18"] = args ? args.dhGroup18 : undefined;
resourceInputs["dhGroup19"] = args ? args.dhGroup19 : undefined;
resourceInputs["dhGroup2"] = args ? args.dhGroup2 : undefined;
resourceInputs["dhGroup20"] = args ? args.dhGroup20 : undefined;
resourceInputs["dhGroup21"] = args ? args.dhGroup21 : undefined;
resourceInputs["dhGroup27"] = args ? args.dhGroup27 : undefined;
resourceInputs["dhGroup28"] = args ? args.dhGroup28 : undefined;
resourceInputs["dhGroup29"] = args ? args.dhGroup29 : undefined;
resourceInputs["dhGroup30"] = args ? args.dhGroup30 : undefined;
resourceInputs["dhGroup31"] = args ? args.dhGroup31 : undefined;
resourceInputs["dhGroup32"] = args ? args.dhGroup32 : undefined;
resourceInputs["dhGroup5"] = args ? args.dhGroup5 : undefined;
resourceInputs["dhKeypairCache"] = args ? args.dhKeypairCache : undefined;
resourceInputs["dhKeypairCount"] = args ? args.dhKeypairCount : undefined;
resourceInputs["dhKeypairThrottle"] = args ? args.dhKeypairThrottle : undefined;
resourceInputs["dhMode"] = args ? args.dhMode : undefined;
resourceInputs["dhMultiprocess"] = args ? args.dhMultiprocess : undefined;
resourceInputs["dhWorkerCount"] = args ? args.dhWorkerCount : undefined;
resourceInputs["embryonicLimit"] = args ? args.embryonicLimit : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Ike.__pulumiType, name, resourceInputs, opts);
}
}
exports.Ike = Ike;
/** @internal */
Ike.__pulumiType = 'fortios:system/ike:Ike';
//# sourceMappingURL=ike.js.map
;