@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
133 lines • 6.78 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.Replacemsggroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure replacement message groups.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Replacemsggroup("trname", {
* comment: "sgh",
* groupType: "utm",
* });
* ```
*
* ## Import
*
* System ReplacemsgGroup can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/replacemsggroup:Replacemsggroup labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/replacemsggroup:Replacemsggroup labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Replacemsggroup extends pulumi.CustomResource {
/**
* Get an existing Replacemsggroup 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 Replacemsggroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Replacemsggroup. 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'] === Replacemsggroup.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["admins"] = state ? state.admins : undefined;
resourceInputs["alertmails"] = state ? state.alertmails : undefined;
resourceInputs["auths"] = state ? state.auths : undefined;
resourceInputs["automations"] = state ? state.automations : undefined;
resourceInputs["comment"] = state ? state.comment : undefined;
resourceInputs["customMessages"] = state ? state.customMessages : undefined;
resourceInputs["deviceDetectionPortals"] = state ? state.deviceDetectionPortals : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["ecs"] = state ? state.ecs : undefined;
resourceInputs["fortiguardWfs"] = state ? state.fortiguardWfs : undefined;
resourceInputs["ftps"] = state ? state.ftps : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["groupType"] = state ? state.groupType : undefined;
resourceInputs["https"] = state ? state.https : undefined;
resourceInputs["icaps"] = state ? state.icaps : undefined;
resourceInputs["mails"] = state ? state.mails : undefined;
resourceInputs["nacQuars"] = state ? state.nacQuars : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["nntps"] = state ? state.nntps : undefined;
resourceInputs["spams"] = state ? state.spams : undefined;
resourceInputs["sslvpns"] = state ? state.sslvpns : undefined;
resourceInputs["trafficQuotas"] = state ? state.trafficQuotas : undefined;
resourceInputs["utms"] = state ? state.utms : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
resourceInputs["webproxies"] = state ? state.webproxies : undefined;
}
else {
const args = argsOrState;
if ((!args || args.groupType === undefined) && !opts.urn) {
throw new Error("Missing required property 'groupType'");
}
resourceInputs["admins"] = args ? args.admins : undefined;
resourceInputs["alertmails"] = args ? args.alertmails : undefined;
resourceInputs["auths"] = args ? args.auths : undefined;
resourceInputs["automations"] = args ? args.automations : undefined;
resourceInputs["comment"] = args ? args.comment : undefined;
resourceInputs["customMessages"] = args ? args.customMessages : undefined;
resourceInputs["deviceDetectionPortals"] = args ? args.deviceDetectionPortals : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["ecs"] = args ? args.ecs : undefined;
resourceInputs["fortiguardWfs"] = args ? args.fortiguardWfs : undefined;
resourceInputs["ftps"] = args ? args.ftps : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["groupType"] = args ? args.groupType : undefined;
resourceInputs["https"] = args ? args.https : undefined;
resourceInputs["icaps"] = args ? args.icaps : undefined;
resourceInputs["mails"] = args ? args.mails : undefined;
resourceInputs["nacQuars"] = args ? args.nacQuars : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["nntps"] = args ? args.nntps : undefined;
resourceInputs["spams"] = args ? args.spams : undefined;
resourceInputs["sslvpns"] = args ? args.sslvpns : undefined;
resourceInputs["trafficQuotas"] = args ? args.trafficQuotas : undefined;
resourceInputs["utms"] = args ? args.utms : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
resourceInputs["webproxies"] = args ? args.webproxies : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Replacemsggroup.__pulumiType, name, resourceInputs, opts);
}
}
exports.Replacemsggroup = Replacemsggroup;
/** @internal */
Replacemsggroup.__pulumiType = 'fortios:system/replacemsggroup:Replacemsggroup';
//# sourceMappingURL=replacemsggroup.js.map
;