UNPKG

@pulumi/sdwan

Version:

A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1

211 lines 10.6 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.CedgeAaaFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a cEdge AAA feature template. * - Minimum SD-WAN Manager version: `15.0.0` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.CedgeAaaFeatureTemplate("example", { * name: "Example", * description: "My Example", * deviceTypes: ["vedge-C8000V"], * dot1xAuthentication: true, * dot1xAccounting: true, * serverGroupsPriorityOrder: "100", * users: [{ * name: "user1", * password: "password123", * secret: "secret123", * privilegeLevel: "15", * sshPubkeys: [{ * keyString: "abc123", * keyType: "rsa", * }], * }], * radiusServerGroups: [{ * groupName: "GROUP1", * vpnId: 1, * sourceInterface: "e1", * servers: [{ * address: "1.1.1.1", * authenticationPort: 1812, * accountingPort: 1813, * timeout: 5, * retransmit: 3, * key: "key123", * secretKey: "1234567", * encryptionType: "7", * keyType: "pac", * }], * }], * radiusClients: [{ * clientIp: "2.2.2.2", * vpnConfigurations: [{ * vpnId: 1, * serverKey: "key123", * }], * }], * radiusDynamicAuthorServerKey: "key123", * radiusDynamicAuthorDomainStripping: "yes", * radiusDynamicAuthorAuthenticationType: "all", * radiusDynamicAuthorPort: 1700, * radiusTrustsecCtsAuthorizationList: "ALIST1", * radiusTrustsecGroup: "GROUP1", * tacacsServerGroups: [{ * groupName: "GROUP1", * vpnId: 1, * sourceInterface: "e1", * servers: [{ * address: "1.1.1.1", * port: 49, * timeout: 5, * key: "key123", * secretKey: "1234567", * encryptionType: "7", * }], * }], * accountingRules: [{ * name: "RULE1", * method: "exec", * privilegeLevel: "15", * startStop: true, * groups: "GROUP1", * }], * authorizationConsole: true, * authorizationConfigCommands: true, * authorizationRules: [{ * name: "RULE1", * method: "commands", * privilegeLevel: "15", * groups: "GROUP1", * authenticated: true, * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/cedgeAaaFeatureTemplate:CedgeAaaFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class CedgeAaaFeatureTemplate extends pulumi.CustomResource { /** * Get an existing CedgeAaaFeatureTemplate 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 CedgeAaaFeatureTemplate(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of CedgeAaaFeatureTemplate. 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'] === CedgeAaaFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accountingRules"] = state?.accountingRules; 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["deviceTypes"] = state?.deviceTypes; resourceInputs["dot1xAccounting"] = state?.dot1xAccounting; resourceInputs["dot1xAccountingVariable"] = state?.dot1xAccountingVariable; resourceInputs["dot1xAuthentication"] = state?.dot1xAuthentication; resourceInputs["dot1xAuthenticationVariable"] = state?.dot1xAuthenticationVariable; resourceInputs["name"] = state?.name; resourceInputs["radiusClients"] = state?.radiusClients; resourceInputs["radiusDynamicAuthorAuthenticationType"] = state?.radiusDynamicAuthorAuthenticationType; resourceInputs["radiusDynamicAuthorAuthenticationTypeVariable"] = state?.radiusDynamicAuthorAuthenticationTypeVariable; resourceInputs["radiusDynamicAuthorDomainStripping"] = state?.radiusDynamicAuthorDomainStripping; resourceInputs["radiusDynamicAuthorDomainStrippingVariable"] = state?.radiusDynamicAuthorDomainStrippingVariable; resourceInputs["radiusDynamicAuthorPort"] = state?.radiusDynamicAuthorPort; resourceInputs["radiusDynamicAuthorPortVariable"] = state?.radiusDynamicAuthorPortVariable; resourceInputs["radiusDynamicAuthorServerKey"] = state?.radiusDynamicAuthorServerKey; resourceInputs["radiusDynamicAuthorServerKeyVariable"] = state?.radiusDynamicAuthorServerKeyVariable; resourceInputs["radiusServerGroups"] = state?.radiusServerGroups; resourceInputs["radiusTrustsecCtsAuthorizationList"] = state?.radiusTrustsecCtsAuthorizationList; resourceInputs["radiusTrustsecCtsAuthorizationListVariable"] = state?.radiusTrustsecCtsAuthorizationListVariable; resourceInputs["radiusTrustsecGroup"] = state?.radiusTrustsecGroup; resourceInputs["serverGroupsPriorityOrder"] = state?.serverGroupsPriorityOrder; resourceInputs["tacacsServerGroups"] = state?.tacacsServerGroups; resourceInputs["templateType"] = state?.templateType; resourceInputs["users"] = state?.users; resourceInputs["version"] = state?.version; } else { const args = argsOrState; if (args?.description === undefined && !opts.urn) { throw new Error("Missing required property 'description'"); } if (args?.deviceTypes === undefined && !opts.urn) { throw new Error("Missing required property 'deviceTypes'"); } resourceInputs["accountingRules"] = args?.accountingRules; 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["deviceTypes"] = args?.deviceTypes; resourceInputs["dot1xAccounting"] = args?.dot1xAccounting; resourceInputs["dot1xAccountingVariable"] = args?.dot1xAccountingVariable; resourceInputs["dot1xAuthentication"] = args?.dot1xAuthentication; resourceInputs["dot1xAuthenticationVariable"] = args?.dot1xAuthenticationVariable; resourceInputs["name"] = args?.name; resourceInputs["radiusClients"] = args?.radiusClients; resourceInputs["radiusDynamicAuthorAuthenticationType"] = args?.radiusDynamicAuthorAuthenticationType; resourceInputs["radiusDynamicAuthorAuthenticationTypeVariable"] = args?.radiusDynamicAuthorAuthenticationTypeVariable; resourceInputs["radiusDynamicAuthorDomainStripping"] = args?.radiusDynamicAuthorDomainStripping; resourceInputs["radiusDynamicAuthorDomainStrippingVariable"] = args?.radiusDynamicAuthorDomainStrippingVariable; resourceInputs["radiusDynamicAuthorPort"] = args?.radiusDynamicAuthorPort; resourceInputs["radiusDynamicAuthorPortVariable"] = args?.radiusDynamicAuthorPortVariable; resourceInputs["radiusDynamicAuthorServerKey"] = args?.radiusDynamicAuthorServerKey; resourceInputs["radiusDynamicAuthorServerKeyVariable"] = args?.radiusDynamicAuthorServerKeyVariable; resourceInputs["radiusServerGroups"] = args?.radiusServerGroups; resourceInputs["radiusTrustsecCtsAuthorizationList"] = args?.radiusTrustsecCtsAuthorizationList; resourceInputs["radiusTrustsecCtsAuthorizationListVariable"] = args?.radiusTrustsecCtsAuthorizationListVariable; resourceInputs["radiusTrustsecGroup"] = args?.radiusTrustsecGroup; resourceInputs["serverGroupsPriorityOrder"] = args?.serverGroupsPriorityOrder; resourceInputs["tacacsServerGroups"] = args?.tacacsServerGroups; resourceInputs["users"] = args?.users; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CedgeAaaFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.CedgeAaaFeatureTemplate = CedgeAaaFeatureTemplate; /** @internal */ CedgeAaaFeatureTemplate.__pulumiType = 'sdwan:index/cedgeAaaFeatureTemplate:CedgeAaaFeatureTemplate'; //# sourceMappingURL=cedgeAaaFeatureTemplate.js.map