@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 • 6.7 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, { ...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?.customAttributes;
resourceInputs["description"] = state?.description;
resourceInputs["groupId"] = state?.groupId;
resourceInputs["identityStore"] = state?.identityStore;
resourceInputs["identityStoreId"] = state?.identityStoreId;
resourceInputs["mac"] = state?.mac;
resourceInputs["mdmComplianceStatus"] = state?.mdmComplianceStatus;
resourceInputs["mdmEncrypted"] = state?.mdmEncrypted;
resourceInputs["mdmEnrolled"] = state?.mdmEnrolled;
resourceInputs["mdmImei"] = state?.mdmImei;
resourceInputs["mdmJailBroken"] = state?.mdmJailBroken;
resourceInputs["mdmManufacturer"] = state?.mdmManufacturer;
resourceInputs["mdmModel"] = state?.mdmModel;
resourceInputs["mdmOs"] = state?.mdmOs;
resourceInputs["mdmPhoneNumber"] = state?.mdmPhoneNumber;
resourceInputs["mdmPinlock"] = state?.mdmPinlock;
resourceInputs["mdmReachable"] = state?.mdmReachable;
resourceInputs["mdmSerial"] = state?.mdmSerial;
resourceInputs["mdmServerName"] = state?.mdmServerName;
resourceInputs["name"] = state?.name;
resourceInputs["portalUser"] = state?.portalUser;
resourceInputs["profileId"] = state?.profileId;
resourceInputs["staticGroupAssignment"] = state?.staticGroupAssignment;
resourceInputs["staticGroupAssignmentDefined"] = state?.staticGroupAssignmentDefined;
resourceInputs["staticProfileAssignment"] = state?.staticProfileAssignment;
resourceInputs["staticProfileAssignmentDefined"] = state?.staticProfileAssignmentDefined;
}
else {
const args = argsOrState;
if (args?.mac === undefined && !opts.urn) {
throw new Error("Missing required property 'mac'");
}
if (args?.staticGroupAssignment === undefined && !opts.urn) {
throw new Error("Missing required property 'staticGroupAssignment'");
}
if (args?.staticProfileAssignment === undefined && !opts.urn) {
throw new Error("Missing required property 'staticProfileAssignment'");
}
resourceInputs["customAttributes"] = args?.customAttributes;
resourceInputs["description"] = args?.description;
resourceInputs["groupId"] = args?.groupId;
resourceInputs["identityStore"] = args?.identityStore;
resourceInputs["identityStoreId"] = args?.identityStoreId;
resourceInputs["mac"] = args?.mac;
resourceInputs["mdmComplianceStatus"] = args?.mdmComplianceStatus;
resourceInputs["mdmEncrypted"] = args?.mdmEncrypted;
resourceInputs["mdmEnrolled"] = args?.mdmEnrolled;
resourceInputs["mdmImei"] = args?.mdmImei;
resourceInputs["mdmJailBroken"] = args?.mdmJailBroken;
resourceInputs["mdmManufacturer"] = args?.mdmManufacturer;
resourceInputs["mdmModel"] = args?.mdmModel;
resourceInputs["mdmOs"] = args?.mdmOs;
resourceInputs["mdmPhoneNumber"] = args?.mdmPhoneNumber;
resourceInputs["mdmPinlock"] = args?.mdmPinlock;
resourceInputs["mdmReachable"] = args?.mdmReachable;
resourceInputs["mdmSerial"] = args?.mdmSerial;
resourceInputs["mdmServerName"] = args?.mdmServerName;
resourceInputs["name"] = args?.name;
resourceInputs["portalUser"] = args?.portalUser;
resourceInputs["profileId"] = args?.profileId;
resourceInputs["staticGroupAssignment"] = args?.staticGroupAssignment;
resourceInputs["staticGroupAssignmentDefined"] = args?.staticGroupAssignmentDefined;
resourceInputs["staticProfileAssignment"] = args?.staticProfileAssignment;
resourceInputs["staticProfileAssignmentDefined"] = args?.staticProfileAssignmentDefined;
}
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