@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
95 lines • 4.34 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.IdentitySourceSequence = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource can manage an Identity Source Sequence.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ise from "@pulumi/ise";
*
* const example = new ise.identitymanagement.IdentitySourceSequence("example", {
* name: "Sequence1",
* description: "My identity source sequence",
* breakOnStoreFail: true,
* certificateAuthenticationProfile: "Preloaded_Certificate_Profile",
* identitySources: [{
* name: "Internal Users",
* order: 1,
* }],
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import ise:identitymanagement/identitySourceSequence:IdentitySourceSequence example "76d24097-41c4-4558-a4d0-a8c07ac08470"
* ```
*/
class IdentitySourceSequence extends pulumi.CustomResource {
/**
* Get an existing IdentitySourceSequence 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 IdentitySourceSequence(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of IdentitySourceSequence. 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'] === IdentitySourceSequence.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["breakOnStoreFail"] = state ? state.breakOnStoreFail : undefined;
resourceInputs["certificateAuthenticationProfile"] = state ? state.certificateAuthenticationProfile : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["identitySources"] = state ? state.identitySources : undefined;
resourceInputs["name"] = state ? state.name : undefined;
}
else {
const args = argsOrState;
if ((!args || args.breakOnStoreFail === undefined) && !opts.urn) {
throw new Error("Missing required property 'breakOnStoreFail'");
}
if ((!args || args.certificateAuthenticationProfile === undefined) && !opts.urn) {
throw new Error("Missing required property 'certificateAuthenticationProfile'");
}
if ((!args || args.identitySources === undefined) && !opts.urn) {
throw new Error("Missing required property 'identitySources'");
}
resourceInputs["breakOnStoreFail"] = args ? args.breakOnStoreFail : undefined;
resourceInputs["certificateAuthenticationProfile"] = args ? args.certificateAuthenticationProfile : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["identitySources"] = args ? args.identitySources : undefined;
resourceInputs["name"] = args ? args.name : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IdentitySourceSequence.__pulumiType, name, resourceInputs, opts);
}
}
exports.IdentitySourceSequence = IdentitySourceSequence;
/** @internal */
IdentitySourceSequence.__pulumiType = 'ise:identitymanagement/identitySourceSequence:IdentitySourceSequence';
//# sourceMappingURL=identitySourceSequence.js.map