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.
- package/.jsii +4 -4
- package/lib/destination.js +1 -1
- package/lib/docker-image-deployment.js +1 -1
- package/lib/source.js +1 -1
- package/node_modules/@types/aws-lambda/README.md +1 -1
- package/node_modules/@types/aws-lambda/common/api-gateway.d.ts +5 -4
- package/node_modules/@types/aws-lambda/common/cloudfront.d.ts +10 -10
- package/node_modules/@types/aws-lambda/index.d.ts +40 -40
- package/node_modules/@types/aws-lambda/package.json +2 -2
- package/node_modules/@types/aws-lambda/trigger/alb.d.ts +1 -1
- package/node_modules/@types/aws-lambda/trigger/amplify-resolver.d.ts +2 -2
- package/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.ts +14 -11
- package/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +21 -18
- package/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.ts +1 -1
- package/node_modules/@types/aws-lambda/trigger/autoscaling.d.ts +3 -3
- package/node_modules/@types/aws-lambda/trigger/cdk-custom-resource.d.ts +6 -6
- package/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.ts +8 -8
- package/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.ts +2 -2
- package/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.ts +3 -3
- package/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.ts +3 -3
- package/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.ts +1 -1
- package/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.ts +62 -61
- package/node_modules/@types/aws-lambda/trigger/codecommit.d.ts +1 -1
- package/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.ts +7 -7
- package/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.ts +5 -5
- package/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.ts +5 -5
- package/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.ts +4 -4
- package/node_modules/@types/aws-lambda/trigger/codepipeline.d.ts +4 -4
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/_common.d.ts +7 -7
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.ts +15 -15
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.ts +17 -10
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.ts +13 -11
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-sms-sender.d.ts +15 -9
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.ts +14 -14
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +62 -62
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.ts +3 -3
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.ts +8 -6
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.ts +9 -9
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.ts +5 -5
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.ts +15 -11
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.ts +13 -13
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.ts +15 -13
- package/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.ts +5 -5
- package/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.ts +3 -3
- package/node_modules/@types/aws-lambda/trigger/eventbridge.d.ts +3 -3
- package/node_modules/@types/aws-lambda/trigger/iot.d.ts +1 -1
- package/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.ts +2 -2
- package/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.ts +1 -1
- package/node_modules/@types/aws-lambda/trigger/lex-v2.d.ts +20 -20
- package/node_modules/@types/aws-lambda/trigger/lex.d.ts +19 -19
- package/node_modules/@types/aws-lambda/trigger/msk.d.ts +3 -3
- package/node_modules/@types/aws-lambda/trigger/s3-batch.d.ts +2 -2
- package/node_modules/@types/aws-lambda/trigger/s3-event-notification.d.ts +112 -102
- package/node_modules/@types/aws-lambda/trigger/s3.d.ts +3 -3
- package/node_modules/@types/aws-lambda/trigger/secretsmanager.d.ts +2 -2
- package/node_modules/@types/aws-lambda/trigger/self-managed-kafka.d.ts +3 -3
- package/node_modules/@types/aws-lambda/trigger/ses.d.ts +9 -9
- package/node_modules/@types/aws-lambda/trigger/sns.d.ts +1 -1
- package/node_modules/@types/aws-lambda/trigger/sqs.d.ts +2 -2
- package/node_modules/aws-sdk/CHANGELOG.md +9 -1
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/braket-2019-09-01.min.json +64 -12
- package/node_modules/aws-sdk/apis/dms-2016-01-01.examples.json +968 -0
- package/node_modules/aws-sdk/apis/dms-2016-01-01.min.json +305 -257
- package/node_modules/aws-sdk/apis/events-2015-10-07.min.json +59 -34
- package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +169 -161
- package/node_modules/aws-sdk/clients/braket.d.ts +73 -0
- package/node_modules/aws-sdk/clients/cloudwatchevents.d.ts +13 -9
- package/node_modules/aws-sdk/clients/dms.d.ts +117 -19
- package/node_modules/aws-sdk/clients/ec2.d.ts +1 -1
- package/node_modules/aws-sdk/clients/efs.d.ts +10 -10
- package/node_modules/aws-sdk/clients/guardduty.d.ts +14 -14
- package/node_modules/aws-sdk/clients/mediaconvert.d.ts +15 -5
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +5 -5
- package/node_modules/aws-sdk/dist/aws-sdk.js +62 -37
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +54 -54
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/package.json +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Handler } from
|
|
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
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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?:
|
|
86
|
-
messageAction?:
|
|
87
|
-
desiredDeliveryMediums?: Array<
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
|
117
|
-
export * from
|
|
118
|
-
export * from
|
|
119
|
-
export * from
|
|
120
|
-
export * from
|
|
121
|
-
export * from
|
|
122
|
-
export * from
|
|
123
|
-
export * from
|
|
124
|
-
export * from
|
|
125
|
-
export * from
|
|
126
|
-
export * from
|
|
127
|
-
export * from
|
|
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";
|
package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Handler } from
|
|
2
|
-
import { BaseTriggerEvent, StringMap } from
|
|
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<
|
|
7
|
+
export interface PostAuthenticationTriggerEvent extends BaseTriggerEvent<"PostAuthentication_Authentication"> {
|
|
8
8
|
request: {
|
|
9
9
|
userAttributes: StringMap;
|
|
10
10
|
newDeviceUsed: boolean;
|
package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Handler } from
|
|
2
|
-
import { BaseTriggerEvent, StringMap } from
|
|
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
|
-
|
|
11
|
+
export type PostConfirmationConfirmSignUpTriggerEvent = BasePostConfirmationTriggerEvent<
|
|
12
|
+
"PostConfirmation_ConfirmSignUp"
|
|
13
|
+
>;
|
|
13
14
|
|
|
14
|
-
export type PostConfirmationConfirmForgotPassword =
|
|
15
|
-
|
|
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
|
package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Handler } from
|
|
2
|
-
import { BaseTriggerEvent, StringMap } from
|
|
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<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
2
|
-
import { BaseTriggerEvent, StringMap } from
|
|
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<
|
|
17
|
+
export type PreSignUpEmailTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_SignUp">;
|
|
18
18
|
|
|
19
|
-
export type PreSignUpExternalProviderTriggerEvent = BasePreSignUpTriggerEvent<
|
|
19
|
+
export type PreSignUpExternalProviderTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_ExternalProvider">;
|
|
20
20
|
|
|
21
|
-
export type PreSignUpAdminCreateUserTriggerEvent = BasePreSignUpTriggerEvent<
|
|
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
|
package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Handler } from
|
|
2
|
-
import { BaseTriggerEvent, StringMap } from
|
|
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<
|
|
25
|
+
export type PreTokenGenerationHostedAuthTriggerEvent = BasePreTokenGenerationTriggerEvent<"TokenGeneration_HostedAuth">;
|
|
26
26
|
|
|
27
|
-
export type PreTokenGenerationAuthenticationTriggerEvent =
|
|
28
|
-
|
|
27
|
+
export type PreTokenGenerationAuthenticationTriggerEvent = BasePreTokenGenerationTriggerEvent<
|
|
28
|
+
"TokenGeneration_Authentication"
|
|
29
|
+
>;
|
|
29
30
|
|
|
30
|
-
export type PreTokenGenerationNewPasswordChallengeTriggerEvent =
|
|
31
|
-
|
|
31
|
+
export type PreTokenGenerationNewPasswordChallengeTriggerEvent = BasePreTokenGenerationTriggerEvent<
|
|
32
|
+
"TokenGeneration_NewPasswordChallenge"
|
|
33
|
+
>;
|
|
32
34
|
|
|
33
|
-
export type PreTokenGenerationAuthenticateDeviceTriggerEvent =
|
|
34
|
-
|
|
35
|
+
export type PreTokenGenerationAuthenticateDeviceTriggerEvent = BasePreTokenGenerationTriggerEvent<
|
|
36
|
+
"TokenGeneration_AuthenticateDevice"
|
|
37
|
+
>;
|
|
35
38
|
|
|
36
|
-
export type PreTokenGenerationRefreshTokensTriggerEvent =
|
|
37
|
-
|
|
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
|
package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Handler } from
|
|
2
|
-
import { BaseTriggerEvent, StringMap } from
|
|
1
|
+
import { Handler } from "../../handler";
|
|
2
|
+
import { BaseTriggerEvent, StringMap } from "./_common";
|
|
3
3
|
|
|
4
4
|
export type UserStatus =
|
|
5
|
-
|
|
|
6
|
-
|
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
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?:
|
|
23
|
-
desiredDeliveryMediums: Array<
|
|
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<
|
|
28
|
+
export type UserMigrationAuthenticationTriggerEvent = BaseUserMigrationTriggerEvent<"UserMigration_Authentication">;
|
|
29
29
|
|
|
30
|
-
export type UserMigrationForgotPasswordTriggerEvent = BaseUserMigrationTriggerEvent<
|
|
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
|
|
2
|
-
import { BaseTriggerEvent, StringMap } from
|
|
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
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
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:
|
|
29
|
+
Name: "ContactFlowEvent";
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export type ConnectContactFlowChannel =
|
|
32
|
+
export type ConnectContactFlowChannel = "VOICE" | "CHAT";
|
|
33
33
|
|
|
34
|
-
export type ConnectContactFlowInitiationMethod =
|
|
34
|
+
export type ConnectContactFlowInitiationMethod = "INBOUND" | "OUTBOUND" | "TRANSFER" | "CALLBACK" | "API";
|
|
35
35
|
|
|
36
36
|
export interface ConnectContactFlowEndpoint {
|
|
37
37
|
Address: string;
|
|
38
|
-
Type:
|
|
38
|
+
Type: "TELEPHONE_NUMBER";
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export interface ConnectContactFlowQueue {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Handler } from
|
|
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?:
|
|
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?:
|
|
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
|
|
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
|
-
|
|
16
|
+
"detail-type": TDetailType;
|
|
17
17
|
detail: TDetail;
|
|
18
|
-
|
|
18
|
+
"replay-name"?: string;
|
|
19
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Callback, Handler } from
|
|
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 =
|
|
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 { Callback, Handler } from
|
|
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:
|
|
11
|
-
inputMode:
|
|
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:
|
|
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
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
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:
|
|
88
|
-
| { type:
|
|
89
|
-
| { type:
|
|
90
|
-
| { type:
|
|
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:
|
|
94
|
+
| { type: "ElicitSlot"; slotToElicit: string };
|
|
95
95
|
|
|
96
96
|
export type LexV2ResultDialogAction =
|
|
97
97
|
| (LevV2DialogActionWithoutSlot & { slotToElicit?: never })
|
|
98
|
-
| { type:
|
|
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:
|
|
116
|
+
contentType: "CustomPayload" | "PlainText" | "SSML";
|
|
117
117
|
content: string;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
export interface LexV2ImageResponseCardMessage {
|
|
121
|
-
contentType:
|
|
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:
|
|
141
|
+
shape: "Scalar";
|
|
142
142
|
value: LexV2SlotValue;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
export interface LexV2ListSlotValue {
|
|
146
|
-
shape:
|
|
146
|
+
shape: "List";
|
|
147
147
|
value: LexV2SlotValue;
|
|
148
148
|
values: LexV2ScalarSlotValue[];
|
|
149
149
|
}
|