-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add RequestParameters Support #953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 36 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
de44b33
chore: Delete nodejs-upgrade-functions sample app
8798806
docs: update example apps from nodejs6.10 to nodejs8.10 (#883)
carvantes 1fd6dc3
chore: Delete misplaced package.json in several example apps
4e8723a
chore: run cfn lint on translator test output (#888)
keetonian 7209ed4
feat: custom CodeDeploy configurations in DeploymentPreference (#848)
Buffer0x7cd 2b2ea35
docs: update lambda_safe_deployments example to use nodejs8.10 for th…
sullis 973a187
docs: add Auth to supported Api Global properties (#899)
keetonian f762241
docs: fix typo in DEVELOPMENT_GUIDE (#902)
lestephane 61c094b
docs: update globals.rst (#905)
keetonian 97bacc3
feat(policy-templates): add new policy for allowing step functions ex…
ljacobsson 1571c33
docs: add S3 filter example to docs (#909)
charliejllewellyn fee6bb6
chore: bump version to 1.12.0 (#910)
keetonian d18c2fa
fix: fix Internal transform failure on bad Condition syntax (#908)
jadhavmanoj 82f4ef7
fix: internal transform failure on path parameters (#913)
jadhavmanoj f532185
docs: update generated_resources.rst (#919)
ingve 6352f8a
fix: invalid event type error (#918)
praneetap 1255690
chore: update requirements.txt (#928)
keetonian 41fb86a
chore: update base.txt (#927)
keetonian c85796f
test: added test cases for semantic version check (#929)
jadhavmanoj 73cf9d3
chore: update test_translator.py (#933)
keetonian a27fa65
fix: partitionalize arn in StepFunctionsExecutionPolicy (#941)
keetonian fe01a9c
added RequestParameters property to Api event source
beck3905 7dacb5f
switch namedtuple to dictionary with default values
beck3905 5ca3afd
removed unnecessary import
beck3905 1941f5a
added swagger tests
beck3905 41d4b2e
added end to end tests for request parameters
beck3905 17a6bcd
merge latest from upstream/develop
beck3905 9e21f6b
fix get first request parameter after test failure
beck3905 4078aa4
changed dictionary to list to preserve order of parameters
beck3905 628b387
merge from upstream/develop
beck3905 bf37e0f
merge from upstream/develop
beck3905 a6736e9
added request parameters example
beck3905 1e5a862
fixed CodeUri
beck3905 9e33bb1
updated documentation for request parameters
beck3905 6d5a95b
merge from upstream/develop
beck3905 1638c0c
merged from upstream/develop
beck3905 2e87325
merge from upstream/develop
beck3905 c1b7b35
updated error messages for request parameters
beck3905 3869046
Merge remote-tracking branch 'remotes/upstream/develop' into api-even…
beck3905 99aedd9
change query to querystring; fix styling
beck3905 7ec7d1a
minor cleanups
jlhood 5b8f75b
Merge branch 'develop' into api-event-parameters
jlhood File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,6 @@ | ||
exports.handler = function(event, context, callback) { | ||
callback(null, { | ||
"statusCode": 200, | ||
"body": "hello world" | ||
}); | ||
} |
28 changes: 28 additions & 0 deletions
28
examples/2016-10-31/function_request_parameters/template.yaml
This file contains hidden or 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,28 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
Description: Simple API Endpoint configured using Swagger specified inline and backed by a Lambda function | ||
Resources: | ||
|
||
MyLambdaFunction: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
Handler: index.handler | ||
Runtime: nodejs8.10 | ||
CodeUri: src/ | ||
Events: | ||
GetApi: | ||
Type: Api | ||
Properties: | ||
Path: /post | ||
Method: POST | ||
RequestParameters: | ||
- method.request.header.Authorization: | ||
Required: True | ||
Caching: True | ||
- method.request.query.type | ||
beck3905 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
Outputs: | ||
|
||
ApiURL: | ||
Description: "API endpoint URL for Prod environment" | ||
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/prod/get" | ||
jlhood marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.