-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2027 from updraft-com/master
Lambda Layers & Cognito support
- Loading branch information
Showing
9 changed files
with
379 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
283 changes: 283 additions & 0 deletions
283
...st_cognito_trigger_existing_UnusedAccountValidityDays/cognito-idp.DescribeUserPool_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,283 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"UserPool": { | ||
"Id": "us-east-1_9jUv74DH8", | ||
"Name": "Zappa-Test", | ||
"Policies": { | ||
"PasswordPolicy": { | ||
"MinimumLength": 8, | ||
"RequireUppercase": true, | ||
"RequireLowercase": true, | ||
"RequireNumbers": true, | ||
"RequireSymbols": true, | ||
"TemporaryPasswordValidityDays": 7 | ||
} | ||
}, | ||
"LambdaConfig": { | ||
"PreSignUp": "arn:aws:lambda:us-east-1:12345:function:Zappa-Trigger-Test" | ||
}, | ||
"LastModifiedDate": { | ||
"__class__": "datetime", | ||
"year": 2017, | ||
"month": 11, | ||
"day": 27, | ||
"hour": 11, | ||
"minute": 23, | ||
"second": 34, | ||
"microsecond": 969000 | ||
}, | ||
"CreationDate": { | ||
"__class__": "datetime", | ||
"year": 2017, | ||
"month": 11, | ||
"day": 27, | ||
"hour": 11, | ||
"minute": 15, | ||
"second": 36, | ||
"microsecond": 195000 | ||
}, | ||
"SchemaAttributes": [ | ||
{ | ||
"Name": "sub", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": false, | ||
"Required": true, | ||
"StringAttributeConstraints": { | ||
"MinLength": "1", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "name", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "given_name", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "family_name", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "middle_name", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "nickname", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "preferred_username", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "profile", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "picture", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "website", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "email", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": true, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "email_verified", | ||
"AttributeDataType": "Boolean", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false | ||
}, | ||
{ | ||
"Name": "gender", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "birthdate", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "10", | ||
"MaxLength": "10" | ||
} | ||
}, | ||
{ | ||
"Name": "zoneinfo", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "locale", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "phone_number", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "phone_number_verified", | ||
"AttributeDataType": "Boolean", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false | ||
}, | ||
{ | ||
"Name": "address", | ||
"AttributeDataType": "String", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"StringAttributeConstraints": { | ||
"MinLength": "0", | ||
"MaxLength": "2048" | ||
} | ||
}, | ||
{ | ||
"Name": "updated_at", | ||
"AttributeDataType": "Number", | ||
"DeveloperOnlyAttribute": false, | ||
"Mutable": true, | ||
"Required": false, | ||
"NumberAttributeConstraints": { | ||
"MinValue": "0" | ||
} | ||
} | ||
], | ||
"AutoVerifiedAttributes": [ | ||
"email" | ||
], | ||
"VerificationMessageTemplate": { | ||
"DefaultEmailOption": "CONFIRM_WITH_CODE" | ||
}, | ||
"MfaConfiguration": "OFF", | ||
"EstimatedNumberOfUsers": 0, | ||
"EmailConfiguration": {}, | ||
"UserPoolTags": {}, | ||
"AdminCreateUserConfig": { | ||
"AllowAdminCreateUserOnly": false | ||
}, | ||
"LambdaConfig": [ | ||
{"PreSignUp": "arn:aws:lambda:us-east-1:12345:function:Zappa-Trigger-Test"} | ||
] | ||
}, | ||
"ResponseMetadata": { | ||
"RequestId": "ada5049e-d365-11e7-9a5a-2b0966933efa", | ||
"HTTPStatusCode": 200, | ||
"HTTPHeaders": { | ||
"content-type": "application/x-amz-json-1.1", | ||
"date": "Mon, 27 Nov 2017 11:25:31 GMT", | ||
"x-amzn-requestid": "ada5049e-d365-11e7-9a5a-2b0966933efa", | ||
"content-length": "4132", | ||
"connection": "keep-alive" | ||
}, | ||
"RetryAttempts": 0 | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...test_cognito_trigger_existing_UnusedAccountValidityDays/cognito-idp.UpdateUserPool_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": { | ||
"RequestId": "adc3afdf-d365-11e7-b51f-abb88dfb5619", | ||
"HTTPStatusCode": 200, | ||
"HTTPHeaders": { | ||
"content-type": "application/x-amz-json-1.1", | ||
"date": "Mon, 27 Nov 2017 11:25:32 GMT", | ||
"x-amzn-requestid": "adc3afdf-d365-11e7-b51f-abb88dfb5619", | ||
"content-length": "2", | ||
"connection": "keep-alive" | ||
}, | ||
"RetryAttempts": 0 | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...Zappa.test_cognito_trigger_existing_UnusedAccountValidityDays/lambda.AddPermission_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"status_code": 201, | ||
"data": { | ||
"ResponseMetadata": { | ||
"RequestId": "ae983eab-d365-11e7-ba13-8135763ed363", | ||
"HTTPStatusCode": 201, | ||
"HTTPHeaders": { | ||
"date": "Mon, 27 Nov 2017 11:25:33 GMT", | ||
"content-type": "application/json", | ||
"content-length": "361", | ||
"connection": "keep-alive", | ||
"x-amzn-requestid": "ae983eab-d365-11e7-ba13-8135763ed363" | ||
}, | ||
"RetryAttempts": 0 | ||
}, | ||
"Statement": "{\"Sid\":\"9UFS02MW\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"cognito-idp.amazonaws.com\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-east-1:12345:function:Zappa-Trigger-Test\",\"Condition\":{\"ArnLike\":{\"AWS:SourceArn\":\"arn:aws:cognito-idp:us-east-1:12345:userpool/us-east-1_9jUv74DH8\"}}}" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...appa.test_cognito_trigger_existing_UnusedAccountValidityDays/sts.GetCallerIdentity_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"UserId": "RANDOMSTRING12314", | ||
"Account": "12345", | ||
"Arn": "arn:aws:iam::12345:user/test", | ||
"ResponseMetadata": { | ||
"RequestId": "ae5ff039-d365-11e7-ba9b-9d9eb3cc14f8", | ||
"HTTPStatusCode": 200, | ||
"HTTPHeaders": { | ||
"x-amzn-requestid": "ae5ff039-d365-11e7-ba9b-9d9eb3cc14f8", | ||
"content-type": "text/xml", | ||
"content-length": "401", | ||
"date": "Mon, 27 Nov 2017 11:25:32 GMT" | ||
}, | ||
"RetryAttempts": 0 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.