cdk-docker-image-deployment 0.0.379 → 0.0.381

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/.jsii +4 -4
  2. package/lib/destination.js +1 -1
  3. package/lib/docker-image-deployment.js +1 -1
  4. package/lib/source.js +1 -1
  5. package/node_modules/@types/aws-lambda/README.md +1 -1
  6. package/node_modules/@types/aws-lambda/common/api-gateway.d.ts +5 -4
  7. package/node_modules/@types/aws-lambda/common/cloudfront.d.ts +10 -10
  8. package/node_modules/@types/aws-lambda/index.d.ts +40 -40
  9. package/node_modules/@types/aws-lambda/package.json +2 -2
  10. package/node_modules/@types/aws-lambda/trigger/alb.d.ts +1 -1
  11. package/node_modules/@types/aws-lambda/trigger/amplify-resolver.d.ts +2 -2
  12. package/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.ts +14 -11
  13. package/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +21 -18
  14. package/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.ts +1 -1
  15. package/node_modules/@types/aws-lambda/trigger/autoscaling.d.ts +3 -3
  16. package/node_modules/@types/aws-lambda/trigger/cdk-custom-resource.d.ts +6 -6
  17. package/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.ts +8 -8
  18. package/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.ts +2 -2
  19. package/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.ts +3 -3
  20. package/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.ts +3 -3
  21. package/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.ts +1 -1
  22. package/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.ts +62 -61
  23. package/node_modules/@types/aws-lambda/trigger/codecommit.d.ts +1 -1
  24. package/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.ts +7 -7
  25. package/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.ts +5 -5
  26. package/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.ts +5 -5
  27. package/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.ts +4 -4
  28. package/node_modules/@types/aws-lambda/trigger/codepipeline.d.ts +4 -4
  29. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/_common.d.ts +7 -7
  30. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.ts +15 -15
  31. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.ts +17 -10
  32. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.ts +13 -11
  33. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-sms-sender.d.ts +15 -9
  34. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.ts +14 -14
  35. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +62 -62
  36. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.ts +3 -3
  37. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.ts +8 -6
  38. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.ts +9 -9
  39. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.ts +5 -5
  40. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.ts +15 -11
  41. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.ts +13 -13
  42. package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.ts +15 -13
  43. package/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.ts +5 -5
  44. package/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.ts +3 -3
  45. package/node_modules/@types/aws-lambda/trigger/eventbridge.d.ts +3 -3
  46. package/node_modules/@types/aws-lambda/trigger/iot.d.ts +1 -1
  47. package/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.ts +2 -2
  48. package/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.ts +1 -1
  49. package/node_modules/@types/aws-lambda/trigger/lex-v2.d.ts +20 -20
  50. package/node_modules/@types/aws-lambda/trigger/lex.d.ts +19 -19
  51. package/node_modules/@types/aws-lambda/trigger/msk.d.ts +3 -3
  52. package/node_modules/@types/aws-lambda/trigger/s3-batch.d.ts +2 -2
  53. package/node_modules/@types/aws-lambda/trigger/s3-event-notification.d.ts +112 -102
  54. package/node_modules/@types/aws-lambda/trigger/s3.d.ts +3 -3
  55. package/node_modules/@types/aws-lambda/trigger/secretsmanager.d.ts +2 -2
  56. package/node_modules/@types/aws-lambda/trigger/self-managed-kafka.d.ts +3 -3
  57. package/node_modules/@types/aws-lambda/trigger/ses.d.ts +9 -9
  58. package/node_modules/@types/aws-lambda/trigger/sns.d.ts +1 -1
  59. package/node_modules/@types/aws-lambda/trigger/sqs.d.ts +2 -2
  60. package/node_modules/aws-sdk/CHANGELOG.md +9 -1
  61. package/node_modules/aws-sdk/README.md +1 -1
  62. package/node_modules/aws-sdk/apis/braket-2019-09-01.min.json +64 -12
  63. package/node_modules/aws-sdk/apis/dms-2016-01-01.examples.json +968 -0
  64. package/node_modules/aws-sdk/apis/dms-2016-01-01.min.json +305 -257
  65. package/node_modules/aws-sdk/apis/events-2015-10-07.min.json +59 -34
  66. package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +169 -161
  67. package/node_modules/aws-sdk/clients/braket.d.ts +73 -0
  68. package/node_modules/aws-sdk/clients/cloudwatchevents.d.ts +13 -9
  69. package/node_modules/aws-sdk/clients/dms.d.ts +117 -19
  70. package/node_modules/aws-sdk/clients/ec2.d.ts +1 -1
  71. package/node_modules/aws-sdk/clients/efs.d.ts +10 -10
  72. package/node_modules/aws-sdk/clients/guardduty.d.ts +14 -14
  73. package/node_modules/aws-sdk/clients/mediaconvert.d.ts +15 -5
  74. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
  75. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +5 -5
  76. package/node_modules/aws-sdk/dist/aws-sdk.js +62 -37
  77. package/node_modules/aws-sdk/dist/aws-sdk.min.js +54 -54
  78. package/node_modules/aws-sdk/lib/core.js +1 -1
  79. package/node_modules/aws-sdk/package.json +1 -1
  80. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { Handler } from '../../handler';
