-
Notifications
You must be signed in to change notification settings - Fork 246
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
feat(aws-apigateway-*): add optional request templates for non-default content-types. #888
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thanks @georgebearden. The implementation looks good to me, and should eliminate the need for the workaround I mentioned in #876. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/README.md
Outdated
Show resolved
Hide resolved
|allowDeleteOperation?|`boolean`|Whether to deploy API Gateway Method for Delete operation on DynamoDB table.| | ||
|deleteRequestTemplate?|`string`|Optional API Gateway Request template for Delete method, it will use the default template if `allowDeleteOperation` is true and `deleteRequestTemplate` is not provided. The default template only supports a partition key and not partition + sort keys.| | ||
|allowCreateOperation?|`boolean`|Whether to deploy an API Gateway Method for POST HTTP operations on the DynamoDB table (i.e. dynamodb:PutItem).| | ||
|createRequestTemplate?|`string`|API Gateway Request Template for the create method for the default `application/json` content-type. This property is required if the `allowCreateOperation` property is set to true.| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a paragraph of prose below this section that explains how all these properties interact. It can be longer and more explanatory than individual comments on each property and only needs to be included once (not repeated for every property).
This is in addition to what you've already done, do not remove anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a crack at it. Give it a read and let me know if it needs to be more clear.
source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/README.md
Outdated
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/core/lib/apigateway-helper.ts
Outdated
Show resolved
Hide resolved
...@aws-solutions-constructs/aws-apigateway-dynamodb/test/integ.custom-integration-responses.ts
Outdated
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/lib/index.ts
Outdated
Show resolved
Hide resolved
...erns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/test/apigateway-kinesis.test.ts
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/lib/index.ts
Outdated
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/test/apigateway-sqs.test.ts
Show resolved
Hide resolved
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/README.md
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/lib/index.ts
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/aws-apigateway-sagemakerendpoint/lib/index.ts
Show resolved
Hide resolved
… template content types.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Issue #, if available:
This Draft PR explores directly adding inline, optional properties for specifying additional content-type mappings for API Gateway request templates. Please see #876 for additional context.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.