UNPKG

@pulumiverse/fortios

Version:

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

177 lines 9.63 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.Interfacepolicy6 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure IPv6 interface policies. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.firewall.Interfacepolicy6("trname", { * addressType: "ipv6", * applicationListStatus: "disable", * avProfileStatus: "disable", * dlpSensorStatus: "disable", * dsri: "disable", * dstaddr6s: [{ * name: "all", * }], * "interface": "port4", * ipsSensorStatus: "disable", * logtraffic: "all", * policyid: 1, * scanBotnetConnections: "block", * service6s: [{ * name: "ALL", * }], * spamfilterProfileStatus: "disable", * srcaddr6s: [{ * name: "all", * }], * status: "enable", * webfilterProfileStatus: "disable", * }); * ``` * * ## Import * * Firewall InterfacePolicy6 can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:firewall/interfacepolicy6:Interfacepolicy6 labelname {{policyid}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:firewall/interfacepolicy6:Interfacepolicy6 labelname {{policyid}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Interfacepolicy6 extends pulumi.CustomResource { /** * Get an existing Interfacepolicy6 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 Interfacepolicy6(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Interfacepolicy6. 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'] === Interfacepolicy6.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["addressType"] = state ? state.addressType : undefined; resourceInputs["applicationList"] = state ? state.applicationList : undefined; resourceInputs["applicationListStatus"] = state ? state.applicationListStatus : undefined; resourceInputs["avProfile"] = state ? state.avProfile : undefined; resourceInputs["avProfileStatus"] = state ? state.avProfileStatus : undefined; resourceInputs["casbProfile"] = state ? state.casbProfile : undefined; resourceInputs["casbProfileStatus"] = state ? state.casbProfileStatus : undefined; resourceInputs["comments"] = state ? state.comments : undefined; resourceInputs["dlpProfile"] = state ? state.dlpProfile : undefined; resourceInputs["dlpProfileStatus"] = state ? state.dlpProfileStatus : undefined; resourceInputs["dlpSensor"] = state ? state.dlpSensor : undefined; resourceInputs["dlpSensorStatus"] = state ? state.dlpSensorStatus : undefined; resourceInputs["dsri"] = state ? state.dsri : undefined; resourceInputs["dstaddr6s"] = state ? state.dstaddr6s : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["emailfilterProfile"] = state ? state.emailfilterProfile : undefined; resourceInputs["emailfilterProfileStatus"] = state ? state.emailfilterProfileStatus : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["interface"] = state ? state.interface : undefined; resourceInputs["ipsSensor"] = state ? state.ipsSensor : undefined; resourceInputs["ipsSensorStatus"] = state ? state.ipsSensorStatus : undefined; resourceInputs["label"] = state ? state.label : undefined; resourceInputs["logtraffic"] = state ? state.logtraffic : undefined; resourceInputs["policyid"] = state ? state.policyid : undefined; resourceInputs["scanBotnetConnections"] = state ? state.scanBotnetConnections : undefined; resourceInputs["service6s"] = state ? state.service6s : undefined; resourceInputs["spamfilterProfile"] = state ? state.spamfilterProfile : undefined; resourceInputs["spamfilterProfileStatus"] = state ? state.spamfilterProfileStatus : undefined; resourceInputs["srcaddr6s"] = state ? state.srcaddr6s : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["uuid"] = state ? state.uuid : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["webfilterProfile"] = state ? state.webfilterProfile : undefined; resourceInputs["webfilterProfileStatus"] = state ? state.webfilterProfileStatus : undefined; } else { const args = argsOrState; if ((!args || args.dstaddr6s === undefined) && !opts.urn) { throw new Error("Missing required property 'dstaddr6s'"); } if ((!args || args.interface === undefined) && !opts.urn) { throw new Error("Missing required property 'interface'"); } if ((!args || args.srcaddr6s === undefined) && !opts.urn) { throw new Error("Missing required property 'srcaddr6s'"); } resourceInputs["addressType"] = args ? args.addressType : undefined; resourceInputs["applicationList"] = args ? args.applicationList : undefined; resourceInputs["applicationListStatus"] = args ? args.applicationListStatus : undefined; resourceInputs["avProfile"] = args ? args.avProfile : undefined; resourceInputs["avProfileStatus"] = args ? args.avProfileStatus : undefined; resourceInputs["casbProfile"] = args ? args.casbProfile : undefined; resourceInputs["casbProfileStatus"] = args ? args.casbProfileStatus : undefined; resourceInputs["comments"] = args ? args.comments : undefined; resourceInputs["dlpProfile"] = args ? args.dlpProfile : undefined; resourceInputs["dlpProfileStatus"] = args ? args.dlpProfileStatus : undefined; resourceInputs["dlpSensor"] = args ? args.dlpSensor : undefined; resourceInputs["dlpSensorStatus"] = args ? args.dlpSensorStatus : undefined; resourceInputs["dsri"] = args ? args.dsri : undefined; resourceInputs["dstaddr6s"] = args ? args.dstaddr6s : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["emailfilterProfile"] = args ? args.emailfilterProfile : undefined; resourceInputs["emailfilterProfileStatus"] = args ? args.emailfilterProfileStatus : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["interface"] = args ? args.interface : undefined; resourceInputs["ipsSensor"] = args ? args.ipsSensor : undefined; resourceInputs["ipsSensorStatus"] = args ? args.ipsSensorStatus : undefined; resourceInputs["label"] = args ? args.label : undefined; resourceInputs["logtraffic"] = args ? args.logtraffic : undefined; resourceInputs["policyid"] = args ? args.policyid : undefined; resourceInputs["scanBotnetConnections"] = args ? args.scanBotnetConnections : undefined; resourceInputs["service6s"] = args ? args.service6s : undefined; resourceInputs["spamfilterProfile"] = args ? args.spamfilterProfile : undefined; resourceInputs["spamfilterProfileStatus"] = args ? args.spamfilterProfileStatus : undefined; resourceInputs["srcaddr6s"] = args ? args.srcaddr6s : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["uuid"] = args ? args.uuid : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["webfilterProfile"] = args ? args.webfilterProfile : undefined; resourceInputs["webfilterProfileStatus"] = args ? args.webfilterProfileStatus : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Interfacepolicy6.__pulumiType, name, resourceInputs, opts); } } exports.Interfacepolicy6 = Interfacepolicy6; /** @internal */ Interfacepolicy6.__pulumiType = 'fortios:firewall/interfacepolicy6:Interfacepolicy6'; //# sourceMappingURL=interfacepolicy6.js.map