UNPKG

@bitblit/ratchet-aws

Version:

Common tools for use with AWS browser and node

12 lines (11 loc) 738 B
import { APIGatewayEvent, APIGatewayProxyEventV2, DynamoDBStreamEvent, S3Event, ScheduledEvent, SNSEvent, SQSEvent } from 'aws-lambda'; export declare class LambdaEventTypeGuards { static isValidCronEvent(event: any): event is ScheduledEvent; static isValidSqsEvent(event: any): event is SQSEvent; static isValidSnsEvent(event: any): event is SNSEvent; static isValidDynamoDBEvent(event: any): event is DynamoDBStreamEvent; static isValidS3Event(event: any): event is S3Event; static isValidApiGatewayV2WithRequestContextEvent(event: any): event is APIGatewayProxyEventV2; static isValidApiGatewayEvent(event: any): event is APIGatewayEvent; static isValidApiGatewayAuthorizerEvent(event: any): boolean; }