agent-claw: automated task changes
This commit is contained in:
7
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/iam.d.ts
generated
vendored
Normal file
7
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/iam.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { WebSocketRouteAuthorizerBindOptions, WebSocketRouteAuthorizerConfig, IWebSocketRouteAuthorizer } from '../../../aws-apigatewayv2';
|
||||
/**
|
||||
* Authorize WebSocket API Routes with IAM
|
||||
*/
|
||||
export declare class WebSocketIamAuthorizer implements IWebSocketRouteAuthorizer {
|
||||
bind(_options: WebSocketRouteAuthorizerBindOptions): WebSocketRouteAuthorizerConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/iam.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/iam.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebSocketIamAuthorizer=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var aws_apigatewayv2_1=()=>{var tmp=require("../../../aws-apigatewayv2");return aws_apigatewayv2_1=()=>tmp,tmp};class WebSocketIamAuthorizer{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_apigatewayv2_authorizers.WebSocketIamAuthorizer",version:"2.252.0"};bind(_options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_WebSocketRouteAuthorizerBindOptions(_options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{authorizationType:aws_apigatewayv2_1().WebSocketAuthorizerType.IAM}}}exports.WebSocketIamAuthorizer=WebSocketIamAuthorizer;
|
||||
2
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/index.d.ts
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './lambda';
|
||||
export * from './iam';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.WebSocketLambdaAuthorizer=void 0,Object.defineProperty(exports,_noFold="WebSocketLambdaAuthorizer",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lambda").WebSocketLambdaAuthorizer;return Object.defineProperty(exports,_noFold="WebSocketLambdaAuthorizer",{enumerable:!0,configurable:!0,value}),value}}),exports.WebSocketIamAuthorizer=void 0,Object.defineProperty(exports,_noFold="WebSocketIamAuthorizer",{enumerable:!0,configurable:!0,get:()=>{var value=require("./iam").WebSocketIamAuthorizer;return Object.defineProperty(exports,_noFold="WebSocketIamAuthorizer",{enumerable:!0,configurable:!0,value}),value}});
|
||||
34
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/lambda.d.ts
generated
vendored
Normal file
34
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/lambda.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import type { WebSocketRouteAuthorizerBindOptions, WebSocketRouteAuthorizerConfig, IWebSocketRouteAuthorizer } from '../../../aws-apigatewayv2';
|
||||
import type { IFunction } from '../../../aws-lambda';
|
||||
/**
|
||||
* Properties to initialize WebSocketTokenAuthorizer.
|
||||
*/
|
||||
export interface WebSocketLambdaAuthorizerProps {
|
||||
/**
|
||||
* The name of the authorizer
|
||||
* @default - same value as `id` passed in the constructor.
|
||||
*/
|
||||
readonly authorizerName?: string;
|
||||
/**
|
||||
* The identity source for which authorization is requested.
|
||||
*
|
||||
* Request parameter match `'route.request.querystring|header.[a-zA-z0-9._-]+'`.
|
||||
* Staged variable match `'stageVariables.[a-zA-Z0-9._-]+'`.
|
||||
* Context parameter match `'context.[a-zA-Z0-9._-]+'`.
|
||||
*
|
||||
* @default ['route.request.header.Authorization']
|
||||
*/
|
||||
readonly identitySource?: string[];
|
||||
}
|
||||
/**
|
||||
* Authorize WebSocket Api routes via a lambda function
|
||||
*/
|
||||
export declare class WebSocketLambdaAuthorizer implements IWebSocketRouteAuthorizer {
|
||||
private readonly id;
|
||||
private readonly handler;
|
||||
private readonly props;
|
||||
private authorizer?;
|
||||
private webSocketApi?;
|
||||
constructor(id: string, handler: IFunction, props?: WebSocketLambdaAuthorizerProps);
|
||||
bind(options: WebSocketRouteAuthorizerBindOptions): WebSocketRouteAuthorizerConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/lambda.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-apigatewayv2-authorizers/lib/websocket/lambda.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebSocketLambdaAuthorizer=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var aws_apigatewayv2_1=()=>{var tmp=require("../../../aws-apigatewayv2");return aws_apigatewayv2_1=()=>tmp,tmp},aws_iam_1=()=>{var tmp=require("../../../aws-iam");return aws_iam_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},errors_1=()=>{var tmp=require("../../../core/lib/errors");return errors_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp};class WebSocketLambdaAuthorizer{id;handler;props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_apigatewayv2_authorizers.WebSocketLambdaAuthorizer",version:"2.252.0"};authorizer;webSocketApi;constructor(id,handler,props={}){this.id=id,this.handler=handler,this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_IFunction(handler),jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_authorizers_WebSocketLambdaAuthorizerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,WebSocketLambdaAuthorizer),error}}bind(options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_WebSocketRouteAuthorizerBindOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}if(this.webSocketApi&&this.webSocketApi.apiId!==options.route.webSocketApi.apiId)throw new(errors_1()).ValidationError((0,literal_string_1().lit)`CannotAttachSameAuthorizerToMultipleApis`,"Cannot attach the same authorizer to multiple Apis",options.scope);return this.authorizer||(this.webSocketApi=options.route.webSocketApi,this.authorizer=new(aws_apigatewayv2_1()).WebSocketAuthorizer(options.scope,this.id,{webSocketApi:options.route.webSocketApi,identitySource:this.props.identitySource??["route.request.header.Authorization"],type:aws_apigatewayv2_1().WebSocketAuthorizerType.LAMBDA,authorizerName:this.props.authorizerName??this.id,authorizerUri:lambdaAuthorizerArn(this.handler)}),this.handler.addPermission(`${core_1().Names.nodeUniqueId(this.authorizer.node)}-Permission`,{scope:options.scope,principal:new(aws_iam_1()).ServicePrincipal("apigateway.amazonaws.com"),sourceArn:core_1().Stack.of(options.route).formatArn({service:"execute-api",resource:options.route.webSocketApi.apiId,resourceName:`authorizers/${this.authorizer.authorizerId}`})})),{authorizerId:this.authorizer.authorizerId,authorizationType:"CUSTOM"}}}exports.WebSocketLambdaAuthorizer=WebSocketLambdaAuthorizer;function lambdaAuthorizerArn(handler){return`arn:${core_1().Stack.of(handler).partition}:apigateway:${core_1().Stack.of(handler).region}:lambda:path/2015-03-31/functions/${handler.functionArn}/invocations`}
|
||||
Reference in New Issue
Block a user