I'm not getting shorthand syntax for the "--message-attributes" parameter to work when sending messages using AWS CLI for SQS. The Commands that I used are below,
aws sqs send-message \
--queue-url https://sqs.us-east-1.amazonaws.com/0000000000/aa_queue_name \
--message-body "message body goes here" \
--message-attributes firstAttribute={DataType=String,StringValue="hello world"},secondAttribute={DataType=String,StringValue="goodbye world"}
And I'm getting this error:
Parameter validation failed: Invalid type for parameter MessageAttributes.contentType, value: StringValue=Snapshot, type: , valid types:
Any solution?