UNPKG

@pulumiverse/fortios

Version:

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

145 lines 7.16 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.Policy6 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure IPv6 routing policies. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.router.Policy6("trname", { * dst: "::/0", * endPort: 65535, * gateway: "::", * inputDevice: "port1", * outputDevice: "port3", * protocol: 33, * seqNum: 1, * src: "2001:db8:85a3::8a2e:370:7334/128", * startPort: 1, * status: "enable", * tos: "0x00", * tosMask: "0x00", * }); * ``` * * ## Import * * Router Policy6 can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:router/policy6:Policy6 labelname {{seq_num}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:router/policy6:Policy6 labelname {{seq_num}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Policy6 extends pulumi.CustomResource { /** * Get an existing Policy6 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 Policy6(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Policy6. 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'] === Policy6.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["action"] = state ? state.action : undefined; resourceInputs["comments"] = state ? state.comments : undefined; resourceInputs["dst"] = state ? state.dst : undefined; resourceInputs["dstNegate"] = state ? state.dstNegate : undefined; resourceInputs["dstaddrs"] = state ? state.dstaddrs : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["endPort"] = state ? state.endPort : undefined; resourceInputs["endSourcePort"] = state ? state.endSourcePort : undefined; resourceInputs["gateway"] = state ? state.gateway : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["inputDevice"] = state ? state.inputDevice : undefined; resourceInputs["inputDeviceNegate"] = state ? state.inputDeviceNegate : undefined; resourceInputs["internetServiceCustoms"] = state ? state.internetServiceCustoms : undefined; resourceInputs["internetServiceIds"] = state ? state.internetServiceIds : undefined; resourceInputs["outputDevice"] = state ? state.outputDevice : undefined; resourceInputs["protocol"] = state ? state.protocol : undefined; resourceInputs["seqNum"] = state ? state.seqNum : undefined; resourceInputs["src"] = state ? state.src : undefined; resourceInputs["srcNegate"] = state ? state.srcNegate : undefined; resourceInputs["srcaddrs"] = state ? state.srcaddrs : undefined; resourceInputs["startPort"] = state ? state.startPort : undefined; resourceInputs["startSourcePort"] = state ? state.startSourcePort : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["tos"] = state ? state.tos : undefined; resourceInputs["tosMask"] = state ? state.tosMask : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; if ((!args || args.inputDevice === undefined) && !opts.urn) { throw new Error("Missing required property 'inputDevice'"); } resourceInputs["action"] = args ? args.action : undefined; resourceInputs["comments"] = args ? args.comments : undefined; resourceInputs["dst"] = args ? args.dst : undefined; resourceInputs["dstNegate"] = args ? args.dstNegate : undefined; resourceInputs["dstaddrs"] = args ? args.dstaddrs : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["endPort"] = args ? args.endPort : undefined; resourceInputs["endSourcePort"] = args ? args.endSourcePort : undefined; resourceInputs["gateway"] = args ? args.gateway : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["inputDevice"] = args ? args.inputDevice : undefined; resourceInputs["inputDeviceNegate"] = args ? args.inputDeviceNegate : undefined; resourceInputs["internetServiceCustoms"] = args ? args.internetServiceCustoms : undefined; resourceInputs["internetServiceIds"] = args ? args.internetServiceIds : undefined; resourceInputs["outputDevice"] = args ? args.outputDevice : undefined; resourceInputs["protocol"] = args ? args.protocol : undefined; resourceInputs["seqNum"] = args ? args.seqNum : undefined; resourceInputs["src"] = args ? args.src : undefined; resourceInputs["srcNegate"] = args ? args.srcNegate : undefined; resourceInputs["srcaddrs"] = args ? args.srcaddrs : undefined; resourceInputs["startPort"] = args ? args.startPort : undefined; resourceInputs["startSourcePort"] = args ? args.startSourcePort : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["tos"] = args ? args.tos : undefined; resourceInputs["tosMask"] = args ? args.tosMask : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Policy6.__pulumiType, name, resourceInputs, opts); } } exports.Policy6 = Policy6; /** @internal */ Policy6.__pulumiType = 'fortios:router/policy6:Policy6'; //# sourceMappingURL=policy6.js.map