1
+ import { Handler } from "../../handler";
2
2
 
3
3
  /**
4
4
  * Cognito User Pool event
@@ -8,30 +8,30 @@ import { Handler } from '../../handler';
8
8
  export interface CognitoUserPoolTriggerEvent {
9
9
  version: number;
10
10
  triggerSource:
11
- | 'PreSignUp_SignUp'
12
- | 'PreSignUp_ExternalProvider'
13
- | 'PostConfirmation_ConfirmSignUp'
14
- | 'PreAuthentication_Authentication'
15
- | 'PostAuthentication_Authentication'
16
- | 'CustomMessage_SignUp'
17
- | 'CustomMessage_AdminCreateUser'
18
- | 'CustomMessage_ResendCode'
19
- | 'CustomMessage_ForgotPassword'
20
- | 'CustomMessage_UpdateUserAttribute'
21
- | 'CustomMessage_VerifyUserAttribute'
22
- | 'CustomMessage_Authentication'
23
- | 'DefineAuthChallenge_Authentication'
24
- | 'CreateAuthChallenge_Authentication'
25
- | 'VerifyAuthChallengeResponse_Authentication'
26
- | 'PreSignUp_AdminCreateUser'
27
- | 'PostConfirmation_ConfirmForgotPassword'
28
- | 'TokenGeneration_HostedAuth'
29
- | 'TokenGeneration_Authentication'
30
- | 'TokenGeneration_NewPasswordChallenge'
31
- | 'TokenGeneration_AuthenticateDevice'
32
- | 'TokenGeneration_RefreshTokens'
33
- | 'UserMigration_Authentication'
34
- | 'UserMigration_ForgotPassword';
11
+ | "PreSignUp_SignUp"
12
+ | "PreSignUp_ExternalProvider"
13
+ | "PostConfirmation_ConfirmSignUp"
14
+ | "PreAuthentication_Authentication"
15
+ | "PostAuthentication_Authentication"
16
+ | "CustomMessage_SignUp"
17
+ | "CustomMessage_AdminCreateUser"
18
+ | "CustomMessage_ResendCode"
19
+ | "CustomMessage_ForgotPassword"
20
+ | "CustomMessage_UpdateUserAttribute"
21
+ | "CustomMessage_VerifyUserAttribute"
22
+ | "CustomMessage_Authentication"
23
+ | "DefineAuthChallenge_Authentication"
24
+ | "CreateAuthChallenge_Authentication"
25
+ | "VerifyAuthChallengeResponse_Authentication"
26
+ | "PreSignUp_AdminCreateUser"
27
+ | "PostConfirmation_ConfirmForgotPassword"
28
+ | "TokenGeneration_HostedAuth"
29
+ | "TokenGeneration_Authentication"
30
+ | "TokenGeneration_NewPasswordChallenge"
31
+ | "TokenGeneration_AuthenticateDevice"
32
+ | "TokenGeneration_RefreshTokens"
33
+ | "UserMigration_Authentication"
34
+ | "UserMigration_ForgotPassword";
35
35
  region: string;
36
36
  userPoolId: string;
37
37
  userName?: string | undefined;
@@ -48,17 +48,17 @@ export interface CognitoUserPoolTriggerEvent {
48
48
  newDeviceUsed?: boolean | undefined;
49
49
  session?:
50
50
  | Array<{
51
- challengeName:
52
- | 'CUSTOM_CHALLENGE'
53
- | 'PASSWORD_VERIFIER'
54
- | 'SMS_MFA'
55
- | 'DEVICE_SRP_AUTH'
56
- | 'DEVICE_PASSWORD_VERIFIER'
57
- | 'ADMIN_NO_SRP_AUTH'
58
- | 'SRP_A';
59
- challengeResult: boolean;
60
- challengeMetadata?: string | undefined;
61
- }>
51
+ challengeName:
52
+ | "CUSTOM_CHALLENGE"
53
+ | "PASSWORD_VERIFIER"
54
+ | "SMS_MFA"
55
+ | "DEVICE_SRP_AUTH"
56
+ | "DEVICE_PASSWORD_VERIFIER"
57
+ | "ADMIN_NO_SRP_AUTH"
58
+ | "SRP_A";
59
+ challengeResult: boolean;
60
+ challengeMetadata?: string | undefined;
61
+ }>
62
62
  | undefined;
63
63
  challengeName?: string | undefined;
64
64
  privateChallengeParameters?: { [key: string]: string } | undefined;
@@ -82,23 +82,23 @@ export interface CognitoUserPoolTriggerEvent {
82
82
  challengeMetadata?: string | undefined;
83
83
  answerCorrect?: boolean | undefined;
84
84
  userAttributes?: { [key: string]: string } | undefined;
85
- finalUserStatus?: 'CONFIRMED' | 'RESET_REQUIRED' | undefined;
86
- messageAction?: 'SUPPRESS' | undefined;
87
- desiredDeliveryMediums?: Array<'EMAIL' | 'SMS'> | undefined;
85
+ finalUserStatus?: "CONFIRMED" | "RESET_REQUIRED" | undefined;
86
+ messageAction?: "SUPPRESS" | undefined;
87
+ desiredDeliveryMediums?: Array<"EMAIL" | "SMS"> | undefined;
88
88
  forceAliasCreation?: boolean | undefined;
89
89
  claimsOverrideDetails?:
90
90
  | {
91
- claimsToAddOrOverride?: { [key: string]: string } | undefined;
92
- claimsToSuppress?: string[] | undefined;
93
- groupOverrideDetails?:
94
- | null
95
- | {
96
- groupsToOverride?: string[] | undefined;
97
- iamRolesToOverride?: string[] | undefined;
98
- preferredRole?: string | undefined;
99
- }
100
- | undefined;
101
- }
91
+ claimsToAddOrOverride?: { [key: string]: string } | undefined;
92
+ claimsToSuppress?: string[] | undefined;
93
+ groupOverrideDetails?:
94
+ | null
95
+ | {
96
+ groupsToOverride?: string[] | undefined;
97
+ iamRolesToOverride?: string[] | undefined;
98
+ preferredRole?: string | undefined;
99
+ }
100
+ | undefined;
101
+ }
102
102
  | undefined;
103
103
  };
104
104
  }
@@ -113,15 +113,15 @@ export type CognitoUserPoolEvent = CognitoUserPoolTriggerEvent;
113
113
  */
