@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
345 lines • 20.9 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.AllowedProtocols = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource can manage an allowed protocols policy element.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ise from "@pulumi/ise";
*
* const example = new ise.networkaccess.AllowedProtocols("example", {
* name: "Protocols1",
* description: "My allowed protocols",
* processHostLookup: true,
* allowPapAscii: true,
* allowChap: true,
* allowMsChapV1: true,
* allowMsChapV2: true,
* allowEapMd5: true,
* allowLeap: true,
* allowEapTls: true,
* allowEapTtls: true,
* allowEapFast: true,
* allowPeap: true,
* allowTeap: true,
* allowPreferredEapProtocol: true,
* preferredEapProtocol: "LEAP",
* eapTlsLBit: true,
* allowWeakCiphersForEap: true,
* requireMessageAuth: true,
* eapTlsAllowAuthOfExpiredCerts: true,
* eapTlsEnableStatelessSessionResume: true,
* eapTlsSessionTicketTtl: 5,
* eapTlsSessionTicketTtlUnit: "DAYS",
* eapTlsSessionTicketPercentage: 5,
* peapAllowPeapEapMsChapV2: true,
* peapAllowPeapEapMsChapV2PwdChange: true,
* peapAllowPeapEapMsChapV2PwdChangeRetries: 3,
* peapAllowPeapEapGtc: true,
* peapAllowPeapEapGtcPwdChange: true,
* peapAllowPeapEapGtcPwdChangeRetries: 3,
* peapAllowPeapEapTls: true,
* peapAllowPeapEapTlsAuthOfExpiredCerts: true,
* requireCryptobinding: true,
* peapPeapV0: true,
* eapTtlsPapAscii: true,
* eapTtlsChap: true,
* eapTtlsMsChapV1: true,
* eapTtlsMsChapV2: true,
* eapTtlsEapMd5: true,
* eapTtlsEapMsChapV2: true,
* eapTtlsEapMsChapV2PwdChange: true,
* eapTtlsEapMsChapV2PwdChangeRetries: 3,
* eapFastEapMsChapV2: true,
* eapFastEapMsChapV2PwdChange: true,
* eapFastEapMsChapV2PwdChangeRetries: 3,
* eapFastEapGtc: true,
* eapFastEapGtcPwdChange: true,
* eapFastEapGtcPwdChangeRetries: 3,
* eapFastEapTls: true,
* eapFastEapTlsAuthOfExpiredCerts: true,
* eapFastEnableEapChaining: true,
* eapFastUsePacs: true,
* eapFastPacsTunnelPacTtl: 5,
* eapFastPacsTunnelPacTtlUnit: "DAYS",
* eapFastPacsUseProactivePacUpdatePercentage: 5,
* eapFastPacsAllowAnonymousProvisioning: true,
* eapFastPacsAllowAuthenticatedProvisioning: true,
* eapFastPacsServerReturns: true,
* eapFastPacsAllowClientCert: true,
* eapFastPacsAllowMachineAuthentication: true,
* eapFastPacsMachinePacTtl: 5,
* eapFastPacsMachinePacTtlUnit: "DAYS",
* eapFastPacsStatelessSessionResume: true,
* eapFastPacsAuthorizationPacTtl: 5,
* eapFastPacsAuthorizationPacTtlUnit: "HOURS",
* teapEapMsChapV2: true,
* teapEapMsChapV2PwdChange: true,
* teapEapMsChapV2PwdChangeRetries: 3,
* teapEapTls: true,
* teapEapTlsAuthOfExpiredCerts: true,
* teapEapAcceptClientCertDuringTunnelEst: true,
* teapEapChaining: true,
* teapDowngradeMsk: true,
* teapRequestBasicPwdAuth: true,
* allow5g: true,
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import ise:networkaccess/allowedProtocols:AllowedProtocols example "76d24097-41c4-4558-a4d0-a8c07ac08470"
* ```
*/
class AllowedProtocols extends pulumi.CustomResource {
/**
* Get an existing AllowedProtocols 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 AllowedProtocols(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of AllowedProtocols. 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'] === AllowedProtocols.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["allow5g"] = state?.allow5g;
resourceInputs["allowChap"] = state?.allowChap;
resourceInputs["allowEapFast"] = state?.allowEapFast;
resourceInputs["allowEapMd5"] = state?.allowEapMd5;
resourceInputs["allowEapTls"] = state?.allowEapTls;
resourceInputs["allowEapTtls"] = state?.allowEapTtls;
resourceInputs["allowLeap"] = state?.allowLeap;
resourceInputs["allowMsChapV1"] = state?.allowMsChapV1;
resourceInputs["allowMsChapV2"] = state?.allowMsChapV2;
resourceInputs["allowPapAscii"] = state?.allowPapAscii;
resourceInputs["allowPeap"] = state?.allowPeap;
resourceInputs["allowPreferredEapProtocol"] = state?.allowPreferredEapProtocol;
resourceInputs["allowTeap"] = state?.allowTeap;
resourceInputs["allowWeakCiphersForEap"] = state?.allowWeakCiphersForEap;
resourceInputs["description"] = state?.description;
resourceInputs["eapFastAcceptClientCert"] = state?.eapFastAcceptClientCert;
resourceInputs["eapFastAllowMachineAuthentication"] = state?.eapFastAllowMachineAuthentication;
resourceInputs["eapFastEapGtc"] = state?.eapFastEapGtc;
resourceInputs["eapFastEapGtcPwdChange"] = state?.eapFastEapGtcPwdChange;
resourceInputs["eapFastEapGtcPwdChangeRetries"] = state?.eapFastEapGtcPwdChangeRetries;
resourceInputs["eapFastEapMsChapV2"] = state?.eapFastEapMsChapV2;
resourceInputs["eapFastEapMsChapV2PwdChange"] = state?.eapFastEapMsChapV2PwdChange;
resourceInputs["eapFastEapMsChapV2PwdChangeRetries"] = state?.eapFastEapMsChapV2PwdChangeRetries;
resourceInputs["eapFastEapTls"] = state?.eapFastEapTls;
resourceInputs["eapFastEapTlsAuthOfExpiredCerts"] = state?.eapFastEapTlsAuthOfExpiredCerts;
resourceInputs["eapFastEnableEapChaining"] = state?.eapFastEnableEapChaining;
resourceInputs["eapFastPacsAllowAnonymousProvisioning"] = state?.eapFastPacsAllowAnonymousProvisioning;
resourceInputs["eapFastPacsAllowAuthenticatedProvisioning"] = state?.eapFastPacsAllowAuthenticatedProvisioning;
resourceInputs["eapFastPacsAllowClientCert"] = state?.eapFastPacsAllowClientCert;
resourceInputs["eapFastPacsAllowMachineAuthentication"] = state?.eapFastPacsAllowMachineAuthentication;
resourceInputs["eapFastPacsAuthorizationPacTtl"] = state?.eapFastPacsAuthorizationPacTtl;
resourceInputs["eapFastPacsAuthorizationPacTtlUnit"] = state?.eapFastPacsAuthorizationPacTtlUnit;
resourceInputs["eapFastPacsMachinePacTtl"] = state?.eapFastPacsMachinePacTtl;
resourceInputs["eapFastPacsMachinePacTtlUnit"] = state?.eapFastPacsMachinePacTtlUnit;
resourceInputs["eapFastPacsServerReturns"] = state?.eapFastPacsServerReturns;
resourceInputs["eapFastPacsStatelessSessionResume"] = state?.eapFastPacsStatelessSessionResume;
resourceInputs["eapFastPacsTunnelPacTtl"] = state?.eapFastPacsTunnelPacTtl;
resourceInputs["eapFastPacsTunnelPacTtlUnit"] = state?.eapFastPacsTunnelPacTtlUnit;
resourceInputs["eapFastPacsUseProactivePacUpdatePercentage"] = state?.eapFastPacsUseProactivePacUpdatePercentage;
resourceInputs["eapFastUsePacs"] = state?.eapFastUsePacs;
resourceInputs["eapTlsAllowAuthOfExpiredCerts"] = state?.eapTlsAllowAuthOfExpiredCerts;
resourceInputs["eapTlsEnableStatelessSessionResume"] = state?.eapTlsEnableStatelessSessionResume;
resourceInputs["eapTlsLBit"] = state?.eapTlsLBit;
resourceInputs["eapTlsSessionTicketPercentage"] = state?.eapTlsSessionTicketPercentage;
resourceInputs["eapTlsSessionTicketTtl"] = state?.eapTlsSessionTicketTtl;
resourceInputs["eapTlsSessionTicketTtlUnit"] = state?.eapTlsSessionTicketTtlUnit;
resourceInputs["eapTtlsChap"] = state?.eapTtlsChap;
resourceInputs["eapTtlsEapMd5"] = state?.eapTtlsEapMd5;
resourceInputs["eapTtlsEapMsChapV2"] = state?.eapTtlsEapMsChapV2;
resourceInputs["eapTtlsEapMsChapV2PwdChange"] = state?.eapTtlsEapMsChapV2PwdChange;
resourceInputs["eapTtlsEapMsChapV2PwdChangeRetries"] = state?.eapTtlsEapMsChapV2PwdChangeRetries;
resourceInputs["eapTtlsMsChapV1"] = state?.eapTtlsMsChapV1;
resourceInputs["eapTtlsMsChapV2"] = state?.eapTtlsMsChapV2;
resourceInputs["eapTtlsPapAscii"] = state?.eapTtlsPapAscii;
resourceInputs["name"] = state?.name;
resourceInputs["peapAllowPeapEapGtc"] = state?.peapAllowPeapEapGtc;
resourceInputs["peapAllowPeapEapGtcPwdChange"] = state?.peapAllowPeapEapGtcPwdChange;
resourceInputs["peapAllowPeapEapGtcPwdChangeRetries"] = state?.peapAllowPeapEapGtcPwdChangeRetries;
resourceInputs["peapAllowPeapEapMsChapV2"] = state?.peapAllowPeapEapMsChapV2;
resourceInputs["peapAllowPeapEapMsChapV2PwdChange"] = state?.peapAllowPeapEapMsChapV2PwdChange;
resourceInputs["peapAllowPeapEapMsChapV2PwdChangeRetries"] = state?.peapAllowPeapEapMsChapV2PwdChangeRetries;
resourceInputs["peapAllowPeapEapTls"] = state?.peapAllowPeapEapTls;
resourceInputs["peapAllowPeapEapTlsAuthOfExpiredCerts"] = state?.peapAllowPeapEapTlsAuthOfExpiredCerts;
resourceInputs["peapPeapV0"] = state?.peapPeapV0;
resourceInputs["preferredEapProtocol"] = state?.preferredEapProtocol;
resourceInputs["processHostLookup"] = state?.processHostLookup;
resourceInputs["requireCryptobinding"] = state?.requireCryptobinding;
resourceInputs["requireMessageAuth"] = state?.requireMessageAuth;
resourceInputs["teapDowngradeMsk"] = state?.teapDowngradeMsk;
resourceInputs["teapEapAcceptClientCertDuringTunnelEst"] = state?.teapEapAcceptClientCertDuringTunnelEst;
resourceInputs["teapEapChaining"] = state?.teapEapChaining;
resourceInputs["teapEapMsChapV2"] = state?.teapEapMsChapV2;
resourceInputs["teapEapMsChapV2PwdChange"] = state?.teapEapMsChapV2PwdChange;
resourceInputs["teapEapMsChapV2PwdChangeRetries"] = state?.teapEapMsChapV2PwdChangeRetries;
resourceInputs["teapEapTls"] = state?.teapEapTls;
resourceInputs["teapEapTlsAuthOfExpiredCerts"] = state?.teapEapTlsAuthOfExpiredCerts;
resourceInputs["teapRequestBasicPwdAuth"] = state?.teapRequestBasicPwdAuth;
}
else {
const args = argsOrState;
if (args?.allowChap === undefined && !opts.urn) {
throw new Error("Missing required property 'allowChap'");
}
if (args?.allowEapFast === undefined && !opts.urn) {
throw new Error("Missing required property 'allowEapFast'");
}
if (args?.allowEapMd5 === undefined && !opts.urn) {
throw new Error("Missing required property 'allowEapMd5'");
}
if (args?.allowEapTls === undefined && !opts.urn) {
throw new Error("Missing required property 'allowEapTls'");
}
if (args?.allowEapTtls === undefined && !opts.urn) {
throw new Error("Missing required property 'allowEapTtls'");
}
if (args?.allowLeap === undefined && !opts.urn) {
throw new Error("Missing required property 'allowLeap'");
}
if (args?.allowMsChapV1 === undefined && !opts.urn) {
throw new Error("Missing required property 'allowMsChapV1'");
}
if (args?.allowMsChapV2 === undefined && !opts.urn) {
throw new Error("Missing required property 'allowMsChapV2'");
}
if (args?.allowPapAscii === undefined && !opts.urn) {
throw new Error("Missing required property 'allowPapAscii'");
}
if (args?.allowPeap === undefined && !opts.urn) {
throw new Error("Missing required property 'allowPeap'");
}
if (args?.allowPreferredEapProtocol === undefined && !opts.urn) {
throw new Error("Missing required property 'allowPreferredEapProtocol'");
}
if (args?.allowTeap === undefined && !opts.urn) {
throw new Error("Missing required property 'allowTeap'");
}
if (args?.allowWeakCiphersForEap === undefined && !opts.urn) {
throw new Error("Missing required property 'allowWeakCiphersForEap'");
}
if (args?.eapTlsLBit === undefined && !opts.urn) {
throw new Error("Missing required property 'eapTlsLBit'");
}
if (args?.processHostLookup === undefined && !opts.urn) {
throw new Error("Missing required property 'processHostLookup'");
}
if (args?.requireMessageAuth === undefined && !opts.urn) {
throw new Error("Missing required property 'requireMessageAuth'");
}
resourceInputs["allow5g"] = args?.allow5g;
resourceInputs["allowChap"] = args?.allowChap;
resourceInputs["allowEapFast"] = args?.allowEapFast;
resourceInputs["allowEapMd5"] = args?.allowEapMd5;
resourceInputs["allowEapTls"] = args?.allowEapTls;
resourceInputs["allowEapTtls"] = args?.allowEapTtls;
resourceInputs["allowLeap"] = args?.allowLeap;
resourceInputs["allowMsChapV1"] = args?.allowMsChapV1;
resourceInputs["allowMsChapV2"] = args?.allowMsChapV2;
resourceInputs["allowPapAscii"] = args?.allowPapAscii;
resourceInputs["allowPeap"] = args?.allowPeap;
resourceInputs["allowPreferredEapProtocol"] = args?.allowPreferredEapProtocol;
resourceInputs["allowTeap"] = args?.allowTeap;
resourceInputs["allowWeakCiphersForEap"] = args?.allowWeakCiphersForEap;
resourceInputs["description"] = args?.description;
resourceInputs["eapFastAcceptClientCert"] = args?.eapFastAcceptClientCert;
resourceInputs["eapFastAllowMachineAuthentication"] = args?.eapFastAllowMachineAuthentication;
resourceInputs["eapFastEapGtc"] = args?.eapFastEapGtc;
resourceInputs["eapFastEapGtcPwdChange"] = args?.eapFastEapGtcPwdChange;
resourceInputs["eapFastEapGtcPwdChangeRetries"] = args?.eapFastEapGtcPwdChangeRetries;
resourceInputs["eapFastEapMsChapV2"] = args?.eapFastEapMsChapV2;
resourceInputs["eapFastEapMsChapV2PwdChange"] = args?.eapFastEapMsChapV2PwdChange;
resourceInputs["eapFastEapMsChapV2PwdChangeRetries"] = args?.eapFastEapMsChapV2PwdChangeRetries;
resourceInputs["eapFastEapTls"] = args?.eapFastEapTls;
resourceInputs["eapFastEapTlsAuthOfExpiredCerts"] = args?.eapFastEapTlsAuthOfExpiredCerts;
resourceInputs["eapFastEnableEapChaining"] = args?.eapFastEnableEapChaining;
resourceInputs["eapFastPacsAllowAnonymousProvisioning"] = args?.eapFastPacsAllowAnonymousProvisioning;
resourceInputs["eapFastPacsAllowAuthenticatedProvisioning"] = args?.eapFastPacsAllowAuthenticatedProvisioning;
resourceInputs["eapFastPacsAllowClientCert"] = args?.eapFastPacsAllowClientCert;
resourceInputs["eapFastPacsAllowMachineAuthentication"] = args?.eapFastPacsAllowMachineAuthentication;
resourceInputs["eapFastPacsAuthorizationPacTtl"] = args?.eapFastPacsAuthorizationPacTtl;
resourceInputs["eapFastPacsAuthorizationPacTtlUnit"] = args?.eapFastPacsAuthorizationPacTtlUnit;
resourceInputs["eapFastPacsMachinePacTtl"] = args?.eapFastPacsMachinePacTtl;
resourceInputs["eapFastPacsMachinePacTtlUnit"] = args?.eapFastPacsMachinePacTtlUnit;
resourceInputs["eapFastPacsServerReturns"] = args?.eapFastPacsServerReturns;
resourceInputs["eapFastPacsStatelessSessionResume"] = args?.eapFastPacsStatelessSessionResume;
resourceInputs["eapFastPacsTunnelPacTtl"] = args?.eapFastPacsTunnelPacTtl;
resourceInputs["eapFastPacsTunnelPacTtlUnit"] = args?.eapFastPacsTunnelPacTtlUnit;
resourceInputs["eapFastPacsUseProactivePacUpdatePercentage"] = args?.eapFastPacsUseProactivePacUpdatePercentage;
resourceInputs["eapFastUsePacs"] = args?.eapFastUsePacs;
resourceInputs["eapTlsAllowAuthOfExpiredCerts"] = args?.eapTlsAllowAuthOfExpiredCerts;
resourceInputs["eapTlsEnableStatelessSessionResume"] = args?.eapTlsEnableStatelessSessionResume;
resourceInputs["eapTlsLBit"] = args?.eapTlsLBit;
resourceInputs["eapTlsSessionTicketPercentage"] = args?.eapTlsSessionTicketPercentage;
resourceInputs["eapTlsSessionTicketTtl"] = args?.eapTlsSessionTicketTtl;
resourceInputs["eapTlsSessionTicketTtlUnit"] = args?.eapTlsSessionTicketTtlUnit;
resourceInputs["eapTtlsChap"] = args?.eapTtlsChap;
resourceInputs["eapTtlsEapMd5"] = args?.eapTtlsEapMd5;
resourceInputs["eapTtlsEapMsChapV2"] = args?.eapTtlsEapMsChapV2;
resourceInputs["eapTtlsEapMsChapV2PwdChange"] = args?.eapTtlsEapMsChapV2PwdChange;
resourceInputs["eapTtlsEapMsChapV2PwdChangeRetries"] = args?.eapTtlsEapMsChapV2PwdChangeRetries;
resourceInputs["eapTtlsMsChapV1"] = args?.eapTtlsMsChapV1;
resourceInputs["eapTtlsMsChapV2"] = args?.eapTtlsMsChapV2;
resourceInputs["eapTtlsPapAscii"] = args?.eapTtlsPapAscii;
resourceInputs["name"] = args?.name;
resourceInputs["peapAllowPeapEapGtc"] = args?.peapAllowPeapEapGtc;
resourceInputs["peapAllowPeapEapGtcPwdChange"] = args?.peapAllowPeapEapGtcPwdChange;
resourceInputs["peapAllowPeapEapGtcPwdChangeRetries"] = args?.peapAllowPeapEapGtcPwdChangeRetries;
resourceInputs["peapAllowPeapEapMsChapV2"] = args?.peapAllowPeapEapMsChapV2;
resourceInputs["peapAllowPeapEapMsChapV2PwdChange"] = args?.peapAllowPeapEapMsChapV2PwdChange;
resourceInputs["peapAllowPeapEapMsChapV2PwdChangeRetries"] = args?.peapAllowPeapEapMsChapV2PwdChangeRetries;
resourceInputs["peapAllowPeapEapTls"] = args?.peapAllowPeapEapTls;
resourceInputs["peapAllowPeapEapTlsAuthOfExpiredCerts"] = args?.peapAllowPeapEapTlsAuthOfExpiredCerts;
resourceInputs["peapPeapV0"] = args?.peapPeapV0;
resourceInputs["preferredEapProtocol"] = args?.preferredEapProtocol;
resourceInputs["processHostLookup"] = args?.processHostLookup;
resourceInputs["requireCryptobinding"] = args?.requireCryptobinding;
resourceInputs["requireMessageAuth"] = args?.requireMessageAuth;
resourceInputs["teapDowngradeMsk"] = args?.teapDowngradeMsk;
resourceInputs["teapEapAcceptClientCertDuringTunnelEst"] = args?.teapEapAcceptClientCertDuringTunnelEst;
resourceInputs["teapEapChaining"] = args?.teapEapChaining;
resourceInputs["teapEapMsChapV2"] = args?.teapEapMsChapV2;
resourceInputs["teapEapMsChapV2PwdChange"] = args?.teapEapMsChapV2PwdChange;
resourceInputs["teapEapMsChapV2PwdChangeRetries"] = args?.teapEapMsChapV2PwdChangeRetries;
resourceInputs["teapEapTls"] = args?.teapEapTls;
resourceInputs["teapEapTlsAuthOfExpiredCerts"] = args?.teapEapTlsAuthOfExpiredCerts;
resourceInputs["teapRequestBasicPwdAuth"] = args?.teapRequestBasicPwdAuth;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(AllowedProtocols.__pulumiType, name, resourceInputs, opts);
}
}
exports.AllowedProtocols = AllowedProtocols;
/** @internal */
AllowedProtocols.__pulumiType = 'ise:networkaccess/allowedProtocols:AllowedProtocols';
//# sourceMappingURL=allowedProtocols.js.map