import { EventAdapter } from "../core/types" ; import { Event , Internal } from "../core/decorators" ; export function S3Event ( bucket , action ? , filter ? , adapter ? ) { return Event ( "aws:s3" , bucket , action , filter , adapter , Internal ) ; } export function S3ObjectCreated ( bucket , filter ? , adapter ? ) { return Event ( "aws:s3" , bucket , "ObjectCreated:*" , filter , adapter , Internal ) ; } export function DynamoDbInsert ( database , adapter ? ) { return Event ( "aws:dynamodb" , database , "INSERT" , null , adapter , Internal ) ; } export function DynamoDbModify ( database , adapter ? ) { return Event ( "aws:dynamodb" , database , "MODIFY" , null , adapter , Internal ) ; } export function DynamoDbRemove ( database , adapter ? ) { return Event ( "aws:dynamodb" , database , "REMOVE" , null , adapter , Internal ) ; } export function Schedule ( action ? , adapter ? ) { return Event ( "aws:cloudwatch" , "events" , action , null , adapter , Internal ) ; }