Skip to content
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

support of pathParameter in APIGATEWAY to sqs #47

Closed
2dev2 opened this issue Nov 3, 2019 · 1 comment
Closed

support of pathParameter in APIGATEWAY to sqs #47

2dev2 opened this issue Nov 3, 2019 · 1 comment

Comments

@2dev2
Copy link

2dev2 commented Nov 3, 2019

hi,
I am try to write one post api which will have pathParameter and these values should be passed to sqs either in body or message attribute but not able to achieve

apiGatewayServiceProxies:
- sqs:
path: /sqs/{firstpathparmeter}/{secondpathparmeter}
method: post
queueName: { 'Fn::GetAtt': ['MYSQSQueue', 'QueueName'] }
cors: true

Please help me out to figuring it out how it can done.

@2dev2 2dev2 changed the title handling pathParameter from APIGATEWAY to SQS support of pathParameter in APIGATEWAY to sqs Nov 25, 2019
@2dev2
Copy link
Author

2dev2 commented Nov 27, 2019

It can be done like this for future ref :

path: /sqs/{myKey}
method: post
queueName: { 'Fn::GetAtt': ['MYSQSQueue', 'QueueName'] }
cors: true
acceptParameters:
'method.request.path.myKey': true
requestParameters:
'integration.request.querystring.MessageAttribute.1.Name': "'myKey'"
'integration.request.querystring.MessageAttribute.1.Value.StringValue': 'method.request.path.myKey'
'integration.request.querystring.MessageAttribute.1.Value.DataType': "'String'

@2dev2 2dev2 closed this as completed Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant