@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
329 lines • 20.2 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.Policy6 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure IPv6 policies. Applies to FortiOS Version `<= 6.4.0`.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.firewall.Policy6("trname", {
* action: "deny",
* diffservForward: "disable",
* diffservReverse: "disable",
* diffservcodeForward: "000000",
* diffservcodeRev: "000000",
* dsri: "disable",
* dstaddrs: [{
* name: "all",
* }],
* dstaddrNegate: "disable",
* dstintfs: [{
* name: "port3",
* }],
* firewallSessionDirty: "check-all",
* fixedport: "disable",
* inbound: "disable",
* ippool: "disable",
* logtraffic: "disable",
* logtrafficStart: "disable",
* nat: "disable",
* natinbound: "disable",
* natoutbound: "disable",
* outbound: "disable",
* policyid: 1,
* profileProtocolOptions: "default",
* profileType: "single",
* rsso: "disable",
* schedule: "always",
* sendDenyPacket: "disable",
* services: [{
* name: "ALL",
* }],
* serviceNegate: "disable",
* srcaddrs: [{
* name: "all",
* }],
* srcaddrNegate: "disable",
* srcintfs: [{
* name: "port4",
* }],
* sslMirror: "disable",
* status: "enable",
* tcpMssReceiver: 0,
* tcpMssSender: 0,
* tcpSessionWithoutSyn: "disable",
* timeoutSendRst: "disable",
* tos: "0x00",
* tosMask: "0x00",
* tosNegate: "disable",
* utmStatus: "disable",
* });
* ```
*
* ## Import
*
* Firewall Policy6 can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:firewall/policy6:Policy6 labelname {{policyid}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:firewall/policy6:Policy6 labelname {{policyid}}
* ```
*
* $ 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["antiReplay"] = state ? state.antiReplay : undefined;
resourceInputs["appCategories"] = state ? state.appCategories : undefined;
resourceInputs["appGroups"] = state ? state.appGroups : undefined;
resourceInputs["applicationList"] = state ? state.applicationList : undefined;
resourceInputs["applications"] = state ? state.applications : undefined;
resourceInputs["autoAsicOffload"] = state ? state.autoAsicOffload : undefined;
resourceInputs["avProfile"] = state ? state.avProfile : undefined;
resourceInputs["cifsProfile"] = state ? state.cifsProfile : undefined;
resourceInputs["comments"] = state ? state.comments : undefined;
resourceInputs["customLogFields"] = state ? state.customLogFields : undefined;
resourceInputs["decryptedTrafficMirror"] = state ? state.decryptedTrafficMirror : undefined;
resourceInputs["devices"] = state ? state.devices : undefined;
resourceInputs["diffservForward"] = state ? state.diffservForward : undefined;
resourceInputs["diffservReverse"] = state ? state.diffservReverse : undefined;
resourceInputs["diffservcodeForward"] = state ? state.diffservcodeForward : undefined;
resourceInputs["diffservcodeRev"] = state ? state.diffservcodeRev : undefined;
resourceInputs["dlpSensor"] = state ? state.dlpSensor : undefined;
resourceInputs["dnsfilterProfile"] = state ? state.dnsfilterProfile : undefined;
resourceInputs["dsri"] = state ? state.dsri : undefined;
resourceInputs["dstaddrNegate"] = state ? state.dstaddrNegate : undefined;
resourceInputs["dstaddrs"] = state ? state.dstaddrs : undefined;
resourceInputs["dstintfs"] = state ? state.dstintfs : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["emailfilterProfile"] = state ? state.emailfilterProfile : undefined;
resourceInputs["firewallSessionDirty"] = state ? state.firewallSessionDirty : undefined;
resourceInputs["fixedport"] = state ? state.fixedport : undefined;
resourceInputs["fssoGroups"] = state ? state.fssoGroups : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["globalLabel"] = state ? state.globalLabel : undefined;
resourceInputs["groups"] = state ? state.groups : undefined;
resourceInputs["httpPolicyRedirect"] = state ? state.httpPolicyRedirect : undefined;
resourceInputs["icapProfile"] = state ? state.icapProfile : undefined;
resourceInputs["inbound"] = state ? state.inbound : undefined;
resourceInputs["inspectionMode"] = state ? state.inspectionMode : undefined;
resourceInputs["ippool"] = state ? state.ippool : undefined;
resourceInputs["ipsSensor"] = state ? state.ipsSensor : undefined;
resourceInputs["label"] = state ? state.label : undefined;
resourceInputs["logtraffic"] = state ? state.logtraffic : undefined;
resourceInputs["logtrafficStart"] = state ? state.logtrafficStart : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["nat"] = state ? state.nat : undefined;
resourceInputs["natinbound"] = state ? state.natinbound : undefined;
resourceInputs["natoutbound"] = state ? state.natoutbound : undefined;
resourceInputs["outbound"] = state ? state.outbound : undefined;
resourceInputs["perIpShaper"] = state ? state.perIpShaper : undefined;
resourceInputs["policyid"] = state ? state.policyid : undefined;
resourceInputs["poolnames"] = state ? state.poolnames : undefined;
resourceInputs["profileGroup"] = state ? state.profileGroup : undefined;
resourceInputs["profileProtocolOptions"] = state ? state.profileProtocolOptions : undefined;
resourceInputs["profileType"] = state ? state.profileType : undefined;
resourceInputs["replacemsgOverrideGroup"] = state ? state.replacemsgOverrideGroup : undefined;
resourceInputs["rsso"] = state ? state.rsso : undefined;
resourceInputs["schedule"] = state ? state.schedule : undefined;
resourceInputs["sendDenyPacket"] = state ? state.sendDenyPacket : undefined;
resourceInputs["serviceNegate"] = state ? state.serviceNegate : undefined;
resourceInputs["services"] = state ? state.services : undefined;
resourceInputs["sessionTtl"] = state ? state.sessionTtl : undefined;
resourceInputs["spamfilterProfile"] = state ? state.spamfilterProfile : undefined;
resourceInputs["srcaddrNegate"] = state ? state.srcaddrNegate : undefined;
resourceInputs["srcaddrs"] = state ? state.srcaddrs : undefined;
resourceInputs["srcintfs"] = state ? state.srcintfs : undefined;
resourceInputs["sshFilterProfile"] = state ? state.sshFilterProfile : undefined;
resourceInputs["sshPolicyRedirect"] = state ? state.sshPolicyRedirect : undefined;
resourceInputs["sslMirror"] = state ? state.sslMirror : undefined;
resourceInputs["sslMirrorIntfs"] = state ? state.sslMirrorIntfs : undefined;
resourceInputs["sslSshProfile"] = state ? state.sslSshProfile : undefined;
resourceInputs["status"] = state ? state.status : undefined;
resourceInputs["tcpMssReceiver"] = state ? state.tcpMssReceiver : undefined;
resourceInputs["tcpMssSender"] = state ? state.tcpMssSender : undefined;
resourceInputs["tcpSessionWithoutSyn"] = state ? state.tcpSessionWithoutSyn : undefined;
resourceInputs["timeoutSendRst"] = state ? state.timeoutSendRst : undefined;
resourceInputs["tos"] = state ? state.tos : undefined;
resourceInputs["tosMask"] = state ? state.tosMask : undefined;
resourceInputs["tosNegate"] = state ? state.tosNegate : undefined;
resourceInputs["trafficShaper"] = state ? state.trafficShaper : undefined;
resourceInputs["trafficShaperReverse"] = state ? state.trafficShaperReverse : undefined;
resourceInputs["urlCategories"] = state ? state.urlCategories : undefined;
resourceInputs["users"] = state ? state.users : undefined;
resourceInputs["utmStatus"] = state ? state.utmStatus : undefined;
resourceInputs["uuid"] = state ? state.uuid : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
resourceInputs["vlanCosFwd"] = state ? state.vlanCosFwd : undefined;
resourceInputs["vlanCosRev"] = state ? state.vlanCosRev : undefined;
resourceInputs["vlanFilter"] = state ? state.vlanFilter : undefined;
resourceInputs["voipProfile"] = state ? state.voipProfile : undefined;
resourceInputs["vpntunnel"] = state ? state.vpntunnel : undefined;
resourceInputs["wafProfile"] = state ? state.wafProfile : undefined;
resourceInputs["webcache"] = state ? state.webcache : undefined;
resourceInputs["webcacheHttps"] = state ? state.webcacheHttps : undefined;
resourceInputs["webfilterProfile"] = state ? state.webfilterProfile : undefined;
resourceInputs["webproxyForwardServer"] = state ? state.webproxyForwardServer : undefined;
resourceInputs["webproxyProfile"] = state ? state.webproxyProfile : undefined;
}
else {
const args = argsOrState;
if ((!args || args.dstaddrs === undefined) && !opts.urn) {
throw new Error("Missing required property 'dstaddrs'");
}
if ((!args || args.dstintfs === undefined) && !opts.urn) {
throw new Error("Missing required property 'dstintfs'");
}
if ((!args || args.schedule === undefined) && !opts.urn) {
throw new Error("Missing required property 'schedule'");
}
if ((!args || args.srcaddrs === undefined) && !opts.urn) {
throw new Error("Missing required property 'srcaddrs'");
}
if ((!args || args.srcintfs === undefined) && !opts.urn) {
throw new Error("Missing required property 'srcintfs'");
}
resourceInputs["action"] = args ? args.action : undefined;
resourceInputs["antiReplay"] = args ? args.antiReplay : undefined;
resourceInputs["appCategories"] = args ? args.appCategories : undefined;
resourceInputs["appGroups"] = args ? args.appGroups : undefined;
resourceInputs["applicationList"] = args ? args.applicationList : undefined;
resourceInputs["applications"] = args ? args.applications : undefined;
resourceInputs["autoAsicOffload"] = args ? args.autoAsicOffload : undefined;
resourceInputs["avProfile"] = args ? args.avProfile : undefined;
resourceInputs["cifsProfile"] = args ? args.cifsProfile : undefined;
resourceInputs["comments"] = args ? args.comments : undefined;
resourceInputs["customLogFields"] = args ? args.customLogFields : undefined;
resourceInputs["decryptedTrafficMirror"] = args ? args.decryptedTrafficMirror : undefined;
resourceInputs["devices"] = args ? args.devices : undefined;
resourceInputs["diffservForward"] = args ? args.diffservForward : undefined;
resourceInputs["diffservReverse"] = args ? args.diffservReverse : undefined;
resourceInputs["diffservcodeForward"] = args ? args.diffservcodeForward : undefined;
resourceInputs["diffservcodeRev"] = args ? args.diffservcodeRev : undefined;
resourceInputs["dlpSensor"] = args ? args.dlpSensor : undefined;
resourceInputs["dnsfilterProfile"] = args ? args.dnsfilterProfile : undefined;
resourceInputs["dsri"] = args ? args.dsri : undefined;
resourceInputs["dstaddrNegate"] = args ? args.dstaddrNegate : undefined;
resourceInputs["dstaddrs"] = args ? args.dstaddrs : undefined;
resourceInputs["dstintfs"] = args ? args.dstintfs : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["emailfilterProfile"] = args ? args.emailfilterProfile : undefined;
resourceInputs["firewallSessionDirty"] = args ? args.firewallSessionDirty : undefined;
resourceInputs["fixedport"] = args ? args.fixedport : undefined;
resourceInputs["fssoGroups"] = args ? args.fssoGroups : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["globalLabel"] = args ? args.globalLabel : undefined;
resourceInputs["groups"] = args ? args.groups : undefined;
resourceInputs["httpPolicyRedirect"] = args ? args.httpPolicyRedirect : undefined;
resourceInputs["icapProfile"] = args ? args.icapProfile : undefined;
resourceInputs["inbound"] = args ? args.inbound : undefined;
resourceInputs["inspectionMode"] = args ? args.inspectionMode : undefined;
resourceInputs["ippool"] = args ? args.ippool : undefined;
resourceInputs["ipsSensor"] = args ? args.ipsSensor : undefined;
resourceInputs["label"] = args ? args.label : undefined;
resourceInputs["logtraffic"] = args ? args.logtraffic : undefined;
resourceInputs["logtrafficStart"] = args ? args.logtrafficStart : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["nat"] = args ? args.nat : undefined;
resourceInputs["natinbound"] = args ? args.natinbound : undefined;
resourceInputs["natoutbound"] = args ? args.natoutbound : undefined;
resourceInputs["outbound"] = args ? args.outbound : undefined;
resourceInputs["perIpShaper"] = args ? args.perIpShaper : undefined;
resourceInputs["policyid"] = args ? args.policyid : undefined;
resourceInputs["poolnames"] = args ? args.poolnames : undefined;
resourceInputs["profileGroup"] = args ? args.profileGroup : undefined;
resourceInputs["profileProtocolOptions"] = args ? args.profileProtocolOptions : undefined;
resourceInputs["profileType"] = args ? args.profileType : undefined;
resourceInputs["replacemsgOverrideGroup"] = args ? args.replacemsgOverrideGroup : undefined;
resourceInputs["rsso"] = args ? args.rsso : undefined;
resourceInputs["schedule"] = args ? args.schedule : undefined;
resourceInputs["sendDenyPacket"] = args ? args.sendDenyPacket : undefined;
resourceInputs["serviceNegate"] = args ? args.serviceNegate : undefined;
resourceInputs["services"] = args ? args.services : undefined;
resourceInputs["sessionTtl"] = args ? args.sessionTtl : undefined;
resourceInputs["spamfilterProfile"] = args ? args.spamfilterProfile : undefined;
resourceInputs["srcaddrNegate"] = args ? args.srcaddrNegate : undefined;
resourceInputs["srcaddrs"] = args ? args.srcaddrs : undefined;
resourceInputs["srcintfs"] = args ? args.srcintfs : undefined;
resourceInputs["sshFilterProfile"] = args ? args.sshFilterProfile : undefined;
resourceInputs["sshPolicyRedirect"] = args ? args.sshPolicyRedirect : undefined;
resourceInputs["sslMirror"] = args ? args.sslMirror : undefined;
resourceInputs["sslMirrorIntfs"] = args ? args.sslMirrorIntfs : undefined;
resourceInputs["sslSshProfile"] = args ? args.sslSshProfile : undefined;
resourceInputs["status"] = args ? args.status : undefined;
resourceInputs["tcpMssReceiver"] = args ? args.tcpMssReceiver : undefined;
resourceInputs["tcpMssSender"] = args ? args.tcpMssSender : undefined;
resourceInputs["tcpSessionWithoutSyn"] = args ? args.tcpSessionWithoutSyn : undefined;
resourceInputs["timeoutSendRst"] = args ? args.timeoutSendRst : undefined;
resourceInputs["tos"] = args ? args.tos : undefined;
resourceInputs["tosMask"] = args ? args.tosMask : undefined;
resourceInputs["tosNegate"] = args ? args.tosNegate : undefined;
resourceInputs["trafficShaper"] = args ? args.trafficShaper : undefined;
resourceInputs["trafficShaperReverse"] = args ? args.trafficShaperReverse : undefined;
resourceInputs["urlCategories"] = args ? args.urlCategories : undefined;
resourceInputs["users"] = args ? args.users : undefined;
resourceInputs["utmStatus"] = args ? args.utmStatus : undefined;
resourceInputs["uuid"] = args ? args.uuid : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
resourceInputs["vlanCosFwd"] = args ? args.vlanCosFwd : undefined;
resourceInputs["vlanCosRev"] = args ? args.vlanCosRev : undefined;
resourceInputs["vlanFilter"] = args ? args.vlanFilter : undefined;
resourceInputs["voipProfile"] = args ? args.voipProfile : undefined;
resourceInputs["vpntunnel"] = args ? args.vpntunnel : undefined;
resourceInputs["wafProfile"] = args ? args.wafProfile : undefined;
resourceInputs["webcache"] = args ? args.webcache : undefined;
resourceInputs["webcacheHttps"] = args ? args.webcacheHttps : undefined;
resourceInputs["webfilterProfile"] = args ? args.webfilterProfile : undefined;
resourceInputs["webproxyForwardServer"] = args ? args.webproxyForwardServer : undefined;
resourceInputs["webproxyProfile"] = args ? args.webproxyProfile : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Policy6.__pulumiType, name, resourceInputs, opts);
}
}
exports.Policy6 = Policy6;
/** @internal */
Policy6.__pulumiType = 'fortios:firewall/policy6:Policy6';
//# sourceMappingURL=policy6.js.map
;