UNPKG

@aws-cdk/aws-apigatewayv2-authorizers-alpha

Version:

This module is deprecated. All constructs are now available under aws-cdk-lib/aws-apigatewayv2-authorizers

142 lines (141 loc) 6.53 kB
function _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpUserPoolAuthorizerProps(p) { if (p == null) return; visitedObjects.add(p); try { if ("authorizerName" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpUserPoolAuthorizerProps#authorizerName", ""); if ("identitySource" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpUserPoolAuthorizerProps#identitySource", ""); if ("userPoolClients" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpUserPoolAuthorizerProps#userPoolClients", ""); if (p.userPoolClients != null) for (const o of p.userPoolClients) if (!visitedObjects.has(o)) require("aws-cdk-lib/.warnings.jsii.js").aws_cdk_lib_aws_cognito_IUserPoolClient(o); if ("userPoolRegion" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpUserPoolAuthorizerProps#userPoolRegion", ""); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpUserPoolAuthorizer(p) { } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpJwtAuthorizerProps(p) { if (p == null) return; visitedObjects.add(p); try { if ("jwtAudience" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpJwtAuthorizerProps#jwtAudience", ""); if ("authorizerName" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpJwtAuthorizerProps#authorizerName", ""); if ("identitySource" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpJwtAuthorizerProps#identitySource", ""); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpJwtAuthorizer(p) { } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpLambdaResponseType(p) { if (p == null) return; visitedObjects.add(p); try { print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpLambdaResponseType", ""); const ns = require("./lib/http/lambda.js"); if (Object.values(ns.HttpLambdaResponseType).filter(x => x === p).length > 1) return; if (p === ns.HttpLambdaResponseType.SIMPLE) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpLambdaResponseType#SIMPLE", ""); if (p === ns.HttpLambdaResponseType.IAM) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpLambdaResponseType#IAM", ""); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpLambdaAuthorizerProps(p) { if (p == null) return; visitedObjects.add(p); try { if ("authorizerName" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpLambdaAuthorizerProps#authorizerName", ""); if ("identitySource" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpLambdaAuthorizerProps#identitySource", ""); if ("responseTypes" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpLambdaAuthorizerProps#responseTypes", ""); if (p.responseTypes != null) for (const o of p.responseTypes) if (!visitedObjects.has(o)) _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpLambdaResponseType(o); if ("resultsCacheTtl" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.HttpLambdaAuthorizerProps#resultsCacheTtl", ""); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpLambdaAuthorizer(p) { } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpIamAuthorizer(p) { } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_WebSocketLambdaAuthorizerProps(p) { if (p == null) return; visitedObjects.add(p); try { if ("authorizerName" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.WebSocketLambdaAuthorizerProps#authorizerName", ""); if ("identitySource" in p) print("@aws-cdk/aws-apigatewayv2-authorizers-alpha.WebSocketLambdaAuthorizerProps#identitySource", ""); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_WebSocketLambdaAuthorizer(p) { } function _aws_cdk_aws_apigatewayv2_authorizers_alpha_WebSocketIamAuthorizer(p) { } function print(name, deprecationMessage) { const deprecated = process.env.JSII_DEPRECATED; const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn"; const message = `${name} is deprecated.\n ${deprecationMessage.trim()}\n This API will be removed in the next major release.`; switch (deprecationMode) { case "fail": throw new DeprecationError(message); case "warn": console.warn("[WARNING]", message); break; } } function getPropertyDescriptor(obj, prop) { const descriptor = Object.getOwnPropertyDescriptor(obj, prop); if (descriptor) { return descriptor; } const proto = Object.getPrototypeOf(obj); const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop); if (prototypeDescriptor) { return prototypeDescriptor; } return {}; } const visitedObjects = new Set(); class DeprecationError extends Error { constructor(...args) { super(...args); Object.defineProperty(this, "name", { configurable: false, enumerable: true, value: "DeprecationError", writable: false, }); } } module.exports = { print, getPropertyDescriptor, DeprecationError, _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpUserPoolAuthorizerProps, _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpUserPoolAuthorizer, _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpJwtAuthorizerProps, _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpJwtAuthorizer, _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpLambdaResponseType, _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpLambdaAuthorizerProps, _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpLambdaAuthorizer, _aws_cdk_aws_apigatewayv2_authorizers_alpha_HttpIamAuthorizer, _aws_cdk_aws_apigatewayv2_authorizers_alpha_WebSocketLambdaAuthorizerProps, _aws_cdk_aws_apigatewayv2_authorizers_alpha_WebSocketLambdaAuthorizer, _aws_cdk_aws_apigatewayv2_authorizers_alpha_WebSocketIamAuthorizer };