@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
143 lines • 7.14 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.Group = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure user groups.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.user.Group("trname", {
* company: "optional",
* email: "enable",
* expire: 14400,
* expireType: "immediately",
* groupType: "firewall",
* maxAccounts: 0,
* members: [{
* name: "guest",
* }],
* mobilePhone: "disable",
* multipleGuestAdd: "disable",
* });
* ```
*
* ## Import
*
* User Group can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:user/group:Group labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:user/group:Group labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Group extends pulumi.CustomResource {
/**
* Get an existing Group 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 Group(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Group. 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'] === Group.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["authConcurrentOverride"] = state ? state.authConcurrentOverride : undefined;
resourceInputs["authConcurrentValue"] = state ? state.authConcurrentValue : undefined;
resourceInputs["authtimeout"] = state ? state.authtimeout : undefined;
resourceInputs["company"] = state ? state.company : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["email"] = state ? state.email : undefined;
resourceInputs["expire"] = state ? state.expire : undefined;
resourceInputs["expireType"] = state ? state.expireType : undefined;
resourceInputs["fosid"] = state ? state.fosid : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["groupType"] = state ? state.groupType : undefined;
resourceInputs["guests"] = state ? state.guests : undefined;
resourceInputs["httpDigestRealm"] = state ? state.httpDigestRealm : undefined;
resourceInputs["matches"] = state ? state.matches : undefined;
resourceInputs["maxAccounts"] = state ? state.maxAccounts : undefined;
resourceInputs["members"] = state ? state.members : undefined;
resourceInputs["mobilePhone"] = state ? state.mobilePhone : undefined;
resourceInputs["multipleGuestAdd"] = state ? state.multipleGuestAdd : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["password"] = state ? state.password : undefined;
resourceInputs["smsCustomServer"] = state ? state.smsCustomServer : undefined;
resourceInputs["smsServer"] = state ? state.smsServer : undefined;
resourceInputs["sponsor"] = state ? state.sponsor : undefined;
resourceInputs["ssoAttributeValue"] = state ? state.ssoAttributeValue : undefined;
resourceInputs["userId"] = state ? state.userId : undefined;
resourceInputs["userName"] = state ? state.userName : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["authConcurrentOverride"] = args ? args.authConcurrentOverride : undefined;
resourceInputs["authConcurrentValue"] = args ? args.authConcurrentValue : undefined;
resourceInputs["authtimeout"] = args ? args.authtimeout : undefined;
resourceInputs["company"] = args ? args.company : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["email"] = args ? args.email : undefined;
resourceInputs["expire"] = args ? args.expire : undefined;
resourceInputs["expireType"] = args ? args.expireType : undefined;
resourceInputs["fosid"] = args ? args.fosid : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["groupType"] = args ? args.groupType : undefined;
resourceInputs["guests"] = args ? args.guests : undefined;
resourceInputs["httpDigestRealm"] = args ? args.httpDigestRealm : undefined;
resourceInputs["matches"] = args ? args.matches : undefined;
resourceInputs["maxAccounts"] = args ? args.maxAccounts : undefined;
resourceInputs["members"] = args ? args.members : undefined;
resourceInputs["mobilePhone"] = args ? args.mobilePhone : undefined;
resourceInputs["multipleGuestAdd"] = args ? args.multipleGuestAdd : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["password"] = args ? args.password : undefined;
resourceInputs["smsCustomServer"] = args ? args.smsCustomServer : undefined;
resourceInputs["smsServer"] = args ? args.smsServer : undefined;
resourceInputs["sponsor"] = args ? args.sponsor : undefined;
resourceInputs["ssoAttributeValue"] = args ? args.ssoAttributeValue : undefined;
resourceInputs["userId"] = args ? args.userId : undefined;
resourceInputs["userName"] = args ? args.userName : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Group.__pulumiType, name, resourceInputs, opts);
}
}
exports.Group = Group;
/** @internal */
Group.__pulumiType = 'fortios:user/group:Group';
//# sourceMappingURL=group.js.map
;