@types/aws-lambda
Advanced tools
Comparing version 8.10.119 to 8.10.125
@@ -18,7 +18,8 @@ // Types shared between trigger/api-gateway-authorizer.d.ts and api-gateway-proxy.d.ts | ||
| { | ||
[name: string]: any; | ||
}; | ||
[name: string]: any; | ||
}; | ||
export type APIGatewayEventRequestContext = | ||
APIGatewayEventRequestContextWithAuthorizer<APIGatewayEventDefaultAuthorizerContext>; | ||
export type APIGatewayEventRequestContext = APIGatewayEventRequestContextWithAuthorizer< | ||
APIGatewayEventDefaultAuthorizerContext | ||
>; | ||
@@ -25,0 +26,0 @@ // The requestContext property of both request authorizer and proxy integration events. |
@@ -25,3 +25,3 @@ /** | ||
port: number; | ||
protocol: 'http' | 'https'; | ||
protocol: "http" | "https"; | ||
readTimeout: number; | ||
@@ -32,3 +32,3 @@ sslProtocols: string[]; | ||
export interface CloudFrontS3Origin { | ||
authMethod: 'origin-access-identity' | 'none'; | ||
authMethod: "origin-access-identity" | "none"; | ||
customHeaders: CloudFrontHeaders; | ||
@@ -49,7 +49,7 @@ domainName: string; | ||
| { | ||
action: 'read-only' | 'replace'; | ||
data: string; | ||
encoding: 'base64' | 'text'; | ||
readonly inputTruncated: boolean; | ||
} | ||
action: "read-only" | "replace"; | ||
data: string; | ||
encoding: "base64" | "text"; | ||
readonly inputTruncated: boolean; | ||
} | ||
| undefined; | ||
@@ -68,3 +68,3 @@ readonly clientIp: string; | ||
readonly distributionId: string; | ||
readonly eventType: 'origin-request' | 'origin-response' | 'viewer-request' | 'viewer-response'; | ||
readonly eventType: "origin-request" | "origin-response" | "viewer-request" | "viewer-response"; | ||
readonly requestId: string; | ||
@@ -83,3 +83,3 @@ }; | ||
headers?: CloudFrontHeaders | undefined; | ||
bodyEncoding?: 'text' | 'base64' | undefined; | ||
bodyEncoding?: "text" | "base64" | undefined; | ||
body?: string | undefined; | ||
@@ -143,3 +143,3 @@ } | ||
/** The event type, either `viewer-request` or `viewer-response`. */ | ||
eventType: 'viewer-request' | 'viewer-response'; | ||
eventType: "viewer-request" | "viewer-response"; | ||
/** A string that uniquely identifies a CloudFront request (and its associated response). */ | ||
@@ -146,0 +146,0 @@ requestId: string; |
@@ -1,96 +0,50 @@ | ||
// Type definitions for AWS Lambda 8.10 | ||
// Project: http://docs.aws.amazon.com/lambda | ||
// Definitions by: James Darbyshire <https://github.com/darbio> | ||
// Michael Skarum <https://github.com/skarum> | ||
// Stef Heyenrath <https://github.com/StefH> | ||
// Rich Buggy <https://github.com/buggy> | ||
// Yoriki Yamaguchi <https://github.com/y13i> | ||
// wwwy3y3 <https://github.com/wwwy3y3> | ||
// Ishaan Malhi <https://github.com/OrthoDex> | ||
// Michael Marner <https://github.com/MichaelMarner> | ||
// Daniel Cottone <https://github.com/daniel-cottone> | ||
// Kostya Misura <https://github.com/kostya-misura> | ||
// Markus Tacker <https://github.com/coderbyheart> | ||
// Palmi Valgeirsson <https://github.com/palmithor> | ||
// Danilo Raisi <https://github.com/daniloraisi> | ||
// Simon Buchan <https://github.com/simonbuchan> | ||
// David Hayden <https://github.com/Haydabase> | ||
// Chris Redekop <https://github.com/repl-chris> | ||
// Aneil Mallavarapu <https://github.com/aneilbaboo> | ||
// Jeremy Nagel <https://github.com/jeznag> | ||
// Louis Larry <https://github.com/louislarry> | ||
// Daniel Papukchiev <https://github.com/dpapukchiev> | ||
// Oliver Hookins <https://github.com/ohookins> | ||
// Trevor Leach <https://github.com/trevor-leach> | ||
// James Gregory <https://github.com/jagregory> | ||
// Erik Dalén <https://github.com/dalen> | ||
// Loïk Gaonac'h <https://github.com/loikg> | ||
// Roberto Zen <https://github.com/skyzenr> | ||
// Grzegorz Redlicki <https://github.com/redlickigrzegorz> | ||
// Juan Carbonel <https://github.com/juancarbonel> | ||
// Peter McIntyre <https://github.com/pwmcintyre> | ||
// Alex Bolenok <https://github.com/alex-bolenok-centralreach> | ||
// Marian Zange <https://github.com/marianzange> | ||
// Alexander Pepper <https://github.com/apepper> | ||
// Alessandro Palumbo <https://github.com/apalumbo> | ||
// Sachin Shekhar <https://github.com/SachinShekhar> | ||
// Ivan Martos <https://github.com/ivanmartos> | ||
// Zach Anthony <https://github.com/zach-anthony> | ||
// Peter Savnik <https://github.com/savnik> | ||
// Benoit Boure <https://github.com/bboure> | ||
// James Lakin <https://github.com/jamesorlakin> | ||
// Ross Gerbasi <https://github.com/aphex> | ||
// Joey Kilpatrick <https://github.com/joeykilpatrick> | ||
// Luciano Manerich Junior <https://github.com/lmanerich> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 3.0 | ||
export * from './handler'; | ||
export * from './common/api-gateway'; | ||
export * from './common/cloudfront'; | ||
export * from './trigger/alb'; | ||
export * from "./common/api-gateway"; | ||
export * from "./common/cloudfront"; | ||
export * from "./handler"; | ||
export * from "./trigger/alb"; | ||
// TODO: export * from "./trigger/alexa"; | ||
export * from './trigger/api-gateway-authorizer'; | ||
export * from './trigger/api-gateway-proxy'; | ||
export * from './trigger/appsync-resolver'; | ||
export * from './trigger/autoscaling'; | ||
export * from "./trigger/api-gateway-authorizer"; | ||
export * from "./trigger/api-gateway-proxy"; | ||
export * from "./trigger/appsync-resolver"; | ||
export * from "./trigger/autoscaling"; | ||
// CloudTrail section just describes using S3 to trigger on cloudtrail changes. | ||
export * from './trigger/cdk-custom-resource'; | ||
export * from './trigger/cloudformation-custom-resource'; | ||
export * from './trigger/cloudfront-request'; | ||
export * from './trigger/cloudfront-response'; | ||
export * from './trigger/cloudwatch-events'; | ||
export * from './trigger/cloudwatch-logs'; | ||
export * from './trigger/codecommit'; | ||
export * from './trigger/codebuild-cloudwatch-state'; | ||
export * from './trigger/codepipeline'; | ||
export * from './trigger/codepipeline-cloudwatch'; | ||
export * from './trigger/codepipeline-cloudwatch-action'; | ||
export * from './trigger/codepipeline-cloudwatch-pipeline'; | ||
export * from './trigger/codepipeline-cloudwatch-stage'; | ||
export * from "./trigger/cdk-custom-resource"; | ||
export * from "./trigger/cloudformation-custom-resource"; | ||
export * from "./trigger/cloudfront-request"; | ||
export * from "./trigger/cloudfront-response"; | ||
export * from "./trigger/cloudwatch-events"; | ||
export * from "./trigger/cloudwatch-logs"; | ||
export * from "./trigger/codebuild-cloudwatch-state"; | ||
export * from "./trigger/codecommit"; | ||
export * from "./trigger/codepipeline"; | ||
export * from "./trigger/codepipeline-cloudwatch"; | ||
export * from "./trigger/codepipeline-cloudwatch-action"; | ||
export * from "./trigger/codepipeline-cloudwatch-pipeline"; | ||
export * from "./trigger/codepipeline-cloudwatch-stage"; | ||
// TODO: export * from "./trigger/cognito-sync"; | ||
export * from './trigger/cognito-user-pool-trigger/'; | ||
export * from './trigger/connect-contact-flow'; | ||
export * from "./trigger/cognito-user-pool-trigger/"; | ||
export * from "./trigger/connect-contact-flow"; | ||
// TODO: export * from "./trigger/config"; | ||
export * from './trigger/dynamodb-stream'; | ||
export * from './trigger/eventbridge'; | ||
export * from "./trigger/dynamodb-stream"; | ||
export * from "./trigger/eventbridge"; | ||
// ElastiCache section just describes using lambdas in an ElastiCache context (VPC issues, etc.) | ||
// EC2 events are delivered using cloudwatch events... | ||
export * from './trigger/iot'; | ||
export * from './trigger/kinesis-firehose-transformation'; | ||
export * from './trigger/kinesis-stream'; | ||
export * from './trigger/lex'; | ||
export * from './trigger/lex-v2'; | ||
export * from "./trigger/iot"; | ||
export * from "./trigger/iot-authorizer"; | ||
export * from "./trigger/kinesis-firehose-transformation"; | ||
export * from "./trigger/kinesis-stream"; | ||
export * from "./trigger/lex"; | ||
export * from "./trigger/lex-v2"; | ||
// RDS events are delivered using SNS events... | ||
export * from './trigger/s3'; | ||
export * from './trigger/s3-batch'; | ||
export * from './trigger/ses'; | ||
export * from './trigger/sns'; | ||
export * from './trigger/sqs'; | ||
export * from './trigger/msk'; | ||
export * from './trigger/self-managed-kafka'; | ||
export * from './trigger/secretsmanager'; | ||
export * from './trigger/s3-event-notification'; | ||
export * from './trigger/amplify-resolver'; | ||
export * from "./trigger/amplify-resolver"; | ||
export * from "./trigger/msk"; | ||
export * from "./trigger/s3"; | ||
export * from "./trigger/s3-batch"; | ||
export * from "./trigger/s3-event-notification"; | ||
export * from "./trigger/secretsmanager"; | ||
export * from "./trigger/self-managed-kafka"; | ||
export * from "./trigger/ses"; | ||
export * from "./trigger/sns"; | ||
export * from "./trigger/sqs"; | ||
export as namespace AWSLambda; |
{ | ||
"name": "@types/aws-lambda", | ||
"version": "8.10.119", | ||
"description": "TypeScript definitions for AWS Lambda", | ||
"version": "8.10.125", | ||
"description": "TypeScript definitions for aws-lambda", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda", | ||
@@ -10,209 +10,209 @@ "license": "MIT", | ||
"name": "James Darbyshire", | ||
"url": "https://github.com/darbio", | ||
"githubUsername": "darbio" | ||
"githubUsername": "darbio", | ||
"url": "https://github.com/darbio" | ||
}, | ||
{ | ||
"name": "Michael Skarum", | ||
"url": "https://github.com/skarum", | ||
"githubUsername": "skarum" | ||
"githubUsername": "skarum", | ||
"url": "https://github.com/skarum" | ||
}, | ||
{ | ||
"name": "Stef Heyenrath", | ||
"url": "https://github.com/StefH", | ||
"githubUsername": "StefH" | ||
"githubUsername": "StefH", | ||
"url": "https://github.com/StefH" | ||
}, | ||
{ | ||
"name": "Rich Buggy", | ||
"url": "https://github.com/buggy", | ||
"githubUsername": "buggy" | ||
"githubUsername": "buggy", | ||
"url": "https://github.com/buggy" | ||
}, | ||
{ | ||
"name": "Yoriki Yamaguchi", | ||
"url": "https://github.com/y13i", | ||
"githubUsername": "y13i" | ||
"githubUsername": "y13i", | ||
"url": "https://github.com/y13i" | ||
}, | ||
{ | ||
"name": "wwwy3y3", | ||
"url": "https://github.com/wwwy3y3", | ||
"githubUsername": "wwwy3y3" | ||
"githubUsername": "wwwy3y3", | ||
"url": "https://github.com/wwwy3y3" | ||
}, | ||
{ | ||
"name": "Ishaan Malhi", | ||
"url": "https://github.com/OrthoDex", | ||
"githubUsername": "OrthoDex" | ||
"githubUsername": "OrthoDex", | ||
"url": "https://github.com/OrthoDex" | ||
}, | ||
{ | ||
"name": "Michael Marner", | ||
"url": "https://github.com/MichaelMarner", | ||
"githubUsername": "MichaelMarner" | ||
"githubUsername": "MichaelMarner", | ||
"url": "https://github.com/MichaelMarner" | ||
}, | ||
{ | ||
"name": "Daniel Cottone", | ||
"url": "https://github.com/daniel-cottone", | ||
"githubUsername": "daniel-cottone" | ||
"githubUsername": "daniel-cottone", | ||
"url": "https://github.com/daniel-cottone" | ||
}, | ||
{ | ||
"name": "Kostya Misura", | ||
"url": "https://github.com/kostya-misura", | ||
"githubUsername": "kostya-misura" | ||
"githubUsername": "kostya-misura", | ||
"url": "https://github.com/kostya-misura" | ||
}, | ||
{ | ||
"name": "Markus Tacker", | ||
"url": "https://github.com/coderbyheart", | ||
"githubUsername": "coderbyheart" | ||
"githubUsername": "coderbyheart", | ||
"url": "https://github.com/coderbyheart" | ||
}, | ||
{ | ||
"name": "Palmi Valgeirsson", | ||
"url": "https://github.com/palmithor", | ||
"githubUsername": "palmithor" | ||
"githubUsername": "palmithor", | ||
"url": "https://github.com/palmithor" | ||
}, | ||
{ | ||
"name": "Danilo Raisi", | ||
"url": "https://github.com/daniloraisi", | ||
"githubUsername": "daniloraisi" | ||
"githubUsername": "daniloraisi", | ||
"url": "https://github.com/daniloraisi" | ||
}, | ||
{ | ||
"name": "Simon Buchan", | ||
"url": "https://github.com/simonbuchan", | ||
"githubUsername": "simonbuchan" | ||
"githubUsername": "simonbuchan", | ||
"url": "https://github.com/simonbuchan" | ||
}, | ||
{ | ||
"name": "David Hayden", | ||
"url": "https://github.com/Haydabase", | ||
"githubUsername": "Haydabase" | ||
"githubUsername": "Haydabase", | ||
"url": "https://github.com/Haydabase" | ||
}, | ||
{ | ||
"name": "Chris Redekop", | ||
"url": "https://github.com/repl-chris", | ||
"githubUsername": "repl-chris" | ||
"githubUsername": "repl-chris", | ||
"url": "https://github.com/repl-chris" | ||
}, | ||
{ | ||
"name": "Aneil Mallavarapu", | ||
"url": "https://github.com/aneilbaboo", | ||
"githubUsername": "aneilbaboo" | ||
"githubUsername": "aneilbaboo", | ||
"url": "https://github.com/aneilbaboo" | ||
}, | ||
{ | ||
"name": "Jeremy Nagel", | ||
"url": "https://github.com/jeznag", | ||
"githubUsername": "jeznag" | ||
"githubUsername": "jeznag", | ||
"url": "https://github.com/jeznag" | ||
}, | ||
{ | ||
"name": "Louis Larry", | ||
"url": "https://github.com/louislarry", | ||
"githubUsername": "louislarry" | ||
"githubUsername": "louislarry", | ||
"url": "https://github.com/louislarry" | ||
}, | ||
{ | ||
"name": "Daniel Papukchiev", | ||
"url": "https://github.com/dpapukchiev", | ||
"githubUsername": "dpapukchiev" | ||
"githubUsername": "dpapukchiev", | ||
"url": "https://github.com/dpapukchiev" | ||
}, | ||
{ | ||
"name": "Oliver Hookins", | ||
"url": "https://github.com/ohookins", | ||
"githubUsername": "ohookins" | ||
"githubUsername": "ohookins", | ||
"url": "https://github.com/ohookins" | ||
}, | ||
{ | ||
"name": "Trevor Leach", | ||
"url": "https://github.com/trevor-leach", | ||
"githubUsername": "trevor-leach" | ||
"githubUsername": "trevor-leach", | ||
"url": "https://github.com/trevor-leach" | ||
}, | ||
{ | ||
"name": "James Gregory", | ||
"url": "https://github.com/jagregory", | ||
"githubUsername": "jagregory" | ||
"githubUsername": "jagregory", | ||
"url": "https://github.com/jagregory" | ||
}, | ||
{ | ||
"name": "Erik Dalén", | ||
"url": "https://github.com/dalen", | ||
"githubUsername": "dalen" | ||
"githubUsername": "dalen", | ||
"url": "https://github.com/dalen" | ||
}, | ||
{ | ||
"name": "Loïk Gaonac'h", | ||
"url": "https://github.com/loikg", | ||
"githubUsername": "loikg" | ||
"githubUsername": "loikg", | ||
"url": "https://github.com/loikg" | ||
}, | ||
{ | ||
"name": "Roberto Zen", | ||
"url": "https://github.com/skyzenr", | ||
"githubUsername": "skyzenr" | ||
"githubUsername": "skyzenr", | ||
"url": "https://github.com/skyzenr" | ||
}, | ||
{ | ||
"name": "Grzegorz Redlicki", | ||
"url": "https://github.com/redlickigrzegorz", | ||
"githubUsername": "redlickigrzegorz" | ||
"githubUsername": "redlickigrzegorz", | ||
"url": "https://github.com/redlickigrzegorz" | ||
}, | ||
{ | ||
"name": "Juan Carbonel", | ||
"url": "https://github.com/juancarbonel", | ||
"githubUsername": "juancarbonel" | ||
"githubUsername": "juancarbonel", | ||
"url": "https://github.com/juancarbonel" | ||
}, | ||
{ | ||
"name": "Peter McIntyre", | ||
"url": "https://github.com/pwmcintyre", | ||
"githubUsername": "pwmcintyre" | ||
"githubUsername": "pwmcintyre", | ||
"url": "https://github.com/pwmcintyre" | ||
}, | ||
{ | ||
"name": "Alex Bolenok", | ||
"url": "https://github.com/alex-bolenok-centralreach", | ||
"githubUsername": "alex-bolenok-centralreach" | ||
"githubUsername": "alex-bolenok-centralreach", | ||
"url": "https://github.com/alex-bolenok-centralreach" | ||
}, | ||
{ | ||
"name": "Marian Zange", | ||
"url": "https://github.com/marianzange", | ||
"githubUsername": "marianzange" | ||
"githubUsername": "marianzange", | ||
"url": "https://github.com/marianzange" | ||
}, | ||
{ | ||
"name": "Alexander Pepper", | ||
"url": "https://github.com/apepper", | ||
"githubUsername": "apepper" | ||
"githubUsername": "apepper", | ||
"url": "https://github.com/apepper" | ||
}, | ||
{ | ||
"name": "Alessandro Palumbo", | ||
"url": "https://github.com/apalumbo", | ||
"githubUsername": "apalumbo" | ||
"githubUsername": "apalumbo", | ||
"url": "https://github.com/apalumbo" | ||
}, | ||
{ | ||
"name": "Sachin Shekhar", | ||
"url": "https://github.com/SachinShekhar", | ||
"githubUsername": "SachinShekhar" | ||
"githubUsername": "SachinShekhar", | ||
"url": "https://github.com/SachinShekhar" | ||
}, | ||
{ | ||
"name": "Ivan Martos", | ||
"url": "https://github.com/ivanmartos", | ||
"githubUsername": "ivanmartos" | ||
"githubUsername": "ivanmartos", | ||
"url": "https://github.com/ivanmartos" | ||
}, | ||
{ | ||
"name": "Zach Anthony", | ||
"url": "https://github.com/zach-anthony", | ||
"githubUsername": "zach-anthony" | ||
"githubUsername": "zach-anthony", | ||
"url": "https://github.com/zach-anthony" | ||
}, | ||
{ | ||
"name": "Peter Savnik", | ||
"url": "https://github.com/savnik", | ||
"githubUsername": "savnik" | ||
"githubUsername": "savnik", | ||
"url": "https://github.com/savnik" | ||
}, | ||
{ | ||
"name": "Benoit Boure", | ||
"url": "https://github.com/bboure", | ||
"githubUsername": "bboure" | ||
"githubUsername": "bboure", | ||
"url": "https://github.com/bboure" | ||
}, | ||
{ | ||
"name": "James Lakin", | ||
"url": "https://github.com/jamesorlakin", | ||
"githubUsername": "jamesorlakin" | ||
"githubUsername": "jamesorlakin", | ||
"url": "https://github.com/jamesorlakin" | ||
}, | ||
{ | ||
"name": "Ross Gerbasi", | ||
"url": "https://github.com/aphex", | ||
"githubUsername": "aphex" | ||
"githubUsername": "aphex", | ||
"url": "https://github.com/aphex" | ||
}, | ||
{ | ||
"name": "Joey Kilpatrick", | ||
"url": "https://github.com/joeykilpatrick", | ||
"githubUsername": "joeykilpatrick" | ||
"githubUsername": "joeykilpatrick", | ||
"url": "https://github.com/joeykilpatrick" | ||
}, | ||
{ | ||
"name": "Luciano Manerich Junior", | ||
"url": "https://github.com/lmanerich", | ||
"githubUsername": "lmanerich" | ||
"githubUsername": "lmanerich", | ||
"url": "https://github.com/lmanerich" | ||
} | ||
@@ -229,4 +229,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b5b92d08e7a724f51c2954d759288cbc2ea0732b06a903d2c0976252414fd1fb", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "93b7e4f08143daf90cef1207f603346543f9fd45422951bdbbfec19343d6941b", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for AWS Lambda (http://docs.aws.amazon.com/lambda). | ||
This package contains type definitions for aws-lambda (http://docs.aws.amazon.com/lambda). | ||
@@ -12,7 +12,6 @@ # Details | ||
### Additional Details | ||
* Last updated: Wed, 14 Jun 2023 22:02:44 GMT | ||
* Last updated: Tue, 17 Oct 2023 22:10:13 GMT | ||
* Dependencies: none | ||
* Global values: `AWSLambda` | ||
# Credits | ||
These definitions were written by [James Darbyshire](https://github.com/darbio), [Michael Skarum](https://github.com/skarum), [Stef Heyenrath](https://github.com/StefH), [Rich Buggy](https://github.com/buggy), [Yoriki Yamaguchi](https://github.com/y13i), [wwwy3y3](https://github.com/wwwy3y3), [Ishaan Malhi](https://github.com/OrthoDex), [Michael Marner](https://github.com/MichaelMarner), [Daniel Cottone](https://github.com/daniel-cottone), [Kostya Misura](https://github.com/kostya-misura), [Markus Tacker](https://github.com/coderbyheart), [Palmi Valgeirsson](https://github.com/palmithor), [Danilo Raisi](https://github.com/daniloraisi), [Simon Buchan](https://github.com/simonbuchan), [David Hayden](https://github.com/Haydabase), [Chris Redekop](https://github.com/repl-chris), [Aneil Mallavarapu](https://github.com/aneilbaboo), [Jeremy Nagel](https://github.com/jeznag), [Louis Larry](https://github.com/louislarry), [Daniel Papukchiev](https://github.com/dpapukchiev), [Oliver Hookins](https://github.com/ohookins), [Trevor Leach](https://github.com/trevor-leach), [James Gregory](https://github.com/jagregory), [Erik Dalén](https://github.com/dalen), [Loïk Gaonac'h](https://github.com/loikg), [Roberto Zen](https://github.com/skyzenr), [Grzegorz Redlicki](https://github.com/redlickigrzegorz), [Juan Carbonel](https://github.com/juancarbonel), [Peter McIntyre](https://github.com/pwmcintyre), [Alex Bolenok](https://github.com/alex-bolenok-centralreach), [Marian Zange](https://github.com/marianzange), [Alexander Pepper](https://github.com/apepper), [Alessandro Palumbo](https://github.com/apalumbo), [Sachin Shekhar](https://github.com/SachinShekhar), [Ivan Martos](https://github.com/ivanmartos), [Zach Anthony](https://github.com/zach-anthony), [Peter Savnik](https://github.com/savnik), [Benoit Boure](https://github.com/bboure), [James Lakin](https://github.com/jamesorlakin), [Ross Gerbasi](https://github.com/aphex), [Joey Kilpatrick](https://github.com/joeykilpatrick), and [Luciano Manerich Junior](https://github.com/lmanerich). |
@@ -1,2 +0,2 @@ | ||
import { Handler, Callback } from '../handler'; | ||
import { Callback, Handler } from "../handler"; | ||
@@ -3,0 +3,0 @@ export type ALBHandler = Handler<ALBEvent, ALBResult>; |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../handler'; | ||
import { AppSyncIdentity, AppSyncResolverEventHeaders } from './appsync-resolver'; | ||
import { Handler } from "../handler"; | ||
import { AppSyncIdentity, AppSyncResolverEventHeaders } from "./appsync-resolver"; | ||
@@ -4,0 +4,0 @@ /** |
@@ -5,5 +5,5 @@ import { | ||
APIGatewayEventRequestContextWithAuthorizer, | ||
} from '../common/api-gateway'; | ||
import { Callback, Handler } from '../handler'; | ||
import { APIGatewayEventRequestContextV2 } from './api-gateway-proxy'; | ||
} from "../common/api-gateway"; | ||
import { Callback, Handler } from "../handler"; | ||
import { APIGatewayEventRequestContextV2 } from "./api-gateway-proxy"; | ||
@@ -30,3 +30,3 @@ export type APIGatewayAuthorizerHandler = Handler<APIGatewayAuthorizerEvent, APIGatewayAuthorizerResult>; | ||
export interface APIGatewayTokenAuthorizerEvent { | ||
type: 'TOKEN'; | ||
type: "TOKEN"; | ||
methodArn: string; | ||
@@ -38,3 +38,3 @@ authorizationToken: string; | ||
version: string; | ||
type: 'REQUEST'; | ||
type: "REQUEST"; | ||
routeArn: string; | ||
@@ -83,3 +83,3 @@ identitySource: string[]; | ||
export interface APIGatewayRequestAuthorizerEvent { | ||
type: 'REQUEST'; | ||
type: "REQUEST"; | ||
methodArn: string; | ||
@@ -150,3 +150,4 @@ resource: string; | ||
export interface APIGatewaySimpleAuthorizerWithContextResult<TAuthorizerContext> | ||
extends APIGatewaySimpleAuthorizerResult { | ||
extends APIGatewaySimpleAuthorizerResult | ||
{ | ||
context: TAuthorizerContext; | ||
@@ -243,5 +244,7 @@ } | ||
export type StatementAction = { Action: string | string[] } | { NotAction: string | string[] }; | ||
export type StatementResource = MaybeStatementPrincipal & | ||
({ Resource: string | string[] } | { NotResource: string | string[] }); | ||
export type StatementPrincipal = MaybeStatementResource & | ||
({ Principal: PrincipalValue } | { NotPrincipal: PrincipalValue }); | ||
export type StatementResource = | ||
& MaybeStatementPrincipal | ||
& ({ Resource: string | string[] } | { NotResource: string | string[] }); | ||
export type StatementPrincipal = | ||
& MaybeStatementResource | ||
& ({ Principal: PrincipalValue } | { NotPrincipal: PrincipalValue }); |
@@ -5,4 +5,4 @@ import { | ||
APIGatewayEventRequestContextWithAuthorizer, | ||
} from '../common/api-gateway'; | ||
import { Callback, CognitoIdentity, Handler } from '../handler'; | ||
} from "../common/api-gateway"; | ||
import { Callback, CognitoIdentity, Handler } from "../handler"; | ||
@@ -94,8 +94,10 @@ /** | ||
// converting all number or boolean properties to string, and adding some extra properties. | ||
export type APIGatewayEventLambdaAuthorizerContext<TAuthorizerContext> = { | ||
[P in keyof TAuthorizerContext]: TAuthorizerContext[P] extends null ? null : string; | ||
} & { | ||
principalId: string; | ||
integrationLatency: number; | ||
}; | ||
export type APIGatewayEventLambdaAuthorizerContext<TAuthorizerContext> = | ||
& { | ||
[P in keyof TAuthorizerContext]: TAuthorizerContext[P] extends null ? null : string; | ||
} | ||
& { | ||
principalId: string; | ||
integrationLatency: number; | ||
}; | ||
@@ -158,9 +160,9 @@ export type APIGatewayProxyWithCognitoAuthorizerEvent = APIGatewayProxyEventBase<APIGatewayProxyCognitoAuthorizer>; | ||
| { | ||
[header: string]: boolean | number | string; | ||
} | ||
[header: string]: boolean | number | string; | ||
} | ||
| undefined; | ||
multiValueHeaders?: | ||
| { | ||
[header: string]: Array<boolean | number | string>; | ||
} | ||
[header: string]: Array<boolean | number | string>; | ||
} | ||
| undefined; | ||
@@ -204,6 +206,6 @@ body: string; | ||
messageId: string; | ||
eventType: 'CONNECT' | 'MESSAGE' | 'DISCONNECT'; | ||
eventType: "CONNECT" | "MESSAGE" | "DISCONNECT"; | ||
extendedRequestId: string; | ||
requestTime: string; | ||
messageDirection: 'IN'; | ||
messageDirection: "IN"; | ||
stage: string; | ||
@@ -307,4 +309,5 @@ connectedAt: number; | ||
*/ | ||
export type APIGatewayProxyWebsocketEventV2 = | ||
APIGatewayProxyWebsocketEventV2WithRequestContext<APIGatewayEventWebsocketRequestContextV2>; | ||
export type APIGatewayProxyWebsocketEventV2 = APIGatewayProxyWebsocketEventV2WithRequestContext< | ||
APIGatewayEventWebsocketRequestContextV2 | ||
>; | ||
@@ -326,4 +329,4 @@ /** | ||
| { | ||
[header: string]: boolean | number | string; | ||
} | ||
[header: string]: boolean | number | string; | ||
} | ||
| undefined; | ||
@@ -330,0 +333,0 @@ body?: string | undefined; |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -3,0 +3,0 @@ export type AppSyncResolverHandler<TArguments, TResult, TSource = Record<string, any> | null> = Handler< |
@@ -1,2 +0,2 @@ | ||
import { Handler, Callback } from '../handler'; | ||
import { Callback, Handler } from "../handler"; | ||
@@ -6,5 +6,5 @@ export type AutoScalingScaleInHandler = Handler<AutoScalingScaleInEvent, AutoScalingScaleInResult>; | ||
export type AutoScalingInstanceMarketOption = 'spot' | 'on-demand'; | ||
export type AutoScalingInstanceMarketOption = "spot" | "on-demand"; | ||
export type AutoScalingScaleInCause = 'SCALE_IN' | 'INSTANCE_REFRESH' | 'MAX_INSTANCE_LIFETIME' | 'REBALANCE'; | ||
export type AutoScalingScaleInCause = "SCALE_IN" | "INSTANCE_REFRESH" | "MAX_INSTANCE_LIFETIME" | "REBALANCE"; | ||
@@ -11,0 +11,0 @@ export interface AutoScalingTerminationRequest { |
@@ -1,3 +0,3 @@ | ||
import { CloudFormationCustomResourceEvent } from './cloudformation-custom-resource'; | ||
import { Handler, Callback } from '../handler'; | ||
import { Callback, Handler } from "../handler"; | ||
import { CloudFormationCustomResourceEvent } from "./cloudformation-custom-resource"; | ||
@@ -28,4 +28,4 @@ // The CDK docs only specify 'important' properties, but in reality the incoming event | ||
| { | ||
[Key: string]: any; | ||
} | ||
[Key: string]: any; | ||
} | ||
| undefined; | ||
@@ -51,4 +51,4 @@ // Any extra properties will be provided to the isComplete handler for asynchronous resources. | ||
| { | ||
[Key: string]: any; | ||
} | ||
[Key: string]: any; | ||
} | ||
| undefined; | ||
@@ -55,0 +55,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -33,7 +33,7 @@ // Note, responses are *not* lambda results, they are sent to the event ResponseURL. | ||
export interface CloudFormationCustomResourceCreateEvent extends CloudFormationCustomResourceEventCommon { | ||
RequestType: 'Create'; | ||
RequestType: "Create"; | ||
} | ||
export interface CloudFormationCustomResourceUpdateEvent extends CloudFormationCustomResourceEventCommon { | ||
RequestType: 'Update'; | ||
RequestType: "Update"; | ||
PhysicalResourceId: string; | ||
@@ -46,3 +46,3 @@ OldResourceProperties: { | ||
export interface CloudFormationCustomResourceDeleteEvent extends CloudFormationCustomResourceEventCommon { | ||
RequestType: 'Delete'; | ||
RequestType: "Delete"; | ||
PhysicalResourceId: string; | ||
@@ -58,4 +58,4 @@ } | ||
| { | ||
[Key: string]: any; | ||
} | ||
[Key: string]: any; | ||
} | ||
| undefined; | ||
@@ -66,3 +66,3 @@ NoEcho?: boolean | undefined; | ||
export interface CloudFormationCustomResourceSuccessResponse extends CloudFormationCustomResourceResponseCommon { | ||
Status: 'SUCCESS'; | ||
Status: "SUCCESS"; | ||
Reason?: string | undefined; | ||
@@ -72,4 +72,4 @@ } | ||
export interface CloudFormationCustomResourceFailedResponse extends CloudFormationCustomResourceResponseCommon { | ||
Status: 'FAILED'; | ||
Status: "FAILED"; | ||
Reason: string; | ||
} |
@@ -1,3 +0,3 @@ | ||
import type { CloudFrontEvent, CloudFrontRequest, CloudFrontResultResponse } from '../common/cloudfront'; | ||
import type { Handler, Callback } from '../handler'; | ||
import type { CloudFrontEvent, CloudFrontRequest, CloudFrontResultResponse } from "../common/cloudfront"; | ||
import type { Callback, Handler } from "../handler"; | ||
@@ -4,0 +4,0 @@ export type CloudFrontRequestHandler = Handler<CloudFrontRequestEvent, CloudFrontRequestResult>; |
@@ -1,3 +0,3 @@ | ||
import { CloudFrontEvent, CloudFrontRequest, CloudFrontResponse, CloudFrontResultResponse } from '../common/cloudfront'; | ||
import { Callback, Handler } from '../handler'; | ||
import { CloudFrontEvent, CloudFrontRequest, CloudFrontResponse, CloudFrontResultResponse } from "../common/cloudfront"; | ||
import { Callback, Handler } from "../handler"; | ||
@@ -15,3 +15,3 @@ export type CloudFrontResponseHandler = Handler<CloudFrontResponseEvent, CloudFrontResponseResult>; | ||
cf: CloudFrontEvent & { | ||
readonly request: Pick<CloudFrontRequest, Exclude<keyof CloudFrontRequest, 'body'>>; | ||
readonly request: Pick<CloudFrontRequest, Exclude<keyof CloudFrontRequest, "body">>; | ||
response: CloudFrontResponse; | ||
@@ -18,0 +18,0 @@ }; |
@@ -1,4 +0,4 @@ | ||
import { EventBridgeHandler, EventBridgeEvent } from '../trigger/eventbridge'; | ||
import { EventBridgeEvent, EventBridgeHandler } from "../trigger/eventbridge"; | ||
export type ScheduledHandler<TDetail = any> = EventBridgeHandler<'Scheduled Event', TDetail, void>; | ||
export type ScheduledHandler<TDetail = any> = EventBridgeHandler<"Scheduled Event", TDetail, void>; | ||
@@ -8,2 +8,2 @@ /** | ||
*/ | ||
export interface ScheduledEvent<TDetail = any> extends EventBridgeEvent<'Scheduled Event', TDetail> {} | ||
export interface ScheduledEvent<TDetail = any> extends EventBridgeEvent<"Scheduled Event", TDetail> {} |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -3,0 +3,0 @@ export type CloudWatchLogsHandler = Handler<CloudWatchLogsEvent, void>; |
@@ -1,5 +0,5 @@ | ||
import { EventBridgeEvent, EventBridgeHandler } from './eventbridge'; | ||
import { EventBridgeEvent, EventBridgeHandler } from "./eventbridge"; | ||
export type CodeBuildCloudWatchStateHandler = EventBridgeHandler< | ||
'CodeBuild Build State Change', | ||
"CodeBuild Build State Change", | ||
CodeBuildStateEventDetail, | ||
@@ -9,54 +9,54 @@ void | ||
export type CodeBuildStateType = 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED' | 'STOPPED'; | ||
export type CodeBuildStateType = "IN_PROGRESS" | "SUCCEEDED" | "FAILED" | "STOPPED"; | ||
export type CodeBuildPhaseType = | ||
| 'COMPLETED' | ||
| 'FINALIZING' | ||
| 'UPLOAD_ARTIFACTS' | ||
| 'POST_BUILD' | ||
| 'BUILD' | ||
| 'PRE_BUILD' | ||
| 'INSTALL' | ||
| 'QUEUED' | ||
| 'DOWNLOAD_SOURCE' | ||
| 'PROVISIONING' | ||
| 'SUBMITTED'; | ||
export type CodeBuildPhaseStatusType = 'TIMED_OUT' | 'STOPPED' | 'FAILED' | 'SUCCEEDED' | 'FAULT' | 'CLIENT_ERROR'; | ||
export type CodeBuildCacheType = 'NO_CACHE' | 'LOCAL' | 'S3'; | ||
| "COMPLETED" | ||
| "FINALIZING" | ||
| "UPLOAD_ARTIFACTS" | ||
| "POST_BUILD" | ||
| "BUILD" | ||
| "PRE_BUILD" | ||
| "INSTALL" | ||
| "QUEUED" | ||
| "DOWNLOAD_SOURCE" | ||
| "PROVISIONING" | ||
| "SUBMITTED"; | ||
export type CodeBuildPhaseStatusType = "TIMED_OUT" | "STOPPED" | "FAILED" | "SUCCEEDED" | "FAULT" | "CLIENT_ERROR"; | ||
export type CodeBuildCacheType = "NO_CACHE" | "LOCAL" | "S3"; | ||
export type CodeBuildSourceLocationType = | ||
| 'CODECOMMIT' | ||
| 'CODEPIPELINE' | ||
| 'GITHUB' | ||
| 'GITHUB_ENTERPRISE' | ||
| 'BITBUCKET' | ||
| 'S3' | ||
| 'NO_SOURCE'; | ||
| "CODECOMMIT" | ||
| "CODEPIPELINE" | ||
| "GITHUB" | ||
| "GITHUB_ENTERPRISE" | ||
| "BITBUCKET" | ||
| "S3" | ||
| "NO_SOURCE"; | ||
export type CodeBuildEnvironmentType = | ||
| 'LINUX_CONTAINER' | ||
| 'LINUX_GPU_CONTAINER' | ||
| 'WINDOWS_CONTAINER' | ||
| 'ARM_CONTAINER'; | ||
export type CodeBuildEnvironmentPullCredentialsType = 'CODEBUILD' | 'SERVICE_ROLE'; | ||
| "LINUX_CONTAINER" | ||
| "LINUX_GPU_CONTAINER" | ||
| "WINDOWS_CONTAINER" | ||
| "ARM_CONTAINER"; | ||
export type CodeBuildEnvironmentPullCredentialsType = "CODEBUILD" | "SERVICE_ROLE"; | ||
export type CodeBuildEnvironmentComputeType = | ||
| 'BUILD_GENERAL1_SMALL' | ||
| 'BUILD_GENERAL1_MEDIUM' | ||
| 'BUILD_GENERAL1_LARGE' | ||
| 'BUILD_GENERAL1_2XLARGE'; | ||
export type CodeBuildEnvironmentVariableType = 'PARAMETER_STORE' | 'PLAINTEXT' | 'SECRETS_MANAGER'; | ||
| "BUILD_GENERAL1_SMALL" | ||
| "BUILD_GENERAL1_MEDIUM" | ||
| "BUILD_GENERAL1_LARGE" | ||
| "BUILD_GENERAL1_2XLARGE"; | ||
export type CodeBuildEnvironmentVariableType = "PARAMETER_STORE" | "PLAINTEXT" | "SECRETS_MANAGER"; | ||
export interface CodeBuildStateEventDetail { | ||
'build-status': CodeBuildStateType; | ||
'project-name': string; | ||
'build-id': string; | ||
'current-phase': CodeBuildPhaseType; | ||
'current-phase-context': string; | ||
"build-status": CodeBuildStateType; | ||
"project-name": string; | ||
"build-id": string; | ||
"current-phase": CodeBuildPhaseType; | ||
"current-phase-context": string; | ||
version: string; | ||
'additional-information': { | ||
"additional-information": { | ||
cache: { | ||
type: CodeBuildCacheType; | ||
}; | ||
'build-number': number; | ||
'timeout-in-minutes': number; | ||
'build-complete': boolean; | ||
"build-number": number; | ||
"timeout-in-minutes": number; | ||
"build-complete": boolean; | ||
initiator: string; | ||
'build-start-time': string; | ||
"build-start-time": string; | ||
source: { | ||
@@ -67,3 +67,3 @@ buildspec: string; | ||
}; | ||
'source-version': string; | ||
"source-version": string; | ||
artifact: { | ||
@@ -74,7 +74,7 @@ location: string; | ||
image: string; | ||
'privileged-mode': boolean; | ||
'image-pull-credentials-type'?: CodeBuildEnvironmentPullCredentialsType | undefined; | ||
'compute-type': CodeBuildEnvironmentComputeType; | ||
"privileged-mode": boolean; | ||
"image-pull-credentials-type"?: CodeBuildEnvironmentPullCredentialsType | undefined; | ||
"compute-type": CodeBuildEnvironmentComputeType; | ||
type: CodeBuildEnvironmentType; | ||
'environment-variables': Array<{ | ||
"environment-variables": Array<{ | ||
name: string; | ||
@@ -85,17 +85,17 @@ type?: CodeBuildEnvironmentVariableType | undefined; | ||
}; | ||
'project-file-system-locations': []; | ||
"project-file-system-locations": []; | ||
logs: { | ||
'group-name': string; | ||
'stream-name': string; | ||
'deep-link': string; | ||
"group-name": string; | ||
"stream-name": string; | ||
"deep-link": string; | ||
}; | ||
phases: Array<{ | ||
'phase-context'?: string[] | undefined; // Not available for COMPLETED phase-type | ||
'start-time': string; | ||
'end-time'?: string | undefined; // Not available for COMPLETED phase-type | ||
'duration-in-seconds'?: number | undefined; // Not available for COMPLETED phase-type | ||
'phase-type': CodeBuildPhaseType; | ||
'phase-status'?: CodeBuildPhaseStatusType | undefined; // Not available for COMPLETED phase-type | ||
"phase-context"?: string[] | undefined; // Not available for COMPLETED phase-type | ||
"start-time": string; | ||
"end-time"?: string | undefined; // Not available for COMPLETED phase-type | ||
"duration-in-seconds"?: number | undefined; // Not available for COMPLETED phase-type | ||
"phase-type": CodeBuildPhaseType; | ||
"phase-status"?: CodeBuildPhaseStatusType | undefined; // Not available for COMPLETED phase-type | ||
}>; | ||
'queued-timeout-in-minutes': number; | ||
"queued-timeout-in-minutes": number; | ||
}; | ||
@@ -105,4 +105,5 @@ } | ||
export interface CodeBuildCloudWatchStateEvent | ||
extends EventBridgeEvent<'CodeBuild Build State Change', CodeBuildStateEventDetail> { | ||
source: 'aws.codebuild'; | ||
extends EventBridgeEvent<"CodeBuild Build State Change", CodeBuildStateEventDetail> | ||
{ | ||
source: "aws.codebuild"; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -3,0 +3,0 @@ export type CodeCommitHandler = Handler<CodeCommitTrigger, void>; |
@@ -1,7 +0,7 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
export type CodePipelineCloudWatchActionHandler = Handler<CodePipelineCloudWatchActionEvent, void>; | ||
export type CodePipelineActionCategory = 'Approval' | 'Build' | 'Deploy' | 'Invoke' | 'Source' | 'Test'; | ||
export type CodePipelineActionState = 'STARTED' | 'SUCCEEDED' | 'FAILED' | 'CANCELED'; | ||
export type CodePipelineActionCategory = "Approval" | "Build" | "Deploy" | "Invoke" | "Source" | "Test"; | ||
export type CodePipelineActionState = "STARTED" | "SUCCEEDED" | "FAILED" | "CANCELED"; | ||
@@ -11,4 +11,4 @@ export interface CodePipelineCloudWatchActionEvent { | ||
id: string; | ||
'detail-type': 'CodePipeline Action Execution State Change'; | ||
source: 'aws.codepipeline'; | ||
"detail-type": "CodePipeline Action Execution State Change"; | ||
source: "aws.codepipeline"; | ||
account: string; | ||
@@ -21,3 +21,3 @@ time: string; | ||
version: number; | ||
'execution-id': string; | ||
"execution-id": string; | ||
stage: string; | ||
@@ -27,3 +27,3 @@ action: string; | ||
type: { | ||
owner: 'AWS' | 'Custom' | 'ThirdParty'; | ||
owner: "AWS" | "Custom" | "ThirdParty"; | ||
category: CodePipelineActionCategory; | ||
@@ -30,0 +30,0 @@ provider: string; |
@@ -1,6 +0,6 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
export type CodePipelineCloudWatchPipelineHandler = Handler<CodePipelineCloudWatchPipelineEvent, void>; | ||
export type CodePipelineState = 'STARTED' | 'SUCCEEDED' | 'RESUMED' | 'FAILED' | 'CANCELED' | 'SUPERSEDED'; | ||
export type CodePipelineState = "STARTED" | "SUCCEEDED" | "RESUMED" | "FAILED" | "CANCELED" | "SUPERSEDED"; | ||
@@ -20,4 +20,4 @@ /** | ||
id: string; | ||
'detail-type': 'CodePipeline Pipeline Execution State Change'; | ||
source: 'aws.codepipeline'; | ||
"detail-type": "CodePipeline Pipeline Execution State Change"; | ||
source: "aws.codepipeline"; | ||
account: string; | ||
@@ -31,4 +31,4 @@ time: string; | ||
state: CodePipelineState; | ||
'execution-id': string; | ||
"execution-id": string; | ||
}; | ||
} |
@@ -1,6 +0,6 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
export type CodePipelineCloudWatchStageHandler = Handler<CodePipelineCloudWatchStageEvent, void>; | ||
export type CodePipelineStageState = 'STARTED' | 'SUCCEEDED' | 'RESUMED' | 'FAILED' | 'CANCELED'; | ||
export type CodePipelineStageState = "STARTED" | "SUCCEEDED" | "RESUMED" | "FAILED" | "CANCELED"; | ||
@@ -10,4 +10,4 @@ export interface CodePipelineCloudWatchStageEvent { | ||
id: string; | ||
'detail-type': 'CodePipeline Stage Execution State Change'; | ||
source: 'aws.codepipeline'; | ||
"detail-type": "CodePipeline Stage Execution State Change"; | ||
source: "aws.codepipeline"; | ||
account: string; | ||
@@ -20,3 +20,3 @@ time: string; | ||
version: number; | ||
'execution-id': string; | ||
"execution-id": string; | ||
stage: string; | ||
@@ -23,0 +23,0 @@ state: CodePipelineStageState; |
@@ -1,5 +0,5 @@ | ||
import { Handler } from '../handler'; | ||
import { CodePipelineCloudWatchActionEvent } from './codepipeline-cloudwatch-action'; | ||
import { CodePipelineCloudWatchPipelineEvent } from './codepipeline-cloudwatch-pipeline'; | ||
import { CodePipelineCloudWatchStageEvent } from './codepipeline-cloudwatch-stage'; | ||
import { Handler } from "../handler"; | ||
import { CodePipelineCloudWatchActionEvent } from "./codepipeline-cloudwatch-action"; | ||
import { CodePipelineCloudWatchPipelineEvent } from "./codepipeline-cloudwatch-pipeline"; | ||
import { CodePipelineCloudWatchStageEvent } from "./codepipeline-cloudwatch-stage"; | ||
@@ -6,0 +6,0 @@ export type CodePipelineCloudWatchHandler = Handler<CodePipelineCloudWatchEvent, void>; |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -14,3 +14,3 @@ export type CodePipelineHandler = Handler<CodePipelineEvent, void>; | ||
export interface S3ArtifactStore { | ||
type: 'S3'; | ||
type: "S3"; | ||
s3Location: S3ArtifactLocation; | ||
@@ -39,3 +39,3 @@ } | ||
export interface CodePipelineEvent { | ||
'CodePipeline.job': { | ||
"CodePipeline.job": { | ||
id: string; | ||
@@ -53,3 +53,3 @@ accountId: string; | ||
artifactCredentials: Credentials; | ||
encryptionKey?: (EncryptionKey & { type: 'KMS' }) | undefined; | ||
encryptionKey?: (EncryptionKey & { type: "KMS" }) | undefined; | ||
continuationToken?: string | undefined; | ||
@@ -56,0 +56,0 @@ }; |
@@ -6,8 +6,8 @@ export interface StringMap { | ||
export type ChallengeName = | ||
| 'PASSWORD_VERIFIER' | ||
| 'SMS_MFA' | ||
| 'DEVICE_SRP_AUTH' | ||
| 'DEVICE_PASSWORD_VERIFIER' | ||
| 'ADMIN_NO_SRP_AUTH' | ||
| 'SRP_A'; | ||
| "PASSWORD_VERIFIER" | ||
| "SMS_MFA" | ||
| "DEVICE_SRP_AUTH" | ||
| "DEVICE_PASSWORD_VERIFIER" | ||
| "ADMIN_NO_SRP_AUTH" | ||
| "SRP_A"; | ||
@@ -21,3 +21,3 @@ export interface ChallengeResult { | ||
export interface CustomChallengeResult { | ||
challengeName: 'CUSTOM_CHALLENGE'; | ||
challengeName: "CUSTOM_CHALLENGE"; | ||
challengeResult: boolean; | ||
@@ -24,0 +24,0 @@ challengeMetadata?: string | undefined; |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap, ChallengeResult, CustomChallengeResult } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, ChallengeResult, CustomChallengeResult, StringMap } from "./_common"; | ||
@@ -7,17 +7,17 @@ /** | ||
*/ | ||
export interface CreateAuthChallengeTriggerEvent extends BaseTriggerEvent<'CreateAuthChallenge_Authentication'> { | ||
request: { | ||
userAttributes: StringMap; | ||
challengeName: string; | ||
session: Array<ChallengeResult | CustomChallengeResult>; | ||
userNotFound?: boolean | undefined; | ||
clientMetadata?: StringMap | undefined; | ||
}; | ||
response: { | ||
publicChallengeParameters: StringMap; | ||
privateChallengeParameters: StringMap; | ||
challengeMetadata: string; | ||
}; | ||
export interface CreateAuthChallengeTriggerEvent extends BaseTriggerEvent<"CreateAuthChallenge_Authentication"> { | ||
request: { | ||
userAttributes: StringMap; | ||
challengeName: string; | ||
session: Array<ChallengeResult | CustomChallengeResult>; | ||
userNotFound?: boolean | undefined; | ||
clientMetadata?: StringMap | undefined; | ||
}; | ||
response: { | ||
publicChallengeParameters: StringMap; | ||
privateChallengeParameters: StringMap; | ||
challengeMetadata: string; | ||
}; | ||
} | ||
export type CreateAuthChallengeTriggerHandler = Handler<CreateAuthChallengeTriggerEvent>; |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
@@ -13,3 +13,3 @@ export interface BaseCustomEmailSenderTriggerEvent<T extends string> extends BaseTriggerEvent<T> { | ||
export type AccountTakeOverActionType = 'BLOCK' | 'NO_ACTION' | 'MFA' | 'MFA_IF_CONFIGURED' | 'MFA_REQUIRED'; | ||
export type AccountTakeOverActionType = "BLOCK" | "NO_ACTION" | "MFA" | "MFA_IF_CONFIGURED" | "MFA_REQUIRED"; | ||
@@ -31,21 +31,28 @@ export interface CustomEmailSender_AccountTakeOverNotification_UserAttributes { | ||
export interface CustomEmailSenderSignUpTriggerEvent | ||
extends BaseCustomEmailSenderTriggerEvent<'CustomEmailSender_SignUp'> {} | ||
extends BaseCustomEmailSenderTriggerEvent<"CustomEmailSender_SignUp"> | ||
{} | ||
export interface CustomEmailSenderResendCodeTriggerEvent | ||
extends BaseCustomEmailSenderTriggerEvent<'CustomEmailSender_ResendCode'> {} | ||
extends BaseCustomEmailSenderTriggerEvent<"CustomEmailSender_ResendCode"> | ||
{} | ||
export interface CustomEmailSenderForgotPasswordTriggerEvent | ||
extends BaseCustomEmailSenderTriggerEvent<'CustomEmailSender_ForgotPassword'> {} | ||
extends BaseCustomEmailSenderTriggerEvent<"CustomEmailSender_ForgotPassword"> | ||
{} | ||
export interface CustomEmailSenderUpdateUserAttributeTriggerEvent | ||
extends BaseCustomEmailSenderTriggerEvent<'CustomEmailSender_UpdateUserAttribute'> {} | ||
extends BaseCustomEmailSenderTriggerEvent<"CustomEmailSender_UpdateUserAttribute"> | ||
{} | ||
export interface CustomEmailSenderVerifyUserAttributeTriggerEvent | ||
extends BaseCustomEmailSenderTriggerEvent<'CustomEmailSender_VerifyUserAttribute'> {} | ||
extends BaseCustomEmailSenderTriggerEvent<"CustomEmailSender_VerifyUserAttribute"> | ||
{} | ||
export interface CustomEmailSenderAdminCreateUserTriggerEvent | ||
extends BaseCustomEmailSenderTriggerEvent<'CustomEmailSender_AdminCreateUser'> {} | ||
extends BaseCustomEmailSenderTriggerEvent<"CustomEmailSender_AdminCreateUser"> | ||
{} | ||
export interface CustomEmailSenderAccountTakeOverNotificationTriggerEvent | ||
extends BaseTriggerEvent<'CustomEmailSender_AccountTakeOverNotification'> { | ||
extends BaseTriggerEvent<"CustomEmailSender_AccountTakeOverNotification"> | ||
{ | ||
request: { | ||
@@ -52,0 +59,0 @@ type: string; |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
@@ -22,17 +22,19 @@ export interface BaseCustomMessageTriggerEvent<T extends string> extends BaseTriggerEvent<T> { | ||
export type CustomMessageAdminCreateUserTriggerEvent = BaseCustomMessageTriggerEvent<'CustomMessage_AdminCreateUser'>; | ||
export type CustomMessageAdminCreateUserTriggerEvent = BaseCustomMessageTriggerEvent<"CustomMessage_AdminCreateUser">; | ||
export type CustomMessageAuthenticationTriggerEvent = BaseCustomMessageTriggerEvent<'CustomMessage_Authentication'>; | ||
export type CustomMessageAuthenticationTriggerEvent = BaseCustomMessageTriggerEvent<"CustomMessage_Authentication">; | ||
export type CustomMessageForgotPasswordTriggerEvent = BaseCustomMessageTriggerEvent<'CustomMessage_ForgotPassword'>; | ||
export type CustomMessageForgotPasswordTriggerEvent = BaseCustomMessageTriggerEvent<"CustomMessage_ForgotPassword">; | ||
export type CustomMessageResendCodeTriggerEvent = BaseCustomMessageTriggerEvent<'CustomMessage_ResendCode'>; | ||
export type CustomMessageResendCodeTriggerEvent = BaseCustomMessageTriggerEvent<"CustomMessage_ResendCode">; | ||
export type CustomMessageSignUpTriggerEvent = BaseCustomMessageTriggerEvent<'CustomMessage_SignUp'>; | ||
export type CustomMessageSignUpTriggerEvent = BaseCustomMessageTriggerEvent<"CustomMessage_SignUp">; | ||
export type CustomMessageUpdateUserAttributeTriggerEvent = | ||
BaseCustomMessageTriggerEvent<'CustomMessage_UpdateUserAttribute'>; | ||
export type CustomMessageUpdateUserAttributeTriggerEvent = BaseCustomMessageTriggerEvent< | ||
"CustomMessage_UpdateUserAttribute" | ||
>; | ||
export type CustomMessageVerifyUserAttributeTriggerEvent = | ||
BaseCustomMessageTriggerEvent<'CustomMessage_VerifyUserAttribute'>; | ||
export type CustomMessageVerifyUserAttributeTriggerEvent = BaseCustomMessageTriggerEvent< | ||
"CustomMessage_VerifyUserAttribute" | ||
>; | ||
@@ -39,0 +41,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
@@ -13,21 +13,27 @@ export interface BaseCustomSMSSenderTriggerEvent<T extends string> extends BaseTriggerEvent<T> { | ||
export interface CustomSMSSenderSignUpTriggerEvent extends BaseCustomSMSSenderTriggerEvent<'CustomSMSSender_SignUp'> {} | ||
export interface CustomSMSSenderSignUpTriggerEvent extends BaseCustomSMSSenderTriggerEvent<"CustomSMSSender_SignUp"> {} | ||
export interface CustomSMSSenderResendCodeTriggerEvent | ||
extends BaseCustomSMSSenderTriggerEvent<'CustomSMSSender_ResendCode'> {} | ||
extends BaseCustomSMSSenderTriggerEvent<"CustomSMSSender_ResendCode"> | ||
{} | ||
export interface CustomSMSSenderForgotPasswordTriggerEvent | ||
extends BaseCustomSMSSenderTriggerEvent<'CustomSMSSender_ForgotPassword'> {} | ||
extends BaseCustomSMSSenderTriggerEvent<"CustomSMSSender_ForgotPassword"> | ||
{} | ||
export interface CustomSMSSenderUpdateUserAttributeTriggerEvent | ||
extends BaseCustomSMSSenderTriggerEvent<'CustomSMSSender_UpdateUserAttribute'> {} | ||
extends BaseCustomSMSSenderTriggerEvent<"CustomSMSSender_UpdateUserAttribute"> | ||
{} | ||
export interface CustomSMSSenderVerifyUserAttributeTriggerEvent | ||
extends BaseCustomSMSSenderTriggerEvent<'CustomSMSSender_VerifyUserAttribute'> {} | ||
extends BaseCustomSMSSenderTriggerEvent<"CustomSMSSender_VerifyUserAttribute"> | ||
{} | ||
export interface CustomSMSSenderAdminCreateUserTriggerEvent | ||
extends BaseCustomSMSSenderTriggerEvent<'CustomSMSSender_AdminCreateUser'> {} | ||
extends BaseCustomSMSSenderTriggerEvent<"CustomSMSSender_AdminCreateUser"> | ||
{} | ||
export interface CustomSMSSenderAuthenticationUserTriggerEvent | ||
extends BaseCustomSMSSenderTriggerEvent<'CustomSMSSender_Authentication'> {} | ||
extends BaseCustomSMSSenderTriggerEvent<"CustomSMSSender_Authentication"> | ||
{} | ||
@@ -34,0 +40,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap, ChallengeResult, CustomChallengeResult } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, ChallengeResult, CustomChallengeResult, StringMap } from "./_common"; | ||
@@ -7,16 +7,16 @@ /** | ||
*/ | ||
export interface DefineAuthChallengeTriggerEvent extends BaseTriggerEvent<'DefineAuthChallenge_Authentication'> { | ||
request: { | ||
userAttributes: StringMap; | ||
session: Array<ChallengeResult | CustomChallengeResult>; | ||
userNotFound?: boolean | undefined; | ||
clientMetadata?: StringMap | undefined; | ||
}; | ||
response: { | ||
challengeName: string; | ||
failAuthentication: boolean; | ||
issueTokens: boolean; | ||
}; | ||
export interface DefineAuthChallengeTriggerEvent extends BaseTriggerEvent<"DefineAuthChallenge_Authentication"> { | ||
request: { | ||
userAttributes: StringMap; | ||
session: Array<ChallengeResult | CustomChallengeResult>; | ||
userNotFound?: boolean | undefined; | ||
clientMetadata?: StringMap | undefined; | ||
}; | ||
response: { | ||
challengeName: string; | ||
failAuthentication: boolean; | ||
issueTokens: boolean; | ||
}; | ||
} | ||
export type DefineAuthChallengeTriggerHandler = Handler<DefineAuthChallengeTriggerEvent>; |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../../handler'; | ||
import { Handler } from "../../handler"; | ||
@@ -11,26 +11,26 @@ /** | ||
triggerSource: | ||
| 'PreSignUp_SignUp' | ||
| 'PreSignUp_ExternalProvider' | ||
| 'PostConfirmation_ConfirmSignUp' | ||
| 'PreAuthentication_Authentication' | ||
| 'PostAuthentication_Authentication' | ||
| 'CustomMessage_SignUp' | ||
| 'CustomMessage_AdminCreateUser' | ||
| 'CustomMessage_ResendCode' | ||
| 'CustomMessage_ForgotPassword' | ||
| 'CustomMessage_UpdateUserAttribute' | ||
| 'CustomMessage_VerifyUserAttribute' | ||
| 'CustomMessage_Authentication' | ||
| 'DefineAuthChallenge_Authentication' | ||
| 'CreateAuthChallenge_Authentication' | ||
| 'VerifyAuthChallengeResponse_Authentication' | ||
| 'PreSignUp_AdminCreateUser' | ||
| 'PostConfirmation_ConfirmForgotPassword' | ||
| 'TokenGeneration_HostedAuth' | ||
| 'TokenGeneration_Authentication' | ||
| 'TokenGeneration_NewPasswordChallenge' | ||
| 'TokenGeneration_AuthenticateDevice' | ||
| 'TokenGeneration_RefreshTokens' | ||
| 'UserMigration_Authentication' | ||
| 'UserMigration_ForgotPassword'; | ||
| "PreSignUp_SignUp" | ||
| "PreSignUp_ExternalProvider" | ||
| "PostConfirmation_ConfirmSignUp" | ||
| "PreAuthentication_Authentication" | ||
| "PostAuthentication_Authentication" | ||
| "CustomMessage_SignUp" | ||
| "CustomMessage_AdminCreateUser" | ||
| "CustomMessage_ResendCode" | ||
| "CustomMessage_ForgotPassword" | ||
| "CustomMessage_UpdateUserAttribute" | ||
| "CustomMessage_VerifyUserAttribute" | ||
| "CustomMessage_Authentication" | ||
| "DefineAuthChallenge_Authentication" | ||
| "CreateAuthChallenge_Authentication" | ||
| "VerifyAuthChallengeResponse_Authentication" | ||
| "PreSignUp_AdminCreateUser" | ||
| "PostConfirmation_ConfirmForgotPassword" | ||
| "TokenGeneration_HostedAuth" | ||
| "TokenGeneration_Authentication" | ||
| "TokenGeneration_NewPasswordChallenge" | ||
| "TokenGeneration_AuthenticateDevice" | ||
| "TokenGeneration_RefreshTokens" | ||
| "UserMigration_Authentication" | ||
| "UserMigration_ForgotPassword"; | ||
region: string; | ||
@@ -52,13 +52,13 @@ userPoolId: string; | ||
| Array<{ | ||
challengeName: | ||
| 'CUSTOM_CHALLENGE' | ||
| 'PASSWORD_VERIFIER' | ||
| 'SMS_MFA' | ||
| 'DEVICE_SRP_AUTH' | ||
| 'DEVICE_PASSWORD_VERIFIER' | ||
| 'ADMIN_NO_SRP_AUTH' | ||
| 'SRP_A'; | ||
challengeResult: boolean; | ||
challengeMetadata?: string | undefined; | ||
}> | ||
challengeName: | ||
| "CUSTOM_CHALLENGE" | ||
| "PASSWORD_VERIFIER" | ||
| "SMS_MFA" | ||
| "DEVICE_SRP_AUTH" | ||
| "DEVICE_PASSWORD_VERIFIER" | ||
| "ADMIN_NO_SRP_AUTH" | ||
| "SRP_A"; | ||
challengeResult: boolean; | ||
challengeMetadata?: string | undefined; | ||
}> | ||
| undefined; | ||
@@ -87,19 +87,19 @@ challengeName?: string | undefined; | ||
userAttributes?: { [key: string]: string } | undefined; | ||
finalUserStatus?: 'CONFIRMED' | 'RESET_REQUIRED' | undefined; | ||
messageAction?: 'SUPPRESS' | undefined; | ||
desiredDeliveryMediums?: Array<'EMAIL' | 'SMS'> | undefined; | ||
finalUserStatus?: "CONFIRMED" | "RESET_REQUIRED" | undefined; | ||
messageAction?: "SUPPRESS" | undefined; | ||
desiredDeliveryMediums?: Array<"EMAIL" | "SMS"> | undefined; | ||
forceAliasCreation?: boolean | undefined; | ||
claimsOverrideDetails?: | ||
| { | ||
claimsToAddOrOverride?: { [key: string]: string } | undefined; | ||
claimsToSuppress?: string[] | undefined; | ||
groupOverrideDetails?: | ||
| null | ||
| { | ||
groupsToOverride?: string[] | undefined; | ||
iamRolesToOverride?: string[] | undefined; | ||
preferredRole?: string | undefined; | ||
} | ||
| undefined; | ||
} | ||
claimsToAddOrOverride?: { [key: string]: string } | undefined; | ||
claimsToSuppress?: string[] | undefined; | ||
groupOverrideDetails?: | ||
| null | ||
| { | ||
groupsToOverride?: string[] | undefined; | ||
iamRolesToOverride?: string[] | undefined; | ||
preferredRole?: string | undefined; | ||
} | ||
| undefined; | ||
} | ||
| undefined; | ||
@@ -119,13 +119,13 @@ }; | ||
export * from './create-auth-challenge'; | ||
export * from './custom-message'; | ||
export * from './custom-email-sender'; | ||
export * from './custom-sms-sender'; | ||
export * from './define-auth-challenge'; | ||
export * from './post-authentication'; | ||
export * from './post-confirmation'; | ||
export * from './pre-authentication'; | ||
export * from './pre-signup'; | ||
export * from './pre-token-generation'; | ||
export * from './user-migration'; | ||
export * from './verify-auth-challenge-response'; | ||
export * from "./create-auth-challenge"; | ||
export * from "./custom-email-sender"; | ||
export * from "./custom-message"; | ||
export * from "./custom-sms-sender"; | ||
export * from "./define-auth-challenge"; | ||
export * from "./post-authentication"; | ||
export * from "./post-confirmation"; | ||
export * from "./pre-authentication"; | ||
export * from "./pre-signup"; | ||
export * from "./pre-token-generation"; | ||
export * from "./user-migration"; | ||
export * from "./verify-auth-challenge-response"; |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
@@ -7,3 +7,3 @@ /** | ||
*/ | ||
export interface PostAuthenticationTriggerEvent extends BaseTriggerEvent<'PostAuthentication_Authentication'> { | ||
export interface PostAuthenticationTriggerEvent extends BaseTriggerEvent<"PostAuthentication_Authentication"> { | ||
request: { | ||
@@ -10,0 +10,0 @@ userAttributes: StringMap; |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
@@ -11,7 +11,9 @@ export interface BasePostConfirmationTriggerEvent<T extends string> extends BaseTriggerEvent<T> { | ||
export type PostConfirmationConfirmSignUpTriggerEvent = | ||
BasePostConfirmationTriggerEvent<'PostConfirmation_ConfirmSignUp'>; | ||
export type PostConfirmationConfirmSignUpTriggerEvent = BasePostConfirmationTriggerEvent< | ||
"PostConfirmation_ConfirmSignUp" | ||
>; | ||
export type PostConfirmationConfirmForgotPassword = | ||
BasePostConfirmationTriggerEvent<'PostConfirmation_ConfirmForgotPassword'>; | ||
export type PostConfirmationConfirmForgotPassword = BasePostConfirmationTriggerEvent< | ||
"PostConfirmation_ConfirmForgotPassword" | ||
>; | ||
@@ -18,0 +20,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
@@ -7,11 +7,11 @@ /** | ||
*/ | ||
export interface PreAuthenticationTriggerEvent extends BaseTriggerEvent<'PreAuthentication_Authentication'> { | ||
request: { | ||
userAttributes: StringMap; | ||
userNotFound?: boolean | undefined; | ||
validationData?: StringMap | undefined; | ||
clientMetadata?: StringMap | undefined; | ||
}; | ||
export interface PreAuthenticationTriggerEvent extends BaseTriggerEvent<"PreAuthentication_Authentication"> { | ||
request: { | ||
userAttributes: StringMap; | ||
userNotFound?: boolean | undefined; | ||
validationData?: StringMap | undefined; | ||
clientMetadata?: StringMap | undefined; | ||
}; | ||
} | ||
export type PreAuthenticationTriggerHandler = Handler<PreAuthenticationTriggerEvent>; |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
@@ -17,7 +17,7 @@ export interface BasePreSignUpTriggerEvent<T extends string> extends BaseTriggerEvent<T> { | ||
export type PreSignUpEmailTriggerEvent = BasePreSignUpTriggerEvent<'PreSignUp_SignUp'>; | ||
export type PreSignUpEmailTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_SignUp">; | ||
export type PreSignUpExternalProviderTriggerEvent = BasePreSignUpTriggerEvent<'PreSignUp_ExternalProvider'>; | ||
export type PreSignUpExternalProviderTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_ExternalProvider">; | ||
export type PreSignUpAdminCreateUserTriggerEvent = BasePreSignUpTriggerEvent<'PreSignUp_AdminCreateUser'>; | ||
export type PreSignUpAdminCreateUserTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_AdminCreateUser">; | ||
@@ -24,0 +24,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
@@ -25,15 +25,19 @@ export interface GroupOverrideDetails { | ||
export type PreTokenGenerationHostedAuthTriggerEvent = BasePreTokenGenerationTriggerEvent<'TokenGeneration_HostedAuth'>; | ||
export type PreTokenGenerationHostedAuthTriggerEvent = BasePreTokenGenerationTriggerEvent<"TokenGeneration_HostedAuth">; | ||
export type PreTokenGenerationAuthenticationTriggerEvent = | ||
BasePreTokenGenerationTriggerEvent<'TokenGeneration_Authentication'>; | ||
export type PreTokenGenerationAuthenticationTriggerEvent = BasePreTokenGenerationTriggerEvent< | ||
"TokenGeneration_Authentication" | ||
>; | ||
export type PreTokenGenerationNewPasswordChallengeTriggerEvent = | ||
BasePreTokenGenerationTriggerEvent<'TokenGeneration_NewPasswordChallenge'>; | ||
export type PreTokenGenerationNewPasswordChallengeTriggerEvent = BasePreTokenGenerationTriggerEvent< | ||
"TokenGeneration_NewPasswordChallenge" | ||
>; | ||
export type PreTokenGenerationAuthenticateDeviceTriggerEvent = | ||
BasePreTokenGenerationTriggerEvent<'TokenGeneration_AuthenticateDevice'>; | ||
export type PreTokenGenerationAuthenticateDeviceTriggerEvent = BasePreTokenGenerationTriggerEvent< | ||
"TokenGeneration_AuthenticateDevice" | ||
>; | ||
export type PreTokenGenerationRefreshTokensTriggerEvent = | ||
BasePreTokenGenerationTriggerEvent<'TokenGeneration_RefreshTokens'>; | ||
export type PreTokenGenerationRefreshTokensTriggerEvent = BasePreTokenGenerationTriggerEvent< | ||
"TokenGeneration_RefreshTokens" | ||
>; | ||
@@ -40,0 +44,0 @@ /** |
@@ -1,12 +0,12 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
export type UserStatus = | ||
| 'UNCONFIRMED' | ||
| 'CONFIRMED' | ||
| 'ARCHIVED' | ||
| 'COMPROMISED' | ||
| 'UNKNOWN' | ||
| 'RESET_REQUIRED' | ||
| 'FORCE_CHANGE_PASSWORD'; | ||
| "UNCONFIRMED" | ||
| "CONFIRMED" | ||
| "ARCHIVED" | ||
| "COMPROMISED" | ||
| "UNKNOWN" | ||
| "RESET_REQUIRED" | ||
| "FORCE_CHANGE_PASSWORD"; | ||
@@ -22,4 +22,4 @@ export interface BaseUserMigrationTriggerEvent<T extends string> extends BaseTriggerEvent<T> { | ||
finalUserStatus?: UserStatus | undefined; | ||
messageAction?: 'RESEND' | 'SUPPRESS' | undefined; | ||
desiredDeliveryMediums: Array<'SMS' | 'EMAIL'>; | ||
messageAction?: "RESEND" | "SUPPRESS" | undefined; | ||
desiredDeliveryMediums: Array<"SMS" | "EMAIL">; | ||
forceAliasCreation?: boolean | undefined; | ||
@@ -29,5 +29,5 @@ }; | ||
export type UserMigrationAuthenticationTriggerEvent = BaseUserMigrationTriggerEvent<'UserMigration_Authentication'>; | ||
export type UserMigrationAuthenticationTriggerEvent = BaseUserMigrationTriggerEvent<"UserMigration_Authentication">; | ||
export type UserMigrationForgotPasswordTriggerEvent = BaseUserMigrationTriggerEvent<'UserMigration_ForgotPassword'>; | ||
export type UserMigrationForgotPasswordTriggerEvent = BaseUserMigrationTriggerEvent<"UserMigration_ForgotPassword">; | ||
@@ -34,0 +34,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { Handler } from '../../handler'; | ||
import { BaseTriggerEvent, StringMap } from './_common'; | ||
import { Handler } from "../../handler"; | ||
import { BaseTriggerEvent, StringMap } from "./_common"; | ||
@@ -7,15 +7,17 @@ /** | ||
*/ | ||
export interface VerifyAuthChallengeResponseTriggerEvent extends BaseTriggerEvent<'VerifyAuthChallengeResponse_Authentication'> { | ||
request: { | ||
userAttributes: StringMap; | ||
privateChallengeParameters: StringMap; | ||
challengeAnswer: string; | ||
userNotFound?: boolean | undefined; | ||
clientMetadata?: StringMap | undefined; | ||
}; | ||
response: { | ||
answerCorrect: boolean; | ||
}; | ||
export interface VerifyAuthChallengeResponseTriggerEvent | ||
extends BaseTriggerEvent<"VerifyAuthChallengeResponse_Authentication"> | ||
{ | ||
request: { | ||
userAttributes: StringMap; | ||
privateChallengeParameters: StringMap; | ||
challengeAnswer: string; | ||
userNotFound?: boolean | undefined; | ||
clientMetadata?: StringMap | undefined; | ||
}; | ||
response: { | ||
answerCorrect: boolean; | ||
}; | ||
} | ||
export type VerifyAuthChallengeResponseTriggerHandler = Handler<VerifyAuthChallengeResponseTriggerEvent>; |
@@ -1,2 +0,2 @@ | ||
import { Callback, Handler } from '../handler'; | ||
import { Callback, Handler } from "../handler"; | ||
@@ -29,12 +29,12 @@ export type ConnectContactFlowHandler = Handler<ConnectContactFlowEvent, ConnectContactFlowResult>; | ||
}; | ||
Name: 'ContactFlowEvent'; | ||
Name: "ContactFlowEvent"; | ||
} | ||
export type ConnectContactFlowChannel = 'VOICE' | 'CHAT'; | ||
export type ConnectContactFlowChannel = "VOICE" | "CHAT"; | ||
export type ConnectContactFlowInitiationMethod = 'INBOUND' | 'OUTBOUND' | 'TRANSFER' | 'CALLBACK' | 'API'; | ||
export type ConnectContactFlowInitiationMethod = "INBOUND" | "OUTBOUND" | "TRANSFER" | "CALLBACK" | "API"; | ||
export interface ConnectContactFlowEndpoint { | ||
Address: string; | ||
Type: 'TELEPHONE_NUMBER'; | ||
Type: "TELEPHONE_NUMBER"; | ||
} | ||
@@ -41,0 +41,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -28,3 +28,3 @@ // tslint:disable-next-line:void-return | ||
SizeBytes?: number | undefined; | ||
StreamViewType?: 'KEYS_ONLY' | 'NEW_IMAGE' | 'OLD_IMAGE' | 'NEW_AND_OLD_IMAGES' | undefined; | ||
StreamViewType?: "KEYS_ONLY" | "NEW_IMAGE" | "OLD_IMAGE" | "NEW_AND_OLD_IMAGES" | undefined; | ||
} | ||
@@ -37,3 +37,3 @@ | ||
eventID?: string | undefined; | ||
eventName?: 'INSERT' | 'MODIFY' | 'REMOVE' | undefined; | ||
eventName?: "INSERT" | "MODIFY" | "REMOVE" | undefined; | ||
eventSource?: string | undefined; | ||
@@ -40,0 +40,0 @@ eventSourceARN?: string | undefined; |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -16,5 +16,5 @@ export type EventBridgeHandler<TDetailType extends string, TDetail, TResult> = Handler< | ||
source: string; | ||
'detail-type': TDetailType; | ||
"detail-type": TDetailType; | ||
detail: TDetail; | ||
'replay-name'?: string; | ||
"replay-name"?: string; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -3,0 +3,0 @@ export type IoTHandler = Handler<IoTEvent, void>; |
@@ -1,2 +0,2 @@ | ||
import { Callback, Handler } from '../handler'; | ||
import { Callback, Handler } from "../handler"; | ||
@@ -35,3 +35,3 @@ export type FirehoseTransformationHandler = Handler<FirehoseTransformationEvent, FirehoseTransformationResult>; | ||
export type FirehoseRecordTransformationStatus = 'Ok' | 'Dropped' | 'ProcessingFailed'; | ||
export type FirehoseRecordTransformationStatus = "Ok" | "Dropped" | "ProcessingFailed"; | ||
@@ -46,3 +46,3 @@ export interface FirehoseTransformationMetadata { | ||
/** Encode in Base64 */ | ||
data: string; | ||
data?: string; | ||
metadata?: FirehoseTransformationMetadata; | ||
@@ -49,0 +49,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -3,0 +3,0 @@ // tslint:disable-next-line:void-return |
@@ -1,2 +0,2 @@ | ||
import { Callback, Handler } from '../handler'; | ||
import { Callback, Handler } from "../handler"; | ||
@@ -10,4 +10,4 @@ export type LexV2Handler = Handler<LexV2Event, LexV2Result>; | ||
messageVersion: string; | ||
invocationSource: 'DialogCodeHook' | 'FulfillmentCodeHook'; | ||
inputMode: 'DTMF' | 'Speech' | 'Text'; | ||
invocationSource: "DialogCodeHook" | "FulfillmentCodeHook"; | ||
inputMode: "DTMF" | "Speech" | "Text"; | ||
responseContentType: string; | ||
@@ -43,3 +43,3 @@ sessionId: string; | ||
export interface LexV2Intent { | ||
confirmationState: 'Confirmed' | 'Denied' | 'None'; | ||
confirmationState: "Confirmed" | "Denied" | "None"; | ||
name: string; | ||
@@ -52,8 +52,8 @@ slots: LexV2Slots; | ||
export type LexV2IntentState = | ||
| 'Failed' | ||
| 'Fulfilled' | ||
| 'FulfillmentInProgress' | ||
| 'InProgress' | ||
| 'ReadyForFulfillment' | ||
| 'Waiting'; | ||
| "Failed" | ||
| "Fulfilled" | ||
| "FulfillmentInProgress" | ||
| "InProgress" | ||
| "ReadyForFulfillment" | ||
| "Waiting"; | ||
@@ -90,14 +90,14 @@ export interface LexV2SentimentResponse { | ||
export type LevV2DialogActionWithoutSlot = | ||
| { type: 'Close' } | ||
| { type: 'ConfirmIntent' } | ||
| { type: 'Delegate' } | ||
| { type: 'ElicitIntent' }; | ||
| { type: "Close" } | ||
| { type: "ConfirmIntent" } | ||
| { type: "Delegate" } | ||
| { type: "ElicitIntent" }; | ||
export type LexV2DialogAction = | ||
| (LevV2DialogActionWithoutSlot & { slotToElicit?: never }) | ||
| { type: 'ElicitSlot'; slotToElicit: string }; | ||
| { type: "ElicitSlot"; slotToElicit: string }; | ||
export type LexV2ResultDialogAction = | ||
| (LevV2DialogActionWithoutSlot & { slotToElicit?: never }) | ||
| { type: 'ElicitSlot'; slotToElicit: string; slotElicitationStyle: 'Default' | 'SpellByLetter' | 'SpellByWord' }; | ||
| { type: "ElicitSlot"; slotToElicit: string; slotElicitationStyle: "Default" | "SpellByLetter" | "SpellByWord" }; | ||
@@ -120,3 +120,3 @@ export interface LexV2Result { | ||
export interface LexV2ContentMessage { | ||
contentType: 'CustomPayload' | 'PlainText' | 'SSML'; | ||
contentType: "CustomPayload" | "PlainText" | "SSML"; | ||
content: string; | ||
@@ -126,3 +126,3 @@ } | ||
export interface LexV2ImageResponseCardMessage { | ||
contentType: 'ImageResponseCard'; | ||
contentType: "ImageResponseCard"; | ||
imageResponseCard: LexV2ImageResponseCard; | ||
@@ -147,3 +147,3 @@ } | ||
export interface LexV2ScalarSlotValue { | ||
shape: 'Scalar'; | ||
shape: "Scalar"; | ||
value: LexV2SlotValue; | ||
@@ -153,3 +153,3 @@ } | ||
export interface LexV2ListSlotValue { | ||
shape: 'List'; | ||
shape: "List"; | ||
value: LexV2SlotValue; | ||
@@ -156,0 +156,0 @@ values: LexV2ScalarSlotValue[]; |
@@ -1,2 +0,2 @@ | ||
import { Callback, Handler } from '../handler'; | ||
import { Callback, Handler } from "../handler"; | ||
@@ -25,3 +25,3 @@ export type LexHandler = Handler<LexEvent, LexResult>; | ||
slotDetails: LexSlotDetails; | ||
confirmationStatus: 'None' | 'Confirmed' | 'Denied'; | ||
confirmationStatus: "None" | "Confirmed" | "Denied"; | ||
}; | ||
@@ -35,5 +35,5 @@ bot: { | ||
inputTranscript: string; | ||
invocationSource: 'DialogCodeHook' | 'FulfillmentCodeHook'; | ||
outputDialogMode: 'Text' | 'Voice'; | ||
messageVersion: '1.0'; | ||
invocationSource: "DialogCodeHook" | "FulfillmentCodeHook"; | ||
outputDialogMode: "Text" | "Voice"; | ||
messageVersion: "1.0"; | ||
sessionAttributes: LexEventSessionAttributes; | ||
@@ -69,15 +69,15 @@ requestAttributes: LexEventRequestAttributes | null; | ||
export interface LexDialogActionBase { | ||
type: 'Close' | 'ElicitIntent' | 'ElicitSlot' | 'ConfirmIntent'; | ||
type: "Close" | "ElicitIntent" | "ElicitSlot" | "ConfirmIntent"; | ||
message?: | ||
| { | ||
contentType: 'PlainText' | 'SSML' | 'CustomPayload'; | ||
content: string; | ||
} | ||
contentType: "PlainText" | "SSML" | "CustomPayload"; | ||
content: string; | ||
} | ||
| undefined; | ||
responseCard?: | ||
| { | ||
version: number; | ||
contentType: 'application/vnd.amazonaws.card.generic'; | ||
genericAttachments: LexGenericAttachment[]; | ||
} | ||
version: number; | ||
contentType: "application/vnd.amazonaws.card.generic"; | ||
genericAttachments: LexGenericAttachment[]; | ||
} | ||
| undefined; | ||
@@ -87,12 +87,12 @@ } | ||
export interface LexDialogActionClose extends LexDialogActionBase { | ||
type: 'Close'; | ||
fulfillmentState: 'Fulfilled' | 'Failed'; | ||
type: "Close"; | ||
fulfillmentState: "Fulfilled" | "Failed"; | ||
} | ||
export interface LexDialogActionElicitIntent extends LexDialogActionBase { | ||
type: 'ElicitIntent'; | ||
type: "ElicitIntent"; | ||
} | ||
export interface LexDialogActionElicitSlot extends LexDialogActionBase { | ||
type: 'ElicitSlot'; | ||
type: "ElicitSlot"; | ||
intentName: string; | ||
@@ -104,3 +104,3 @@ slots: { [name: string]: string | null }; | ||
export interface LexDialogActionConfirmIntent extends LexDialogActionBase { | ||
type: 'ConfirmIntent'; | ||
type: "ConfirmIntent"; | ||
intentName: string; | ||
@@ -111,3 +111,3 @@ slots: { [name: string]: string | null }; | ||
export interface LexDialogActionDelegate { | ||
type: 'Delegate'; | ||
type: "Delegate"; | ||
slots: { [name: string]: string | null }; | ||
@@ -114,0 +114,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -14,3 +14,3 @@ export type MSKHandler = Handler<MSKEvent, void>; | ||
timestamp: number; | ||
timestampType: 'CREATE_TIME' | 'LOG_APPEND_TIME'; | ||
timestampType: "CREATE_TIME" | "LOG_APPEND_TIME"; | ||
key: string; | ||
@@ -23,3 +23,3 @@ value: string; | ||
export interface MSKEvent { | ||
eventSource: 'aws:kafka'; | ||
eventSource: "aws:kafka"; | ||
eventSourceArn: string; | ||
@@ -26,0 +26,0 @@ bootstrapServers: string; |
@@ -1,2 +0,2 @@ | ||
import { Handler, Callback } from '../handler'; | ||
import { Callback, Handler } from "../handler"; | ||
@@ -35,3 +35,3 @@ /** | ||
export type S3BatchResultResultCode = 'Succeeded' | 'TemporaryFailure' | 'PermanentFailure'; | ||
export type S3BatchResultResultCode = "Succeeded" | "TemporaryFailure" | "PermanentFailure"; | ||
@@ -38,0 +38,0 @@ export interface S3BatchResultResult { |
@@ -1,6 +0,6 @@ | ||
import { EventBridgeEvent } from './eventbridge'; | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
import { EventBridgeEvent } from "./eventbridge"; | ||
export interface S3ObjectAccessTierChangedNotificationEventDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -13,11 +13,11 @@ name: string; | ||
etag: string; | ||
'version-id': string; | ||
"version-id": string; | ||
}; | ||
'request-id': string; | ||
"request-id": string; | ||
requester: string; | ||
'destination-access-tier': 'ARCHIVE_ACCESS' | 'DEEP_ARCHIVE_ACCESS'; // https://docs.aws.amazon.com/AmazonS3/latest/API/API_Tiering.html | ||
"destination-access-tier": "ARCHIVE_ACCESS" | "DEEP_ARCHIVE_ACCESS"; // https://docs.aws.amazon.com/AmazonS3/latest/API/API_Tiering.html | ||
} | ||
export interface S3ObjectACLUpdatedNotificationEventDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -29,11 +29,11 @@ name: string; | ||
etag: string; | ||
'version-id': string; | ||
"version-id": string; | ||
}; | ||
'request-id': string; | ||
"request-id": string; | ||
requester: string; | ||
'source-ip-address': string; | ||
"source-ip-address": string; | ||
} | ||
export interface S3ObjectCreatedNotificationEventDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -46,13 +46,13 @@ name: string; | ||
etag: string; | ||
'version-id': string; | ||
"version-id": string; | ||
sequencer: string; | ||
}; | ||
'request-id': string; | ||
"request-id": string; | ||
requester: string; | ||
'source-ip-address': string; | ||
reason: 'PutObject' | 'POST Object' | 'CopyObject' | 'CompleteMultipartUpload'; | ||
"source-ip-address": string; | ||
reason: "PutObject" | "POST Object" | "CopyObject" | "CompleteMultipartUpload"; | ||
} | ||
export interface S3ObjectDeletedNotificationEventLifecycleExpirationDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -64,13 +64,13 @@ name: string; | ||
etag: string; | ||
'version-id': string; | ||
"version-id": string; | ||
sequencer: string; | ||
}; | ||
'request-id': string; | ||
"request-id": string; | ||
requester: string; | ||
reason: 'Lifecycle Expiration'; | ||
'deletion-type': 'Permanently Deleted' | 'Delete Marker Created'; | ||
reason: "Lifecycle Expiration"; | ||
"deletion-type": "Permanently Deleted" | "Delete Marker Created"; | ||
} | ||
export interface S3ObjectDeletedNotificationEventDeleteObjectDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -82,10 +82,10 @@ name: string; | ||
etag: string; | ||
'version-id': string; | ||
"version-id": string; | ||
sequencer: string; | ||
}; | ||
'request-id': string; | ||
"request-id": string; | ||
requester: string; | ||
'source-ip-address': string; | ||
reason: 'DeleteObject'; | ||
'deletion-type': 'Permanently Deleted' | 'Delete Marker Created'; | ||
"source-ip-address": string; | ||
reason: "DeleteObject"; | ||
"deletion-type": "Permanently Deleted" | "Delete Marker Created"; | ||
} | ||
@@ -98,3 +98,3 @@ | ||
export interface S3ObjectRestoreCompletedNotificationEventDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -106,22 +106,22 @@ name: string; | ||
size: number; | ||
'version-id': string; | ||
"version-id": string; | ||
etag: string; | ||
}; | ||
'request-id': string; | ||
requester: 's3.amazonaws.com'; | ||
'restore-expiry-time': string; | ||
'source-storage-class': | ||
| 'STANDARD' | ||
| 'REDUCED_REDUNDANCY' | ||
| 'STANDARD_IA' | ||
| 'ONEZONE_IA' | ||
| 'INTELLIGENT_TIERING' | ||
| 'GLACIER' | ||
| 'DEEP_ARCHIVE' | ||
| 'OUTPOSTS' | ||
| 'GLACIER_IR'; // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_RequestSyntax | ||
"request-id": string; | ||
requester: "s3.amazonaws.com"; | ||
"restore-expiry-time": string; | ||
"source-storage-class": | ||
| "STANDARD" | ||
| "REDUCED_REDUNDANCY" | ||
| "STANDARD_IA" | ||
| "ONEZONE_IA" | ||
| "INTELLIGENT_TIERING" | ||
| "GLACIER" | ||
| "DEEP_ARCHIVE" | ||
| "OUTPOSTS" | ||
| "GLACIER_IR"; // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_RequestSyntax | ||
} | ||
export interface S3ObjectRestoreExpiredNotificationEventDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -132,11 +132,11 @@ name: string; | ||
key: string; | ||
'version-id': string; | ||
"version-id": string; | ||
etag: string; | ||
}; | ||
'request-id': string; | ||
requester: 's3.amazonaws.com'; | ||
"request-id": string; | ||
requester: "s3.amazonaws.com"; | ||
} | ||
export interface S3ObjectRestoreInitiatedNotificationEventDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -148,22 +148,22 @@ name: string; | ||
size: number; | ||
'version-id': string; | ||
"version-id": string; | ||
etag: string; | ||
}; | ||
'request-id': string; | ||
"request-id": string; | ||
requester: string; | ||
'source-ip-address': string; | ||
'source-storage-class': | ||
| 'STANDARD' | ||
| 'REDUCED_REDUNDANCY' | ||
| 'STANDARD_IA' | ||
| 'ONEZONE_IA' | ||
| 'INTELLIGENT_TIERING' | ||
| 'GLACIER' | ||
| 'DEEP_ARCHIVE' | ||
| 'OUTPOSTS' | ||
| 'GLACIER_IR'; // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_RequestSyntax | ||
"source-ip-address": string; | ||
"source-storage-class": | ||
| "STANDARD" | ||
| "REDUCED_REDUNDANCY" | ||
| "STANDARD_IA" | ||
| "ONEZONE_IA" | ||
| "INTELLIGENT_TIERING" | ||
| "GLACIER" | ||
| "DEEP_ARCHIVE" | ||
| "OUTPOSTS" | ||
| "GLACIER_IR"; // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_RequestSyntax | ||
} | ||
export interface S3ObjectStorageClassChangedNotificationEventDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -175,21 +175,21 @@ name: string; | ||
size: number; | ||
'version-id': string; | ||
"version-id": string; | ||
etag: string; | ||
}; | ||
'request-id': string; | ||
"request-id": string; | ||
requester: string; | ||
'destination-storage-class': | ||
| 'STANDARD' | ||
| 'REDUCED_REDUNDANCY' | ||
| 'STANDARD_IA' | ||
| 'ONEZONE_IA' | ||
| 'INTELLIGENT_TIERING' | ||
| 'GLACIER' | ||
| 'DEEP_ARCHIVE' | ||
| 'OUTPOSTS' | ||
| 'GLACIER_IR'; // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_RequestSyntax | ||
"destination-storage-class": | ||
| "STANDARD" | ||
| "REDUCED_REDUNDANCY" | ||
| "STANDARD_IA" | ||
| "ONEZONE_IA" | ||
| "INTELLIGENT_TIERING" | ||
| "GLACIER" | ||
| "DEEP_ARCHIVE" | ||
| "OUTPOSTS" | ||
| "GLACIER_IR"; // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_RequestSyntax | ||
} | ||
export interface S3ObjectTagsAddedNotificationEventDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -200,12 +200,12 @@ name: string; | ||
key: string; | ||
'version-id': string; | ||
"version-id": string; | ||
etag: string; | ||
}; | ||
'request-id': string; | ||
"request-id": string; | ||
requester: string; | ||
'source-ip-address': string; | ||
"source-ip-address": string; | ||
} | ||
export interface S3ObjectTagsDeletedNotificationEventDetail { | ||
version: '0'; | ||
version: "0"; | ||
bucket: { | ||
@@ -216,58 +216,68 @@ name: string; | ||
key: string; | ||
'version-id': string; | ||
"version-id": string; | ||
etag: string; | ||
}; | ||
'request-id': string; | ||
"request-id": string; | ||
requester: string; | ||
'source-ip-address': string; | ||
"source-ip-address": string; | ||
} | ||
export interface S3ObjectAccessTierChangedNotificationEvent | ||
extends EventBridgeEvent<'Object Access Tier Changed', S3ObjectAccessTierChangedNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object Access Tier Changed", S3ObjectAccessTierChangedNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
export interface S3ObjectACLUpdatedNotificationEvent | ||
extends EventBridgeEvent<'Object ACL Updated', S3ObjectACLUpdatedNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object ACL Updated", S3ObjectACLUpdatedNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
export interface S3ObjectCreatedNotificationEvent | ||
extends EventBridgeEvent<'Object Created', S3ObjectCreatedNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object Created", S3ObjectCreatedNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
export interface S3ObjectDeletedNotificationEvent | ||
extends EventBridgeEvent<'Object Deleted', S3ObjectDeletedNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object Deleted", S3ObjectDeletedNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
export interface S3ObjectRestoreCompletedNotificationEvent | ||
extends EventBridgeEvent<'Object Restore Completed', S3ObjectRestoreCompletedNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object Restore Completed", S3ObjectRestoreCompletedNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
export interface S3ObjectRestoreExpiredNotificationEvent | ||
extends EventBridgeEvent<'Object Restore Expired', S3ObjectRestoreExpiredNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object Restore Expired", S3ObjectRestoreExpiredNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
export interface S3ObjectRestoreInitiatedNotificationEvent | ||
extends EventBridgeEvent<'Object Restore Initiated', S3ObjectRestoreInitiatedNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object Restore Initiated", S3ObjectRestoreInitiatedNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
export interface S3ObjectStorageClassChangedNotificationEvent | ||
extends EventBridgeEvent<'Object Storage Class Changed', S3ObjectStorageClassChangedNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object Storage Class Changed", S3ObjectStorageClassChangedNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
export interface S3ObjectTagsAddedNotificationEvent | ||
extends EventBridgeEvent<'Object Tags Added', S3ObjectTagsAddedNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object Tags Added", S3ObjectTagsAddedNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
export interface S3ObjectTagsDeletedNotificationEvent | ||
extends EventBridgeEvent<'Object Tags Deleted', S3ObjectTagsDeletedNotificationEventDetail> { | ||
source: 'aws.s3'; | ||
extends EventBridgeEvent<"Object Tags Deleted", S3ObjectTagsDeletedNotificationEventDetail> | ||
{ | ||
source: "aws.s3"; | ||
} | ||
@@ -288,6 +298,6 @@ | ||
export type S3NotificationEventBridgeHandler<EventType extends S3NotificationEvent = S3NotificationEvent> = Handler< | ||
EventBridgeEvent<EventType['detail-type'], EventType['detail']> & { | ||
source: 'aws.s3'; | ||
EventBridgeEvent<EventType["detail-type"], EventType["detail"]> & { | ||
source: "aws.s3"; | ||
}, | ||
void | ||
>; |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -32,4 +32,4 @@ export type S3Handler = Handler<S3Event, void>; | ||
responseElements: { | ||
'x-amz-request-id': string; | ||
'x-amz-id-2': string; | ||
"x-amz-request-id": string; | ||
"x-amz-id-2": string; | ||
}; | ||
@@ -36,0 +36,0 @@ s3: { |
@@ -1,6 +0,6 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
export type SecretsManagerRotationHandler = Handler<SecretsManagerRotationEvent, void>; | ||
export type SecretsManagerRotationEventStep = 'createSecret' | 'setSecret' | 'testSecret' | 'finishSecret'; | ||
export type SecretsManagerRotationEventStep = "createSecret" | "setSecret" | "testSecret" | "finishSecret"; | ||
@@ -7,0 +7,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -14,3 +14,3 @@ export type SelfManagedKafkaHandler = Handler<SelfManagedKafkaEvent, void>; | ||
timestamp: number; | ||
timestampType: 'CREATE_TIME' | 'LOG_APPEND_TIME'; | ||
timestampType: "CREATE_TIME" | "LOG_APPEND_TIME"; | ||
key: string; | ||
@@ -23,3 +23,3 @@ value: string; | ||
export interface SelfManagedKafkaEvent { | ||
eventSource: 'SelfManagedKafka'; | ||
eventSource: "SelfManagedKafka"; | ||
bootstrapServers: string; | ||
@@ -26,0 +26,0 @@ records: { |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -35,7 +35,7 @@ export type SESHandler = Handler<SESEvent, void>; | ||
export interface SESReceiptStatus { | ||
status: 'PASS' | 'FAIL' | 'GRAY' | 'PROCESSING_FAILED' | 'DISABLED'; | ||
status: "PASS" | "FAIL" | "GRAY" | "PROCESSING_FAILED" | "DISABLED"; | ||
} | ||
export interface SESReceiptS3Action { | ||
type: 'S3'; | ||
type: "S3"; | ||
topicArn?: string | undefined; | ||
@@ -47,3 +47,3 @@ bucketName: string; | ||
export interface SESReceiptSnsAction { | ||
type: 'SNS'; | ||
type: "SNS"; | ||
topicArn: string; | ||
@@ -53,3 +53,3 @@ } | ||
export interface SESReceiptBounceAction { | ||
type: 'Bounce'; | ||
type: "Bounce"; | ||
topicArn?: string | undefined; | ||
@@ -63,3 +63,3 @@ smtpReplyCode: string; | ||
export interface SESReceiptLambdaAction { | ||
type: 'Lambda'; | ||
type: "Lambda"; | ||
topicArn?: string | undefined; | ||
@@ -71,3 +71,3 @@ functionArn: string; | ||
export interface SESReceiptStopAction { | ||
type: 'Stop'; | ||
type: "Stop"; | ||
topicArn?: string | undefined; | ||
@@ -77,3 +77,3 @@ } | ||
export interface SESReceiptWorkMailAction { | ||
type: 'WorkMail'; | ||
type: "WorkMail"; | ||
topicArn?: string | undefined; | ||
@@ -92,3 +92,3 @@ organizationArn: string; | ||
dmarcVerdict: SESReceiptStatus; | ||
dmarcPolicy?: 'none' | 'quarantine' | 'reject' | undefined; | ||
dmarcPolicy?: "none" | "quarantine" | "reject" | undefined; | ||
action: | ||
@@ -95,0 +95,0 @@ | SESReceiptS3Action |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -19,3 +19,3 @@ export type SNSHandler = Handler<SNSEvent, void>; | ||
Signature: string; | ||
SigningCertURL: string; | ||
SigningCertUrl: string; | ||
MessageId: string; | ||
@@ -25,3 +25,3 @@ Message: string; | ||
Type: string; | ||
UnsubscribeURL: string; | ||
UnsubscribeUrl: string; | ||
TopicArn: string; | ||
@@ -28,0 +28,0 @@ Subject?: string; |
@@ -1,2 +0,2 @@ | ||
import { Handler } from '../handler'; | ||
import { Handler } from "../handler"; | ||
@@ -36,3 +36,3 @@ // tslint:disable-next-line:void-return | ||
export type SQSMessageAttributeDataType = 'String' | 'Number' | 'Binary' | string; | ||
export type SQSMessageAttributeDataType = "String" | "Number" | "Binary" | string; | ||
@@ -39,0 +39,0 @@ export interface SQSMessageAttribute { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58
3304
136076
16