@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
78 lines • 4.08 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.AuthorizationExceptionRuleUpdateRank = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource is used to update rank field in network access authorization exception rule. It serves as a workaround for the ISE API/Backend limitation which restricts rank assignments to a strictly incremental sequence. By utilizing this resource and networkAccessAuthorizationExceptionRule resource, you can bypass the APIs limitation. Creation of this resource is performing PUT operation (Update) and it only tracks rank field. When this resource is destroyed, no action is performed on ISE and resource is just removed from state.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ise from "@pulumi/ise";
*
* const example = new ise.networkaccess.AuthorizationExceptionRuleUpdateRank("example", {
* ruleId: "9b3680da-0165-44f6-9cff-88e778d98020",
* policySetId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
* rank: 0,
* });
* ```
*/
class AuthorizationExceptionRuleUpdateRank extends pulumi.CustomResource {
/**
* Get an existing AuthorizationExceptionRuleUpdateRank 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 AuthorizationExceptionRuleUpdateRank(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of AuthorizationExceptionRuleUpdateRank. 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'] === AuthorizationExceptionRuleUpdateRank.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["policySetId"] = state ? state.policySetId : undefined;
resourceInputs["rank"] = state ? state.rank : undefined;
resourceInputs["ruleId"] = state ? state.ruleId : undefined;
}
else {
const args = argsOrState;
if ((!args || args.policySetId === undefined) && !opts.urn) {
throw new Error("Missing required property 'policySetId'");
}
if ((!args || args.rank === undefined) && !opts.urn) {
throw new Error("Missing required property 'rank'");
}
if ((!args || args.ruleId === undefined) && !opts.urn) {
throw new Error("Missing required property 'ruleId'");
}
resourceInputs["policySetId"] = args ? args.policySetId : undefined;
resourceInputs["rank"] = args ? args.rank : undefined;
resourceInputs["ruleId"] = args ? args.ruleId : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(AuthorizationExceptionRuleUpdateRank.__pulumiType, name, resourceInputs, opts);
}
}
exports.AuthorizationExceptionRuleUpdateRank = AuthorizationExceptionRuleUpdateRank;
/** @internal */
AuthorizationExceptionRuleUpdateRank.__pulumiType = 'ise:networkaccess/authorizationExceptionRuleUpdateRank:AuthorizationExceptionRuleUpdateRank';
//# sourceMappingURL=authorizationExceptionRuleUpdateRank.js.map