@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
145 lines • 6.77 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.Multicastpolicy6 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure IPv6 multicast NAT policies.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.firewall.Multicastpolicy6("trname", {
* action: "accept",
* dstaddrs: [{
* name: "all",
* }],
* dstintf: "port4",
* endPort: 65535,
* fosid: 1,
* logtraffic: "disable",
* protocol: 0,
* srcaddrs: [{
* name: "all",
* }],
* srcintf: "port3",
* startPort: 1,
* status: "enable",
* });
* ```
*
* ## Import
*
* Firewall MulticastPolicy6 can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:firewall/multicastpolicy6:Multicastpolicy6 labelname {{fosid}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:firewall/multicastpolicy6:Multicastpolicy6 labelname {{fosid}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Multicastpolicy6 extends pulumi.CustomResource {
/**
* Get an existing Multicastpolicy6 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 Multicastpolicy6(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Multicastpolicy6. 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'] === Multicastpolicy6.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["action"] = state ? state.action : undefined;
resourceInputs["autoAsicOffload"] = state ? state.autoAsicOffload : undefined;
resourceInputs["comments"] = state ? state.comments : undefined;
resourceInputs["dstaddrs"] = state ? state.dstaddrs : undefined;
resourceInputs["dstintf"] = state ? state.dstintf : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["endPort"] = state ? state.endPort : undefined;
resourceInputs["fosid"] = state ? state.fosid : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["ipsSensor"] = state ? state.ipsSensor : undefined;
resourceInputs["logtraffic"] = state ? state.logtraffic : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["protocol"] = state ? state.protocol : undefined;
resourceInputs["srcaddrs"] = state ? state.srcaddrs : undefined;
resourceInputs["srcintf"] = state ? state.srcintf : undefined;
resourceInputs["startPort"] = state ? state.startPort : undefined;
resourceInputs["status"] = state ? state.status : undefined;
resourceInputs["utmStatus"] = state ? state.utmStatus : undefined;
resourceInputs["uuid"] = state ? state.uuid : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
if ((!args || args.dstaddrs === undefined) && !opts.urn) {
throw new Error("Missing required property 'dstaddrs'");
}
if ((!args || args.dstintf === undefined) && !opts.urn) {
throw new Error("Missing required property 'dstintf'");
}
if ((!args || args.srcaddrs === undefined) && !opts.urn) {
throw new Error("Missing required property 'srcaddrs'");
}
if ((!args || args.srcintf === undefined) && !opts.urn) {
throw new Error("Missing required property 'srcintf'");
}
resourceInputs["action"] = args ? args.action : undefined;
resourceInputs["autoAsicOffload"] = args ? args.autoAsicOffload : undefined;
resourceInputs["comments"] = args ? args.comments : undefined;
resourceInputs["dstaddrs"] = args ? args.dstaddrs : undefined;
resourceInputs["dstintf"] = args ? args.dstintf : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["endPort"] = args ? args.endPort : undefined;
resourceInputs["fosid"] = args ? args.fosid : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["ipsSensor"] = args ? args.ipsSensor : undefined;
resourceInputs["logtraffic"] = args ? args.logtraffic : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["protocol"] = args ? args.protocol : undefined;
resourceInputs["srcaddrs"] = args ? args.srcaddrs : undefined;
resourceInputs["srcintf"] = args ? args.srcintf : undefined;
resourceInputs["startPort"] = args ? args.startPort : undefined;
resourceInputs["status"] = args ? args.status : undefined;
resourceInputs["utmStatus"] = args ? args.utmStatus : undefined;
resourceInputs["uuid"] = args ? args.uuid : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Multicastpolicy6.__pulumiType, name, resourceInputs, opts);
}
}
exports.Multicastpolicy6 = Multicastpolicy6;
/** @internal */
Multicastpolicy6.__pulumiType = 'fortios:firewall/multicastpolicy6:Multicastpolicy6';
//# sourceMappingURL=multicastpolicy6.js.map
;