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 3.88 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, { ...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?.defaultRule; resourceInputs["description"] = state?.description; resourceInputs["destinationSgtId"] = state?.destinationSgtId; resourceInputs["matrixCellStatus"] = state?.matrixCellStatus; resourceInputs["sgacls"] = state?.sgacls; resourceInputs["sourceSgtId"] = state?.sourceSgtId; } else { const args = argsOrState; if (args?.destinationSgtId === undefined && !opts.urn) { throw new Error("Missing required property 'destinationSgtId'"); } if (args?.sourceSgtId === undefined && !opts.urn) { throw new Error("Missing required property 'sourceSgtId'"); } resourceInputs["defaultRule"] = args?.defaultRule; resourceInputs["description"] = args?.description; resourceInputs["destinationSgtId"] = args?.destinationSgtId; resourceInputs["matrixCellStatus"] = args?.matrixCellStatus; resourceInputs["sgacls"] = args?.sgacls; resourceInputs["sourceSgtId"] = args?.sourceSgtId; } 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