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 5.29 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, Object.assign(Object.assign({}, 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 ? state.accountNameAlias : undefined; resourceInputs["changePassword"] = state ? state.changePassword : undefined; resourceInputs["customAttributes"] = state ? state.customAttributes : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["email"] = state ? state.email : undefined; resourceInputs["enablePassword"] = state ? state.enablePassword : undefined; resourceInputs["enabled"] = state ? state.enabled : undefined; resourceInputs["firstName"] = state ? state.firstName : undefined; resourceInputs["identityGroups"] = state ? state.identityGroups : undefined; resourceInputs["lastName"] = state ? state.lastName : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["passwordIdStore"] = state ? state.passwordIdStore : undefined; resourceInputs["passwordNeverExpires"] = state ? state.passwordNeverExpires : undefined; } else { const args = argsOrState; if ((!args || args.password === undefined) && !opts.urn) { throw new Error("Missing required property 'password'"); } resourceInputs["accountNameAlias"] = args ? args.accountNameAlias : undefined; resourceInputs["changePassword"] = args ? args.changePassword : undefined; resourceInputs["customAttributes"] = args ? args.customAttributes : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["email"] = args ? args.email : undefined; resourceInputs["enablePassword"] = args ? args.enablePassword : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["firstName"] = args ? args.firstName : undefined; resourceInputs["identityGroups"] = args ? args.identityGroups : undefined; resourceInputs["lastName"] = args ? args.lastName : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["password"] = args ? args.password : undefined; resourceInputs["passwordIdStore"] = args ? args.passwordIdStore : undefined; resourceInputs["passwordNeverExpires"] = args ? args.passwordNeverExpires : undefined; } 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