78 Commits

Author SHA1 Message Date
Scott Bailey
b71723b99a
awslambda: create_function() should fail on duplicate (#6626) 2023-08-15 21:24:01 +00:00
Bert Blommers
e26cfe7dc6
Techdebt: MyPy: Remove unused ignores (#6542) 2023-07-20 15:46:54 +00:00
Oliver Bell
bf3c9768b2
Lambda: create list_aliases functionality (#6455) 2023-07-01 10:32:33 +00:00
Bert Blommers
932b7a25d6
Lambda: delete_layer_version() now also accepts an ARN (#6409) 2023-06-15 11:05:06 +00:00
Bert Blommers
b0b943949d
Techdebt: Replace string-format with f-strings (for a* dirs) (#5661) 2022-11-12 12:32:07 -01:00
Bert Blommers
8c88a93d7c
TechDebt: MyPy AWSLambda (#5586) 2022-10-22 11:40:20 +00:00
Bert Blommers
2c2db272f9
AWSLambda:add_permission() now properly handles the PrincipalOrgID-parameter (#5511) 2022-10-01 21:08:20 +00:00
Bert Blommers
aa7d68a688
Feature: Ability to seed Moto, and make random ID's deterministic (#5492) 2022-09-28 09:35:12 +00:00
Bert Blommers
1ea0c74028
Feature: AWSLambda Function URL Configs (#5420) 2022-08-24 21:19:17 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Bert Blommers
de990b07f9
AWSLambda - Policy improvements (#4949) 2022-03-19 12:00:39 -01:00
Bert Blommers
96c9391beb
Improvements: AWSLambda (#4943) 2022-03-17 11:32:31 -01:00
Bert Blommers
67ab7f857a
Simplify error handling (#4936) 2022-03-15 15:42:46 -01:00
Bert Blommers
5ae0ced349
AWSLambda - raise correct error when publishing unknown function (#4934) 2022-03-15 14:07:01 -01:00
Bert Blommers
eed32a5f72
Pylint - Enable more rules on source and tests-directory (#4929) 2022-03-11 20:28:45 -01:00
Bert Blommers
de559e450d
AWSLambda - Error when removing unknown permission (#4846) 2022-02-09 18:31:53 -01:00
Bert Blommers
094d00a37a
Feature: APIGatewayV2 (#4840) 2022-02-08 20:12:51 -01:00
Bert Blommers
f45da41b33
AWSLambda - throw error on large responses (>6MB) (#4763) 2022-01-14 22:23:09 -01:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
728c0c91b4
AWSLambda:list_functions() should only return the latest version by default (#4047) 2021-08-28 15:26:44 +01:00
Bert Blommers
cc50acc8b5
AWSLambda - Allow ARN as parameter (#3740) 2021-08-28 07:23:44 +01:00
Bert Blommers
8cc439444f
#3991 - AWSLambda - set content-type to app/json (#4046) 2021-06-30 11:02:38 +01:00
Erez Freiberger
9784e1b487
adding layers support for lambda backend (#3563)
* adding layers support for lambda backend

* improving lambda layer tests

* adding lambda list_layers and fixing tests

* make format
2021-01-17 15:28:49 +00:00
Erez Freiberger
f749f583ee
Add get_function_configuration support for Lambda (#3562)
* Add get_function_configuration support for Lambda

* remove unnesecary code from test and use _lambda_region when asserting

* rename function and skip coping configuration

* run black formatting
2021-01-10 15:24:04 +00:00
Guilherme Martins Crocetti
f744356da7
Lambda reserved concurrency (#3215)
* lambda-responses: add method to dispatch concurrency calls

* lambda-resources: add route to handle concurrency requests

* lambda-model: implement put_function_concurrency and concurrency attribute

* put-concurrency-tests: add one simple test

* get_function: add concurrency entry - with test

* lambda-reserved-concurrency: cloudformation support

* lambda-concurrency: implement delete_reserved with tests

* lambda-concurrency: implement get_reserved with tests

* lint

* implementation-cov: mark delete_function_concurrency, put_function_concurrency and get_function_concurrency

* botocore doesn't display concurrency entry for lambdas without it

* lambda(refactor): improvements on response's handler
2020-08-26 11:06:53 +01:00
Bert Blommers
f82e834225 Lambda - Only return Logs if LogType=Tail 2020-05-07 10:55:15 +01:00
Steve Pulec
a35d1cb780
Merge pull request #2861 from bblommers/feature/883
Lambda - Add test to verify remove_permission functionality
2020-04-25 18:40:05 -05:00
Andrey Kislyuk
76a249c0ec
awslambda: Do not assume X-Amz-Invocation-Type is set 2020-04-16 21:28:27 -07:00
Bert Blommers
9ab02e17d5 #883 - Lambda - Add test to verify remove_permission functinonality 2020-04-03 10:30:05 +01:00
Steve Pulec
039656f84d
Merge pull request #2704 from bblommers/bugfix/2642
Fix AWS Lambda status code on invoke
2020-02-15 10:46:01 -06:00
Terry Griffin
b4c9b76ca9 Added 'x-amzn-ErrorType' in return header from lambda:get_function for missing function 2020-02-06 15:26:20 -08:00
Mike Grima
bb64258a8f Fixed issue with Lambda invoke via ARN
- Fixed an issue where Lambda invokes via an ARN was hitting real AWS.
2020-02-04 22:12:11 -08:00
Brady
2a2ff32dec improves support for AWS lambda policy management 2020-01-24 14:53:16 -05:00
Bert Blommers
ee8231202a Fix linting 2020-01-24 09:08:48 +00:00
Roque Pinel
2ae09c5335 Fix the StatusCode returned by lambda invoke
According to the AWS documentation:
```
The HTTP status code will be in the 200 range for successful request.
For the RequestResponse invocation type this status code will be 200.
For the Event invocation type this status code will be 202.
For the DryRun invocation type the status code will be 204.
```
2020-01-24 09:07:49 +00:00
Bert Blommers
0ea98f22ee Merge branch 'master' into feature/2546 2019-11-19 08:00:59 +00:00
Bert Blommers
c6dd3c96ea AWSLambda - refactor exception handling 2019-11-17 10:59:20 +00:00
Bert Blommers
42311c40ad Add/improve Lambda coverage - no functionality changes 2019-11-15 16:34:14 +00:00
Bert Blommers
40aa73a12b #2546 - AWS Lambda: Add Role validation when creating functions 2019-11-07 17:11:13 +00:00
Ian Yon
577419798d Merge from master to current branch 2019-11-04 12:14:43 -03:00
Ian Yon
90a9235f4c Allow lambda get function by arn and addded environment configuration 2019-11-04 10:44:01 -03:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Jack Danger
b6fe526add
Merge pull request #2502 from bblommers/feature/lambda-delete-by-arn
Feature - Lambda Delete by arn
2019-10-22 16:02:33 -07:00
Jack Danger
a05c7da3bb
Implement support for lambda policies (#2471)
* Implement support for lambda policies

* Fixing two tests that weren't running

* Getting tests running under Python 2.7
2019-10-22 14:09:44 -07:00
Bert Blommers
ce4bd5d64c AWS Lambda - Allow function deletions by ARN 2019-10-22 09:31:37 +01:00
Seth Black
dff24cb032 bringing up test percentage 2019-10-09 16:20:53 -05:00
Seth Black
20dc8ae5c4 getting tests working in server mode 2019-10-09 15:15:10 -05:00
Seth Black
41af98c98b added UpdateFunctionCode and UpdateFunctionConfiguration and associated test cases 2019-10-08 15:59:03 -05:00
Randy Westergren
ccceb70397
And event source mapping endpoints and SQS trigger support 2019-08-20 21:54:57 -04:00
cm-iwata
8f4c273095 fix #2190 (#2194)
lambda list_versions_by_function return $LATEST version and published version
2019-05-21 17:49:56 +01:00