UNPKG

@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

92 lines 4.15 kB
"use strict"; // *** 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.EgressMatrixCell = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource can manage a TrustSec Egress Matrix Cell. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ise from "@pulumi/ise"; * * const example = new ise.trustsec.EgressMatrixCell("example", { * description: "EgressMatrixCell Description", * defaultRule: "NONE", * matrixCellStatus: "ENABLED", * sgacls: ["26b76b10-66e6-11ee-9cc1-9eb2a3ecc82a, 9d64dcd0-6384-11ee-9cc1-9eb2a3ecc82a"], * sourceSgtId: "93c66ed0-8c01-11e6-996c-525400b48521", * destinationSgtId: "93e1bf00-8c01-11e6-996c-525400b48521", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import ise:trustsec/egressMatrixCell:EgressMatrixCell example "76d24097-41c4-4558-a4d0-a8c07ac08470" * ``` */ class EgressMatrixCell extends pulumi.CustomResource { /** * Get an existing EgressMatrixCell 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 EgressMatrixCell(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of EgressMatrixCell. 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'] === EgressMatrixCell.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["defaultRule"] = state ? state.defaultRule : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["destinationSgtId"] = state ? state.destinationSgtId : undefined; resourceInputs["matrixCellStatus"] = state ? state.matrixCellStatus : undefined; resourceInputs["sgacls"] = state ? state.sgacls : undefined; resourceInputs["sourceSgtId"] = state ? state.sourceSgtId : undefined; } else { const args = argsOrState; if ((!args || args.destinationSgtId === undefined) && !opts.urn) { throw new Error("Missing required property 'destinationSgtId'"); } if ((!args || args.sourceSgtId === undefined) && !opts.urn) { throw new Error("Missing required property 'sourceSgtId'"); } resourceInputs["defaultRule"] = args ? args.defaultRule : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["destinationSgtId"] = args ? args.destinationSgtId : undefined; resourceInputs["matrixCellStatus"] = args ? args.matrixCellStatus : undefined; resourceInputs["sgacls"] = args ? args.sgacls : undefined; resourceInputs["sourceSgtId"] = args ? args.sourceSgtId : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(EgressMatrixCell.__pulumiType, name, resourceInputs, opts); } } exports.EgressMatrixCell = EgressMatrixCell; /** @internal */ EgressMatrixCell.__pulumiType = 'ise:trustsec/egressMatrixCell:EgressMatrixCell'; //# sourceMappingURL=egressMatrixCell.js.map