Open kevohagan opened 1 year ago
The addProxyMethodToApiResource accepts a params.methodOptions to be able to override/complement the default options defined
https://github.com/awslabs/aws-solutions-constructs/blob/dc48e482f936c856398c7e600a7805a99a3bea44/source/patterns/%40aws-solutions-constructs/core/lib/apigateway-helper.ts#L324
unfortunately the aws-apigateway-dynamodb construct does not pass this in its call the the addProxyMethodToApiResource method e.g
https://github.com/awslabs/aws-solutions-constructs/blob/dc48e482f936c856398c7e600a7805a99a3bea44/source/patterns/%40aws-solutions-constructs/aws-apigateway-dynamodb/lib/index.ts#L265
Overriding default headers to specify CORS values would be a great use case to do it whilst overriding the default method responses.
Be able to pass in methodOptions as aditional opitional attribute . e.g : createIntegrationMethodOptions
This is a :rocket: Feature Request
Thanks, we'll take a look.
The addProxyMethodToApiResource accepts a params.methodOptions to be able to override/complement the default options defined
https://github.com/awslabs/aws-solutions-constructs/blob/dc48e482f936c856398c7e600a7805a99a3bea44/source/patterns/%40aws-solutions-constructs/core/lib/apigateway-helper.ts#L324
unfortunately the aws-apigateway-dynamodb construct does not pass this in its call the the addProxyMethodToApiResource method e.g
https://github.com/awslabs/aws-solutions-constructs/blob/dc48e482f936c856398c7e600a7805a99a3bea44/source/patterns/%40aws-solutions-constructs/aws-apigateway-dynamodb/lib/index.ts#L265
Use Case
Overriding default headers to specify CORS values would be a great use case to do it whilst overriding the default method responses.
Proposed Solution
Be able to pass in methodOptions as aditional opitional attribute . e.g : createIntegrationMethodOptions
This is a :rocket: Feature Request