UNPKG

@pulumiverse/fortios

Version:

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

149 lines 7.42 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.Address6 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure IPv6 firewall addresses. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.firewall.Address6("trname", { * cacheTtl: 0, * color: 0, * endIp: "::", * host: "fdff:ffff::", * hostType: "any", * ip6: "fdff:ffff::/120", * startIp: "fdff:ffff::", * type: "ipprefix", * visibility: "enable", * }); * ``` * * ## Import * * Firewall Address6 can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:firewall/address6:Address6 labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:firewall/address6:Address6 labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Address6 extends pulumi.CustomResource { /** * Get an existing Address6 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 Address6(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Address6. 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'] === Address6.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["cacheTtl"] = state ? state.cacheTtl : undefined; resourceInputs["color"] = state ? state.color : undefined; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["country"] = state ? state.country : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["endIp"] = state ? state.endIp : undefined; resourceInputs["endMac"] = state ? state.endMac : undefined; resourceInputs["epgName"] = state ? state.epgName : undefined; resourceInputs["fabricObject"] = state ? state.fabricObject : undefined; resourceInputs["fqdn"] = state ? state.fqdn : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["host"] = state ? state.host : undefined; resourceInputs["hostType"] = state ? state.hostType : undefined; resourceInputs["ip6"] = state ? state.ip6 : undefined; resourceInputs["lists"] = state ? state.lists : undefined; resourceInputs["macaddrs"] = state ? state.macaddrs : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["objId"] = state ? state.objId : undefined; resourceInputs["routeTag"] = state ? state.routeTag : undefined; resourceInputs["sdn"] = state ? state.sdn : undefined; resourceInputs["sdnTag"] = state ? state.sdnTag : undefined; resourceInputs["startIp"] = state ? state.startIp : undefined; resourceInputs["startMac"] = state ? state.startMac : undefined; resourceInputs["subnetSegments"] = state ? state.subnetSegments : undefined; resourceInputs["taggings"] = state ? state.taggings : undefined; resourceInputs["template"] = state ? state.template : undefined; resourceInputs["tenant"] = state ? state.tenant : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["uuid"] = state ? state.uuid : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["visibility"] = state ? state.visibility : undefined; } else { const args = argsOrState; resourceInputs["cacheTtl"] = args ? args.cacheTtl : undefined; resourceInputs["color"] = args ? args.color : undefined; resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["country"] = args ? args.country : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["endIp"] = args ? args.endIp : undefined; resourceInputs["endMac"] = args ? args.endMac : undefined; resourceInputs["epgName"] = args ? args.epgName : undefined; resourceInputs["fabricObject"] = args ? args.fabricObject : undefined; resourceInputs["fqdn"] = args ? args.fqdn : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["host"] = args ? args.host : undefined; resourceInputs["hostType"] = args ? args.hostType : undefined; resourceInputs["ip6"] = args ? args.ip6 : undefined; resourceInputs["lists"] = args ? args.lists : undefined; resourceInputs["macaddrs"] = args ? args.macaddrs : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["objId"] = args ? args.objId : undefined; resourceInputs["routeTag"] = args ? args.routeTag : undefined; resourceInputs["sdn"] = args ? args.sdn : undefined; resourceInputs["sdnTag"] = args ? args.sdnTag : undefined; resourceInputs["startIp"] = args ? args.startIp : undefined; resourceInputs["startMac"] = args ? args.startMac : undefined; resourceInputs["subnetSegments"] = args ? args.subnetSegments : undefined; resourceInputs["taggings"] = args ? args.taggings : undefined; resourceInputs["template"] = args ? args.template : undefined; resourceInputs["tenant"] = args ? args.tenant : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["uuid"] = args ? args.uuid : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["visibility"] = args ? args.visibility : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Address6.__pulumiType, name, resourceInputs, opts); } } exports.Address6 = Address6; /** @internal */ Address6.__pulumiType = 'fortios:firewall/address6:Address6'; //# sourceMappingURL=address6.js.map