@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
159 lines • 7.93 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.Mobiletunnel = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure Mobile tunnels, an implementation of Network Mobility (NEMO) extensions for Mobile IPv4 RFC5177.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Mobiletunnel("trname", {
* hashAlgorithm: "hmac-md5",
* homeAddress: "0.0.0.0",
* homeAgent: "1.1.1.1",
* lifetime: 65535,
* nMhaeKey: "'ENC M2wyM3DcnUhqgich7vsLk5oVuPAI9LTkcFNt0c3jI1ujC6w1XBot7gsRAf2S8X5dagfUnJGhZ5LrQxw21e4y8oXuCOLp8MmaRZbCkxYCAl1wm/wVY3aNzVk2+jE='",
* nMhaeKeyType: "ascii",
* nMhaeSpi: 256,
* regInterval: 5,
* regRetry: 3,
* renewInterval: 60,
* roamingInterface: "port3",
* status: "disable",
* tunnelMode: "gre",
* });
* ```
*
* ## Import
*
* System MobileTunnel can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/mobiletunnel:Mobiletunnel labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/mobiletunnel:Mobiletunnel labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Mobiletunnel extends pulumi.CustomResource {
/**
* Get an existing Mobiletunnel 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 Mobiletunnel(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Mobiletunnel. 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'] === Mobiletunnel.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["hashAlgorithm"] = state ? state.hashAlgorithm : undefined;
resourceInputs["homeAddress"] = state ? state.homeAddress : undefined;
resourceInputs["homeAgent"] = state ? state.homeAgent : undefined;
resourceInputs["lifetime"] = state ? state.lifetime : undefined;
resourceInputs["nMhaeKey"] = state ? state.nMhaeKey : undefined;
resourceInputs["nMhaeKeyType"] = state ? state.nMhaeKeyType : undefined;
resourceInputs["nMhaeSpi"] = state ? state.nMhaeSpi : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["networks"] = state ? state.networks : undefined;
resourceInputs["regInterval"] = state ? state.regInterval : undefined;
resourceInputs["regRetry"] = state ? state.regRetry : undefined;
resourceInputs["renewInterval"] = state ? state.renewInterval : undefined;
resourceInputs["roamingInterface"] = state ? state.roamingInterface : undefined;
resourceInputs["status"] = state ? state.status : undefined;
resourceInputs["tunnelMode"] = state ? state.tunnelMode : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
if ((!args || args.hashAlgorithm === undefined) && !opts.urn) {
throw new Error("Missing required property 'hashAlgorithm'");
}
if ((!args || args.homeAgent === undefined) && !opts.urn) {
throw new Error("Missing required property 'homeAgent'");
}
if ((!args || args.lifetime === undefined) && !opts.urn) {
throw new Error("Missing required property 'lifetime'");
}
if ((!args || args.nMhaeKeyType === undefined) && !opts.urn) {
throw new Error("Missing required property 'nMhaeKeyType'");
}
if ((!args || args.nMhaeSpi === undefined) && !opts.urn) {
throw new Error("Missing required property 'nMhaeSpi'");
}
if ((!args || args.regInterval === undefined) && !opts.urn) {
throw new Error("Missing required property 'regInterval'");
}
if ((!args || args.regRetry === undefined) && !opts.urn) {
throw new Error("Missing required property 'regRetry'");
}
if ((!args || args.renewInterval === undefined) && !opts.urn) {
throw new Error("Missing required property 'renewInterval'");
}
if ((!args || args.roamingInterface === undefined) && !opts.urn) {
throw new Error("Missing required property 'roamingInterface'");
}
if ((!args || args.tunnelMode === undefined) && !opts.urn) {
throw new Error("Missing required property 'tunnelMode'");
}
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["hashAlgorithm"] = args ? args.hashAlgorithm : undefined;
resourceInputs["homeAddress"] = args ? args.homeAddress : undefined;
resourceInputs["homeAgent"] = args ? args.homeAgent : undefined;
resourceInputs["lifetime"] = args ? args.lifetime : undefined;
resourceInputs["nMhaeKey"] = (args === null || args === void 0 ? void 0 : args.nMhaeKey) ? pulumi.secret(args.nMhaeKey) : undefined;
resourceInputs["nMhaeKeyType"] = args ? args.nMhaeKeyType : undefined;
resourceInputs["nMhaeSpi"] = args ? args.nMhaeSpi : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["networks"] = args ? args.networks : undefined;
resourceInputs["regInterval"] = args ? args.regInterval : undefined;
resourceInputs["regRetry"] = args ? args.regRetry : undefined;
resourceInputs["renewInterval"] = args ? args.renewInterval : undefined;
resourceInputs["roamingInterface"] = args ? args.roamingInterface : undefined;
resourceInputs["status"] = args ? args.status : undefined;
resourceInputs["tunnelMode"] = args ? args.tunnelMode : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["nMhaeKey"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Mobiletunnel.__pulumiType, name, resourceInputs, opts);
}
}
exports.Mobiletunnel = Mobiletunnel;
/** @internal */
Mobiletunnel.__pulumiType = 'fortios:system/mobiletunnel:Mobiletunnel';
//# sourceMappingURL=mobiletunnel.js.map
;