UNPKG

@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

111 lines 4.73 kB
"use strict"; // *** 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.InternalUser = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource can manage an Internal User. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ise from "@pulumi/ise"; * * const example = new ise.identitymanagement.InternalUser("example", { * name: "UserTF", * password: "Cisco123", * changePassword: true, * email: "aaa@cisco.com", * accountNameAlias: "User 1", * enablePassword: "Cisco123", * enabled: true, * passwordNeverExpires: false, * firstName: "John", * lastName: "Doe", * passwordIdStore: "Internal Users", * description: "My first Terraform user", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import ise:identitymanagement/internalUser:InternalUser example "76d24097-41c4-4558-a4d0-a8c07ac08470" * ``` */ class InternalUser extends pulumi.CustomResource { /** * Get an existing InternalUser 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 InternalUser(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of InternalUser. 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'] === InternalUser.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accountNameAlias"] = state?.accountNameAlias; resourceInputs["changePassword"] = state?.changePassword; resourceInputs["customAttributes"] = state?.customAttributes; resourceInputs["description"] = state?.description; resourceInputs["email"] = state?.email; resourceInputs["enablePassword"] = state?.enablePassword; resourceInputs["enabled"] = state?.enabled; resourceInputs["firstName"] = state?.firstName; resourceInputs["identityGroups"] = state?.identityGroups; resourceInputs["lastName"] = state?.lastName; resourceInputs["name"] = state?.name; resourceInputs["password"] = state?.password; resourceInputs["passwordIdStore"] = state?.passwordIdStore; resourceInputs["passwordNeverExpires"] = state?.passwordNeverExpires; } else { const args = argsOrState; if (args?.password === undefined && !opts.urn) { throw new Error("Missing required property 'password'"); } resourceInputs["accountNameAlias"] = args?.accountNameAlias; resourceInputs["changePassword"] = args?.changePassword; resourceInputs["customAttributes"] = args?.customAttributes; resourceInputs["description"] = args?.description; resourceInputs["email"] = args?.email; resourceInputs["enablePassword"] = args?.enablePassword; resourceInputs["enabled"] = args?.enabled; resourceInputs["firstName"] = args?.firstName; resourceInputs["identityGroups"] = args?.identityGroups; resourceInputs["lastName"] = args?.lastName; resourceInputs["name"] = args?.name; resourceInputs["password"] = args?.password; resourceInputs["passwordIdStore"] = args?.passwordIdStore; resourceInputs["passwordNeverExpires"] = args?.passwordNeverExpires; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(InternalUser.__pulumiType, name, resourceInputs, opts); } } exports.InternalUser = InternalUser; /** @internal */ InternalUser.__pulumiType = 'ise:identitymanagement/internalUser:InternalUser'; //# sourceMappingURL=internalUser.js.map