114
114
  export type CognitoUserPoolTriggerHandler = Handler<CognitoUserPoolTriggerEvent>;
115
115
 
116
- export * from './create-auth-challenge';
117
- export * from './custom-message';
118
- export * from './custom-email-sender';
119
- export * from './custom-sms-sender';
120
- export * from './define-auth-challenge';
121
- export * from './post-authentication';
122
- export * from './post-confirmation';
123
- export * from './pre-authentication';
124
- export * from './pre-signup';
125
- export * from './pre-token-generation';
126
- export * from './user-migration';
127
- export * from './verify-auth-challenge-response';
116
+ export * from "./create-auth-challenge";
117
+ export * from "./custom-email-sender";
118
+ export * from "./custom-message";
119
+ export * from "./custom-sms-sender";
120
+ export * from "./define-auth-challenge";
121
+ export * from "./post-authentication";
122
+ export * from "./post-confirmation";
123
+ export * from "./pre-authentication";
124
+ export * from "./pre-signup";
125
+ export * from "./pre-token-generation";
126
+ export * from "./user-migration";
127
+ export * from "./verify-auth-challenge-response";
@@ -1,10 +1,10 @@
1
- import { Handler } from '../../handler';
2
- import { BaseTriggerEvent, StringMap } from './_common';
1
+ import { Handler } from "../../handler";
2
+ import { BaseTriggerEvent, StringMap } from "./_common";
3
3
 
