Optional
Message attributes to pass on to SQS. The keys in this object are the names of the attributes. Each attribute has a DataType field, and either a StringValue or BinaryValue field depending on its type. See AWS docs: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_MessageAttributeValue.html
In the StringValue field, you can do API Gateway parameter mapping: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html
Example:
messageAttributes: { clientId: { DataType: "String", StringValue: "${context.authorizer.clientId}", },}, Copy
messageAttributes: { clientId: { DataType: "String", StringValue: "${context.authorizer.clientId}", },},
Message attributes to pass on to SQS. The keys in this object are the names of the attributes. Each attribute has a DataType field, and either a StringValue or BinaryValue field depending on its type. See AWS docs: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_MessageAttributeValue.html
In the StringValue field, you can do API Gateway parameter mapping: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html
Example: