@pulumi/ise
Version:
A Pulumi package for managing resources on a Cisco ISE (Identity Service Engine) instance.. Based on terraform-provider-ise: version v0.2.1
91 lines • 4.22 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActiveDirectoryAddGroups = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource can manage an Active Directory Add Groups.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ise from "@pulumi/ise";
*
* const example = new ise.identitymanagement.ActiveDirectoryAddGroups("example", {
* joinPointId: "73808580-b6e6-11ee-8960-de6d7692bc40",
* name: "cisco.local",
* description: "My AD join point",
* domain: "cisco.local",
* adScopesNames: "Default_Scope",
* enableDomainAllowedList: true,
* groups: [{
* name: "cisco.local/operators",
* sid: "S-1-5-32-548",
* type: "GLOBAL",
* }],
* });
* ```
*/
class ActiveDirectoryAddGroups extends pulumi.CustomResource {
/**
* Get an existing ActiveDirectoryAddGroups 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 ActiveDirectoryAddGroups(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ActiveDirectoryAddGroups. 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'] === ActiveDirectoryAddGroups.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["adScopesNames"] = state ? state.adScopesNames : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["domain"] = state ? state.domain : undefined;
resourceInputs["enableDomainAllowedList"] = state ? state.enableDomainAllowedList : undefined;
resourceInputs["groups"] = state ? state.groups : undefined;
resourceInputs["joinPointId"] = state ? state.joinPointId : undefined;
resourceInputs["name"] = state ? state.name : undefined;
}
else {
const args = argsOrState;
if ((!args || args.domain === undefined) && !opts.urn) {
throw new Error("Missing required property 'domain'");
}
if ((!args || args.joinPointId === undefined) && !opts.urn) {
throw new Error("Missing required property 'joinPointId'");
}
resourceInputs["adScopesNames"] = args ? args.adScopesNames : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["domain"] = args ? args.domain : undefined;
resourceInputs["enableDomainAllowedList"] = args ? args.enableDomainAllowedList : undefined;
resourceInputs["groups"] = args ? args.groups : undefined;
resourceInputs["joinPointId"] = args ? args.joinPointId : undefined;
resourceInputs["name"] = args ? args.name : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ActiveDirectoryAddGroups.__pulumiType, name, resourceInputs, opts);
}
}
exports.ActiveDirectoryAddGroups = ActiveDirectoryAddGroups;
/** @internal */
ActiveDirectoryAddGroups.__pulumiType = 'ise:identitymanagement/activeDirectoryAddGroups:ActiveDirectoryAddGroups';
//# sourceMappingURL=activeDirectoryAddGroups.js.map