@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
138 lines • 7.73 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.Endpoint = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource can manage an Endpoint.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ise from "@pulumi/ise";
*
* const example = new ise.identitymanagement.Endpoint("example", {
* name: "00:11:22:33:44:55",
* description: "My endpoint",
* mac: "00:11:22:33:44:55",
* groupId: "3a88eec0-8c00-11e6-996c-525400b48521",
* profileId: "3a91a150-8c00-11e6-996c-525400b48521",
* staticProfileAssignment: true,
* staticProfileAssignmentDefined: true,
* staticGroupAssignment: true,
* staticGroupAssignmentDefined: true,
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import ise:identitymanagement/endpoint:Endpoint example "76d24097-41c4-4558-a4d0-a8c07ac08470"
* ```
*/
class Endpoint extends pulumi.CustomResource {
/**
* Get an existing Endpoint 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 Endpoint(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Endpoint. 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'] === Endpoint.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["customAttributes"] = state ? state.customAttributes : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["groupId"] = state ? state.groupId : undefined;
resourceInputs["identityStore"] = state ? state.identityStore : undefined;
resourceInputs["identityStoreId"] = state ? state.identityStoreId : undefined;
resourceInputs["mac"] = state ? state.mac : undefined;
resourceInputs["mdmComplianceStatus"] = state ? state.mdmComplianceStatus : undefined;
resourceInputs["mdmEncrypted"] = state ? state.mdmEncrypted : undefined;
resourceInputs["mdmEnrolled"] = state ? state.mdmEnrolled : undefined;
resourceInputs["mdmImei"] = state ? state.mdmImei : undefined;
resourceInputs["mdmJailBroken"] = state ? state.mdmJailBroken : undefined;
resourceInputs["mdmManufacturer"] = state ? state.mdmManufacturer : undefined;
resourceInputs["mdmModel"] = state ? state.mdmModel : undefined;
resourceInputs["mdmOs"] = state ? state.mdmOs : undefined;
resourceInputs["mdmPhoneNumber"] = state ? state.mdmPhoneNumber : undefined;
resourceInputs["mdmPinlock"] = state ? state.mdmPinlock : undefined;
resourceInputs["mdmReachable"] = state ? state.mdmReachable : undefined;
resourceInputs["mdmSerial"] = state ? state.mdmSerial : undefined;
resourceInputs["mdmServerName"] = state ? state.mdmServerName : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["portalUser"] = state ? state.portalUser : undefined;
resourceInputs["profileId"] = state ? state.profileId : undefined;
resourceInputs["staticGroupAssignment"] = state ? state.staticGroupAssignment : undefined;
resourceInputs["staticGroupAssignmentDefined"] = state ? state.staticGroupAssignmentDefined : undefined;
resourceInputs["staticProfileAssignment"] = state ? state.staticProfileAssignment : undefined;
resourceInputs["staticProfileAssignmentDefined"] = state ? state.staticProfileAssignmentDefined : undefined;
}
else {
const args = argsOrState;
if ((!args || args.mac === undefined) && !opts.urn) {
throw new Error("Missing required property 'mac'");
}
if ((!args || args.staticGroupAssignment === undefined) && !opts.urn) {
throw new Error("Missing required property 'staticGroupAssignment'");
}
if ((!args || args.staticProfileAssignment === undefined) && !opts.urn) {
throw new Error("Missing required property 'staticProfileAssignment'");
}
resourceInputs["customAttributes"] = args ? args.customAttributes : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["groupId"] = args ? args.groupId : undefined;
resourceInputs["identityStore"] = args ? args.identityStore : undefined;
resourceInputs["identityStoreId"] = args ? args.identityStoreId : undefined;
resourceInputs["mac"] = args ? args.mac : undefined;
resourceInputs["mdmComplianceStatus"] = args ? args.mdmComplianceStatus : undefined;
resourceInputs["mdmEncrypted"] = args ? args.mdmEncrypted : undefined;
resourceInputs["mdmEnrolled"] = args ? args.mdmEnrolled : undefined;
resourceInputs["mdmImei"] = args ? args.mdmImei : undefined;
resourceInputs["mdmJailBroken"] = args ? args.mdmJailBroken : undefined;
resourceInputs["mdmManufacturer"] = args ? args.mdmManufacturer : undefined;
resourceInputs["mdmModel"] = args ? args.mdmModel : undefined;
resourceInputs["mdmOs"] = args ? args.mdmOs : undefined;
resourceInputs["mdmPhoneNumber"] = args ? args.mdmPhoneNumber : undefined;
resourceInputs["mdmPinlock"] = args ? args.mdmPinlock : undefined;
resourceInputs["mdmReachable"] = args ? args.mdmReachable : undefined;
resourceInputs["mdmSerial"] = args ? args.mdmSerial : undefined;
resourceInputs["mdmServerName"] = args ? args.mdmServerName : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["portalUser"] = args ? args.portalUser : undefined;
resourceInputs["profileId"] = args ? args.profileId : undefined;
resourceInputs["staticGroupAssignment"] = args ? args.staticGroupAssignment : undefined;
resourceInputs["staticGroupAssignmentDefined"] = args ? args.staticGroupAssignmentDefined : undefined;
resourceInputs["staticProfileAssignment"] = args ? args.staticProfileAssignment : undefined;
resourceInputs["staticProfileAssignmentDefined"] = args ? args.staticProfileAssignmentDefined : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Endpoint.__pulumiType, name, resourceInputs, opts);
}
}
exports.Endpoint = Endpoint;
/** @internal */
Endpoint.__pulumiType = 'ise:identitymanagement/endpoint:Endpoint';
//# sourceMappingURL=endpoint.js.map