UNPKG

@pulumiverse/fortios

Version:

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

103 lines 4.23 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.ObjectIppool = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a resource to configure IPv4 IP address pools of FortiOS. * * !> **Warning:** The resource will be deprecated and replaced by new resource `fortios.firewall.Ippool`, we recommend that you use the new resource. * * ## Example Usage * * ### Overload Ippool * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const s1 = new fortios.firewall.ObjectIppool("s1", { * arpReply: "enable", * comments: "fdsaf", * endip: "22.0.0.0", * startip: "11.0.0.0", * type: "overload", * }); * ``` * * ### One-To-One Ippool * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const s2 = new fortios.firewall.ObjectIppool("s2", { * arpReply: "enable", * comments: "fdsaf", * endip: "222.0.0.0", * startip: "121.0.0.0", * type: "one-to-one", * }); * ``` */ class ObjectIppool extends pulumi.CustomResource { /** * Get an existing ObjectIppool 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 ObjectIppool(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ObjectIppool. 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'] === ObjectIppool.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arpReply"] = state ? state.arpReply : undefined; resourceInputs["comments"] = state ? state.comments : undefined; resourceInputs["endip"] = state ? state.endip : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["startip"] = state ? state.startip : undefined; resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState; if ((!args || args.endip === undefined) && !opts.urn) { throw new Error("Missing required property 'endip'"); } if ((!args || args.startip === undefined) && !opts.urn) { throw new Error("Missing required property 'startip'"); } if ((!args || args.type === undefined) && !opts.urn) { throw new Error("Missing required property 'type'"); } resourceInputs["arpReply"] = args ? args.arpReply : undefined; resourceInputs["comments"] = args ? args.comments : undefined; resourceInputs["endip"] = args ? args.endip : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["startip"] = args ? args.startip : undefined; resourceInputs["type"] = args ? args.type : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ObjectIppool.__pulumiType, name, resourceInputs, opts); } } exports.ObjectIppool = ObjectIppool; /** @internal */ ObjectIppool.__pulumiType = 'fortios:firewall/objectIppool:ObjectIppool'; //# sourceMappingURL=objectIppool.js.map