@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
99 lines • 4.01 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.Condition = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource can manage a Device Admin Condition.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ise from "@pulumi/ise";
*
* const example = new ise.deviceadmin.Condition("example", {
* name: "Cond1",
* description: "My description",
* conditionType: "LibraryConditionAttributes",
* isNegate: false,
* attributeName: "User",
* attributeValue: "User1",
* dictionaryName: "TACACS",
* operator: "equals",
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import ise:deviceadmin/condition:Condition example "76d24097-41c4-4558-a4d0-a8c07ac08470"
* ```
*/
class Condition extends pulumi.CustomResource {
/**
* Get an existing Condition 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 Condition(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Condition. 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'] === Condition.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["attributeName"] = state?.attributeName;
resourceInputs["attributeValue"] = state?.attributeValue;
resourceInputs["childrens"] = state?.childrens;
resourceInputs["conditionType"] = state?.conditionType;
resourceInputs["description"] = state?.description;
resourceInputs["dictionaryName"] = state?.dictionaryName;
resourceInputs["dictionaryValue"] = state?.dictionaryValue;
resourceInputs["isNegate"] = state?.isNegate;
resourceInputs["name"] = state?.name;
resourceInputs["operator"] = state?.operator;
}
else {
const args = argsOrState;
if (args?.conditionType === undefined && !opts.urn) {
throw new Error("Missing required property 'conditionType'");
}
resourceInputs["attributeName"] = args?.attributeName;
resourceInputs["attributeValue"] = args?.attributeValue;
resourceInputs["childrens"] = args?.childrens;
resourceInputs["conditionType"] = args?.conditionType;
resourceInputs["description"] = args?.description;
resourceInputs["dictionaryName"] = args?.dictionaryName;
resourceInputs["dictionaryValue"] = args?.dictionaryValue;
resourceInputs["isNegate"] = args?.isNegate;
resourceInputs["name"] = args?.name;
resourceInputs["operator"] = args?.operator;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Condition.__pulumiType, name, resourceInputs, opts);
}
}
exports.Condition = Condition;
/** @internal */
Condition.__pulumiType = 'ise:deviceadmin/condition:Condition';
//# sourceMappingURL=condition.js.map