4
4
  /**
5
5
  * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-authentication.html
6
6
  */
7
- export interface PostAuthenticationTriggerEvent extends BaseTriggerEvent<'PostAuthentication_Authentication'> {
7
+ export interface PostAuthenticationTriggerEvent extends BaseTriggerEvent<"PostAuthentication_Authentication"> {
8
8
  request: {
9
9
  userAttributes: StringMap;
10
10
  newDeviceUsed: boolean;
@@ -1,5 +1,5 @@
1
- import { Handler } from '../../handler';
2
- import { BaseTriggerEvent, StringMap } from './_common';
1
+ import { Handler } from "../../handler";
2
+ import { BaseTriggerEvent, StringMap } from "./_common";
3
3
 
4
4
  export interface BasePostConfirmationTriggerEvent<T extends string> extends BaseTriggerEvent<T> {
5
5
  request: {
@@ -8,11 +8,13 @@ export interface BasePostConfirmationTriggerEvent<T extends string> extends Base
8
8
  };
9
9
  }
10
10
 
11
- export type PostConfirmationConfirmSignUpTriggerEvent =
12
- BasePostConfirmationTriggerEvent<'PostConfirmation_ConfirmSignUp'>;
11
+ export type PostConfirmationConfirmSignUpTriggerEvent = BasePostConfirmationTriggerEvent<
12
+ "PostConfirmation_ConfirmSignUp"
13
+ >;
13
14
 
14
- export type PostConfirmationConfirmForgotPassword =
15
- BasePostConfirmationTriggerEvent<'PostConfirmation_ConfirmForgotPassword'>;
15
+ export type PostConfirmationConfirmForgotPassword = BasePostConfirmationTriggerEvent<
16
+ "PostConfirmation_ConfirmForgotPassword"
17
+ >;
16
18
 
17
19
  /**
18
20
  * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-confirmation.html
@@ -1,16 +1,16 @@
1
- import { Handler } from '../../handler';
2
- import { BaseTriggerEvent, StringMap } from './_common';
1
+ import { Handler } from "../../handler";
2
+ import { BaseTriggerEvent, StringMap } from "./_common";
3
3
 
4
4
  /**
5
5
  * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html
6
6
  */
7
- export interface PreAuthenticationTriggerEvent extends BaseTriggerEvent<'PreAuthentication_Authentication'> {
8
- request: {
9
- userAttributes: StringMap;
10
- userNotFound?: boolean | undefined;
11
- validationData?: StringMap | undefined;
12
- clientMetadata?: StringMap | undefined;
13
- };
7
+ export interface PreAuthenticationTriggerEvent extends BaseTriggerEvent<"PreAuthentication_Authentication"> {
8
+ request: {
9
+ userAttributes: StringMap;
10
+ userNotFound?: boolean | undefined;
11
+ validationData?: StringMap | undefined;
12
+ clientMetadata?: StringMap | undefined;
13
+ };
14
14
  }
15
15
 
16
16
  export type PreAuthenticationTriggerHandler = Handler<PreAuthenticationTriggerEvent>;
@@ -1,5 +1,5 @@
1
- import { Handler } from '../../handler';
2
- import { BaseTriggerEvent, StringMap } from './_common';
1
+ import { Handler } from "../../handler";
2
+ import { BaseTriggerEvent, StringMap } from "./_common";
3
3
 
4
4
  export interface BasePreSignUpTriggerEvent<T extends string> extends BaseTriggerEvent<T> {
5
5
  request: {
@@ -14,11 +14,11 @@ export interface BasePreSignUpTriggerEvent<T extends string> extends BaseTrigger
14
14
  };
15
15
  }
16
16
 
17
- export type PreSignUpEmailTriggerEvent = BasePreSignUpTriggerEvent<'PreSignUp_SignUp'>;
17
+ export type PreSignUpEmailTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_SignUp">;
18
18
 
19
- export type PreSignUpExternalProviderTriggerEvent = BasePreSignUpTriggerEvent<'PreSignUp_ExternalProvider'>;
19
+ export type PreSignUpExternalProviderTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_ExternalProvider">;
20
20
 
21
- export type PreSignUpAdminCreateUserTriggerEvent = BasePreSignUpTriggerEvent<'PreSignUp_AdminCreateUser'>;
21
+ export type PreSignUpAdminCreateUserTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_AdminCreateUser">;
22
22
 
23
23
  /**
24
24
  * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html
@@ -1,5 +1,5 @@
1
- import { Handler } from '../../handler';
2
- import { BaseTriggerEvent, StringMap } from './_common';
1
+ import { Handler } from "../../handler";
2
+ import { BaseTriggerEvent, StringMap } from "./_common";
3
3
 
4
4
  export interface GroupOverrideDetails {
5
5
  groupsToOverride?: string[] | undefined;
@@ -22,19 +22,23 @@ export interface BasePreTokenGenerationTriggerEvent<T extends string> extends Ba
22
22
  };
23
23
  }
24
24
 
25
- export type PreTokenGenerationHostedAuthTriggerEvent = BasePreTokenGenerationTriggerEvent<'TokenGeneration_HostedAuth'>;
25
+ export type PreTokenGenerationHostedAuthTriggerEvent = BasePreTokenGenerationTriggerEvent<"TokenGeneration_HostedAuth">;
26
26
 
27
- export type PreTokenGenerationAuthenticationTriggerEvent =
28
- BasePreTokenGenerationTriggerEvent<'TokenGeneration_Authentication'>;
27
+ export type PreTokenGenerationAuthenticationTriggerEvent = BasePreTokenGenerationTriggerEvent<
28
+ "TokenGeneration_Authentication"
29
+ >;
29
30
 
30
- export type PreTokenGenerationNewPasswordChallengeTriggerEvent =
31
- BasePreTokenGenerationTriggerEvent<'TokenGeneration_NewPasswordChallenge'>;
31
+ export type PreTokenGenerationNewPasswordChallengeTriggerEvent = BasePreTokenGenerationTriggerEvent<
32
+ "TokenGeneration_NewPasswordChallenge"
33
+ >;
32
34
 
33
- export type PreTokenGenerationAuthenticateDeviceTriggerEvent =
34
- BasePreTokenGenerationTriggerEvent<'TokenGeneration_AuthenticateDevice'>;
35
+ export type PreTokenGenerationAuthenticateDeviceTriggerEvent = BasePreTokenGenerationTriggerEvent<
36
+ "TokenGeneration_AuthenticateDevice"
37
+ >;
35
38
 
36
- export type PreTokenGenerationRefreshTokensTriggerEvent =
37
- BasePreTokenGenerationTriggerEvent<'TokenGeneration_RefreshTokens'>;
39
+ export type PreTokenGenerationRefreshTokensTriggerEvent = BasePreTokenGenerationTriggerEvent<
40
+ "TokenGeneration_RefreshTokens"
41
+ >;
38
42
 
39
43
  /**
40
44
  * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html
@@ -1,14 +1,14 @@
1
- import { Handler } from '../../handler';
2
- import { BaseTriggerEvent, StringMap } from './_common';
1
+ import { Handler } from "../../handler";
2
+ import { BaseTriggerEvent, StringMap } from "./_common";
3
3
 
4
4
  export type UserStatus =
5
- | 'UNCONFIRMED'
6
- | 'CONFIRMED'
7
- | 'ARCHIVED'
8
- | 'COMPROMISED'
9
- | 'UNKNOWN'
10
- | 'RESET_REQUIRED'
11
- | 'FORCE_CHANGE_PASSWORD';
5
+ | "UNCONFIRMED"
6
+ | "CONFIRMED"
7
+ | "ARCHIVED"
8
+ | "COMPROMISED"
9
+ | "UNKNOWN"
10
+ | "RESET_REQUIRED"
11
+ | "FORCE_CHANGE_PASSWORD";
12
12
 
13
13
  export interface BaseUserMigrationTriggerEvent<T extends string> extends BaseTriggerEvent<T> {
14
14
  request: {
@@ -19,15 +19,15 @@ export interface BaseUserMigrationTriggerEvent<T extends string> extends BaseTri
19
19
  response: {
20
20
  userAttributes: StringMap;
21
21
  finalUserStatus?: UserStatus | undefined;
22
- messageAction?: 'RESEND' | 'SUPPRESS' | undefined;
23
- desiredDeliveryMediums: Array<'SMS' | 'EMAIL'>;
22
+ messageAction?: "RESEND" | "SUPPRESS" | undefined;
23
+ desiredDeliveryMediums: Array<"SMS" | "EMAIL">;
24
24
  forceAliasCreation?: boolean | undefined;
25
25
  };
26
26
  }
27
27
 
28
- export type UserMigrationAuthenticationTriggerEvent = BaseUserMigrationTriggerEvent<'UserMigration_Authentication'>;
28
+ export type UserMigrationAuthenticationTriggerEvent = BaseUserMigrationTriggerEvent<"UserMigration_Authentication">;
29
29
 
30
- export type UserMigrationForgotPasswordTriggerEvent = BaseUserMigrationTriggerEvent<'UserMigration_ForgotPassword'>;
30
+ export type UserMigrationForgotPasswordTriggerEvent = BaseUserMigrationTriggerEvent<"UserMigration_ForgotPassword">;
31
31
 
32
32
  /**
33
33
  * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-migrate-user.html
@@ -1,20 +1,22 @@
1
- import { Handler } from '../../handler';
2
- import { BaseTriggerEvent, StringMap } from './_common';
1
+ import { Handler } from "../../handler";
2
+ import { BaseTriggerEvent, StringMap } from "./_common";
3
3
 
4
4
  /**
5
5
  * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-verify-auth-challenge-response.html
6
6
  */
7
- export interface VerifyAuthChallengeResponseTriggerEvent extends BaseTriggerEvent<'VerifyAuthChallengeResponse_Authentication'> {
8
- request: {
9
- userAttributes: StringMap;
10
- privateChallengeParameters: StringMap;
11
- challengeAnswer: string;
12
- userNotFound?: boolean | undefined;
13
- clientMetadata?: StringMap | undefined;
14
- };
15
- response: {
16
- answerCorrect: boolean;
17
- };
7
+ export interface VerifyAuthChallengeResponseTriggerEvent
8
+ extends BaseTriggerEvent<"VerifyAuthChallengeResponse_Authentication">
9
+ {
10
+ request: {
11
+ userAttributes: StringMap;
12
+ privateChallengeParameters: StringMap;
13
+ challengeAnswer: string;
14
+ userNotFound?: boolean | undefined;
15
+ clientMetadata?: StringMap | undefined;
16
+ };
17
+ response: {
18
+ answerCorrect: boolean;
19
+ };
18
20
  }
19
21
 
20
22
  export type VerifyAuthChallengeResponseTriggerHandler = Handler<VerifyAuthChallengeResponseTriggerEvent>;
@@ -1,4 +1,4 @@
1
- import { Callback, Handler } from '../handler';
1
+ import { Callback, Handler } from "../handler";
2
2
 
3
3
  export type ConnectContactFlowHandler = Handler<ConnectContactFlowEvent, ConnectContactFlowResult>;
4
4
  export type ConnectContactFlowCallback = Callback<ConnectContactFlowResult>;
@@ -26,16 +26,16 @@ export interface ConnectContactFlowEvent {
26
26
  };
27
27
  Parameters: { [key: string]: string };
28
28
  };
29
- Name: 'ContactFlowEvent';
29
+ Name: "ContactFlowEvent";
30
30
  }
31
31
 
32
- export type ConnectContactFlowChannel = 'VOICE' | 'CHAT';
32
+ export type ConnectContactFlowChannel = "VOICE" | "CHAT";
33
33
 
34
- export type ConnectContactFlowInitiationMethod = 'INBOUND' | 'OUTBOUND' | 'TRANSFER' | 'CALLBACK' | 'API';
34
+ export type ConnectContactFlowInitiationMethod = "INBOUND" | "OUTBOUND" | "TRANSFER" | "CALLBACK" | "API";
35
35
 
36
36
  export interface ConnectContactFlowEndpoint {
37
37
  Address: string;
38
- Type: 'TELEPHONE_NUMBER';
38
+ Type: "TELEPHONE_NUMBER";
39
39
  }
40
40
 
41
41
  export interface ConnectContactFlowQueue {
@@ -1,4 +1,4 @@
1
- import { Handler } from '../handler';
1
+ import { Handler } from "../handler";
2
2
 
3
3
  // tslint:disable-next-line:void-return
4
4
  export type DynamoDBStreamHandler = Handler<DynamoDBStreamEvent, DynamoDBBatchResponse | void>;
@@ -25,7 +25,7 @@ export interface StreamRecord {
25
25
  OldImage?: { [key: string]: AttributeValue } | undefined;
26
26
  SequenceNumber?: string | undefined;
27
27
  SizeBytes?: number | undefined;
28
- StreamViewType?: 'KEYS_ONLY' | 'NEW_IMAGE' | 'OLD_IMAGE' | 'NEW_AND_OLD_IMAGES' | undefined;
28
+ StreamViewType?: "KEYS_ONLY" | "NEW_IMAGE" | "OLD_IMAGE" | "NEW_AND_OLD_IMAGES" | undefined;
29
29
  }
30
30
 
31
31
  // http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_Record.html
@@ -33,7 +33,7 @@ export interface DynamoDBRecord {
33
33
  awsRegion?: string | undefined;
34
34
  dynamodb?: StreamRecord | undefined;
35
35
  eventID?: string | undefined;
36
- eventName?: 'INSERT' | 'MODIFY' | 'REMOVE' | undefined;
36
+ eventName?: "INSERT" | "MODIFY" | "REMOVE" | undefined;
37
37
  eventSource?: string | undefined;
38
38
  eventSourceARN?: string | undefined;
39
39
  eventVersion?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { Handler } from '../handler';
1
+ import { Handler } from "../handler";
2
2
 
3
3
  export type EventBridgeHandler<TDetailType extends string, TDetail, TResult> = Handler<
4
4
  EventBridgeEvent<TDetailType, TDetail>,
@@ -13,7 +13,7 @@ export interface EventBridgeEvent<TDetailType extends string, TDetail> {
13
13
  region: string;
14
14
  resources: string[];
15
15
  source: string;
16
- 'detail-type': TDetailType;
16
+ "detail-type": TDetailType;
17
17
  detail: TDetail;
18
- 'replay-name'?: string;
18
+ "replay-name"?: string;
19
19
  }
@@ -1,4 +1,4 @@
1
- import { Handler } from '../handler';
1
+ import { Handler } from "../handler";
2
2
 
3
3
  export type IoTHandler = Handler<IoTEvent, void>;
4
4
 
@@ -1,4 +1,4 @@
1
- import { Callback, Handler } from '../handler';
1
+ import { Callback, Handler } from "../handler";
2
2
 
3
3
  export type FirehoseTransformationHandler = Handler<FirehoseTransformationEvent, FirehoseTransformationResult>;
4
4
  export type FirehoseTransformationCallback = Callback<FirehoseTransformationResult>;
@@ -32,7 +32,7 @@ export interface FirehoseRecordMetadata {
32
32
  subsequenceNumber: string;
33
33
  }
34
34
 
35
- export type FirehoseRecordTransformationStatus = 'Ok' | 'Dropped' | 'ProcessingFailed';
35
+ export type FirehoseRecordTransformationStatus = "Ok" | "Dropped" | "ProcessingFailed";
36
36
 
37
37
  export interface FirehoseTransformationMetadata {
38
38
  partitionKeys: { [name: string]: string };
@@ -1,4 +1,4 @@
1
- import { Handler } from '../handler';
1
+ import { Handler } from "../handler";
2
2
 
3
3
  // tslint:disable-next-line:void-return
4
4
  export type KinesisStreamHandler = Handler<KinesisStreamEvent, KinesisStreamBatchResponse | void>;
@@ -1,4 +1,4 @@
1
- import { Callback, Handler } from '../handler';
1
+ import { Callback, Handler } from "../handler";
2
2
 
3
3
  export type LexV2Handler = Handler<LexV2Event, LexV2Result>;
4
4
  export type LexV2Callback = Callback<LexV2Result>;
@@ -7,8 +7,8 @@ export type LexV2Callback = Callback<LexV2Result>;
7
7
  // https://docs.aws.amazon.com/lexv2/latest/dg/lambda.html
8
8
  export interface LexV2Event {
9
9
  messageVersion: string;
10
- invocationSource: 'DialogCodeHook' | 'FulfillmentCodeHook';
11
- inputMode: 'DTMF' | 'Speech' | 'Text';
10
+ invocationSource: "DialogCodeHook" | "FulfillmentCodeHook";
11
+ inputMode: "DTMF" | "Speech" | "Text";
12
12
  responseContentType: string;
13
13
  sessionId: string;
14
14
  inputTranscript: string;
@@ -39,7 +39,7 @@ export interface LexV2Interpretation {
39
39
  }
40
40
 
41
41
  export interface LexV2Intent {
42
- confirmationState: 'Confirmed' | 'Denied' | 'None';
42
+ confirmationState: "Confirmed" | "Denied" | "None";
43
43
  name: string;
44
44
  slots: LexV2Slots;
45
45
  state: LexV2IntentState;
@@ -47,12 +47,12 @@ export interface LexV2Intent {
47
47
  }
48
48
 
49
49
  export type LexV2IntentState =
50
- | 'Failed'
51
- | 'Fulfilled'
52
- | 'FulfillmentInProgress'
53
- | 'InProgress'
54
- | 'ReadyForFulfillment'
55
- | 'Waiting';
50
+ | "Failed"
51
+ | "Fulfilled"
52
+ | "FulfillmentInProgress"
53
+ | "InProgress"
54
+ | "ReadyForFulfillment"
55
+ | "Waiting";
56
56
 
57
57
  export interface LexV2SentimentResponse {
58
58
  sentiment: string;
@@ -84,18 +84,18 @@ export interface LexV2ActiveContext {
84
84
  }
85
85
 
86
86
  export type LevV2DialogActionWithoutSlot =
87
- | { type: 'Close' }
88
- | { type: 'ConfirmIntent' }
89
- | { type: 'Delegate' }
90
- | { type: 'ElicitIntent' };
87
+ | { type: "Close" }
88
+ | { type: "ConfirmIntent" }
89
+ | { type: "Delegate" }
90
+ | { type: "ElicitIntent" };
91
91
 
92
92
  export type LexV2DialogAction =
93
93
  | (LevV2DialogActionWithoutSlot & { slotToElicit?: never })
94
- | { type: 'ElicitSlot'; slotToElicit: string };
94
+ | { type: "ElicitSlot"; slotToElicit: string };
95
95
 
96
96
  export type LexV2ResultDialogAction =
97
97
  | (LevV2DialogActionWithoutSlot & { slotToElicit?: never })
98
- | { type: 'ElicitSlot'; slotToElicit: string; slotElicitationStyle: 'Default' | 'SpellByLetter' | 'SpellByWord' };
98
+ | { type: "ElicitSlot"; slotToElicit: string; slotElicitationStyle: "Default" | "SpellByLetter" | "SpellByWord" };
99
99
 
100
100
  export interface LexV2Result {
101
101
  sessionState: {
@@ -113,12 +113,12 @@ export interface LexV2Result {
113
113
  export type LexV2Message = LexV2ContentMessage | LexV2ImageResponseCardMessage;
114
114
 
115
115
  export interface LexV2ContentMessage {
116
- contentType: 'CustomPayload' | 'PlainText' | 'SSML';
116
+ contentType: "CustomPayload" | "PlainText" | "SSML";
117
117
  content: string;
118
118
  }
119
119
 
120
120
  export interface LexV2ImageResponseCardMessage {
121
- contentType: 'ImageResponseCard';
121
+ contentType: "ImageResponseCard";
122
122
  imageResponseCard: LexV2ImageResponseCard;
123
123
  }
124
124
 
@@ -138,12 +138,12 @@ export type LexV2Slot = LexV2ScalarSlotValue | LexV2ListSlotValue;
138
138
  export type LexV2Slots = Record<string, LexV2Slot | null>;
139
139
 
140
140
  export interface LexV2ScalarSlotValue {
141
- shape: 'Scalar';
141
+ shape: "Scalar";
142
142
  value: LexV2SlotValue;
143
143
  }
144
144
 
145
145
  export interface LexV2ListSlotValue {
146
- shape: 'List';
146
+ shape: "List";
147
147
  value: LexV2SlotValue;
148
148
  values: LexV2ScalarSlotValue[];
149
149
  }