@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
104 lines • 4.24 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.Ipiptunnel = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure IP in IP Tunneling.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Ipiptunnel("trname", {
* "interface": "port3",
* localGw: "1.1.1.1",
* remoteGw: "2.2.2.2",
* });
* ```
*
* ## Import
*
* System IpipTunnel can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/ipiptunnel:Ipiptunnel labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/ipiptunnel:Ipiptunnel labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Ipiptunnel extends pulumi.CustomResource {
/**
* Get an existing Ipiptunnel 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 Ipiptunnel(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Ipiptunnel. 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'] === Ipiptunnel.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["autoAsicOffload"] = state ? state.autoAsicOffload : undefined;
resourceInputs["interface"] = state ? state.interface : undefined;
resourceInputs["localGw"] = state ? state.localGw : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["remoteGw"] = state ? state.remoteGw : undefined;
resourceInputs["useSdwan"] = state ? state.useSdwan : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
if ((!args || args.interface === undefined) && !opts.urn) {
throw new Error("Missing required property 'interface'");
}
if ((!args || args.localGw === undefined) && !opts.urn) {
throw new Error("Missing required property 'localGw'");
}
if ((!args || args.remoteGw === undefined) && !opts.urn) {
throw new Error("Missing required property 'remoteGw'");
}
resourceInputs["autoAsicOffload"] = args ? args.autoAsicOffload : undefined;
resourceInputs["interface"] = args ? args.interface : undefined;
resourceInputs["localGw"] = args ? args.localGw : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["remoteGw"] = args ? args.remoteGw : undefined;
resourceInputs["useSdwan"] = args ? args.useSdwan : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Ipiptunnel.__pulumiType, name, resourceInputs, opts);
}
}
exports.Ipiptunnel = Ipiptunnel;
/** @internal */
Ipiptunnel.__pulumiType = 'fortios:system/ipiptunnel:Ipiptunnel';
//# sourceMappingURL=ipiptunnel.js.map
;