@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
173 lines • 7.38 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.SystemAaaFeature = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a System AAA Feature.
* - Minimum SD-WAN Manager version: `20.12.0`
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdwan from "@pulumi/sdwan";
*
* const example = new sdwan.SystemAaaFeature("example", {
* name: "Example",
* description: "My Example",
* featureProfileId: "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac",
* authenticationGroup: true,
* accountingGroup: true,
* serverAuthOrders: ["local"],
* users: [{
* name: "User1",
* password: "cisco123",
* privilege: "15",
* publicKeys: [{
* keyString: "AAAAB3NzaC1yc2",
* keyType: "ssh-rsa",
* }],
* }],
* radiusGroups: [{
* groupName: "RGROUP1",
* vpn: 10,
* sourceInterface: "GigabitEthernet0",
* servers: [{
* address: "1.2.3.4",
* authPort: 1812,
* acctPort: 1813,
* timeout: 5,
* retransmit: 3,
* key: "cisco123",
* secretKey: "cisco123",
* keyEnum: "7",
* keyType: "key",
* }],
* }],
* tacacsGroups: [{
* groupName: "TGROUP1",
* vpn: 10,
* sourceInterface: "GigabitEthernet0",
* servers: [{
* address: "1.2.3.4",
* port: 49,
* timeout: 5,
* key: "cisco123",
* secretKey: "cisco123",
* keyEnum: "7",
* }],
* }],
* accountingRules: [{
* ruleId: "1",
* method: "commands",
* level: "15",
* startStop: true,
* group: ["RGROUP1"],
* }],
* authorizationConsole: true,
* authorizationConfigCommands: true,
* authorizationRules: [{
* ruleId: "1",
* method: "commands",
* level: "15",
* group: ["RGROUP1"],
* ifAuthenticated: true,
* }],
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Expected import identifier with the format: "system_aaa_feature_id,feature_profile_id"
*
* ```sh
* $ pulumi import sdwan:index/systemAaaFeature:SystemAaaFeature example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
* ```
*/
class SystemAaaFeature extends pulumi.CustomResource {
/**
* Get an existing SystemAaaFeature 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 SystemAaaFeature(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of SystemAaaFeature. 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'] === SystemAaaFeature.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["accountingGroup"] = state?.accountingGroup;
resourceInputs["accountingGroupVariable"] = state?.accountingGroupVariable;
resourceInputs["accountingRules"] = state?.accountingRules;
resourceInputs["authenticationGroup"] = state?.authenticationGroup;
resourceInputs["authenticationGroupVariable"] = state?.authenticationGroupVariable;
resourceInputs["authorizationConfigCommands"] = state?.authorizationConfigCommands;
resourceInputs["authorizationConfigCommandsVariable"] = state?.authorizationConfigCommandsVariable;
resourceInputs["authorizationConsole"] = state?.authorizationConsole;
resourceInputs["authorizationConsoleVariable"] = state?.authorizationConsoleVariable;
resourceInputs["authorizationRules"] = state?.authorizationRules;
resourceInputs["description"] = state?.description;
resourceInputs["featureProfileId"] = state?.featureProfileId;
resourceInputs["name"] = state?.name;
resourceInputs["radiusGroups"] = state?.radiusGroups;
resourceInputs["serverAuthOrders"] = state?.serverAuthOrders;
resourceInputs["tacacsGroups"] = state?.tacacsGroups;
resourceInputs["users"] = state?.users;
resourceInputs["version"] = state?.version;
}
else {
const args = argsOrState;
if (args?.featureProfileId === undefined && !opts.urn) {
throw new Error("Missing required property 'featureProfileId'");
}
if (args?.serverAuthOrders === undefined && !opts.urn) {
throw new Error("Missing required property 'serverAuthOrders'");
}
resourceInputs["accountingGroup"] = args?.accountingGroup;
resourceInputs["accountingGroupVariable"] = args?.accountingGroupVariable;
resourceInputs["accountingRules"] = args?.accountingRules;
resourceInputs["authenticationGroup"] = args?.authenticationGroup;
resourceInputs["authenticationGroupVariable"] = args?.authenticationGroupVariable;
resourceInputs["authorizationConfigCommands"] = args?.authorizationConfigCommands;
resourceInputs["authorizationConfigCommandsVariable"] = args?.authorizationConfigCommandsVariable;
resourceInputs["authorizationConsole"] = args?.authorizationConsole;
resourceInputs["authorizationConsoleVariable"] = args?.authorizationConsoleVariable;
resourceInputs["authorizationRules"] = args?.authorizationRules;
resourceInputs["description"] = args?.description;
resourceInputs["featureProfileId"] = args?.featureProfileId;
resourceInputs["name"] = args?.name;
resourceInputs["radiusGroups"] = args?.radiusGroups;
resourceInputs["serverAuthOrders"] = args?.serverAuthOrders;
resourceInputs["tacacsGroups"] = args?.tacacsGroups;
resourceInputs["users"] = args?.users;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SystemAaaFeature.__pulumiType, name, resourceInputs, opts);
}
}
exports.SystemAaaFeature = SystemAaaFeature;
/** @internal */
SystemAaaFeature.__pulumiType = 'sdwan:index/systemAaaFeature:SystemAaaFeature';
//# sourceMappingURL=systemAaaFeature.js.map