-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Confirm by changing [ ] to [x] below to ensure that it's a bug:
- I've gone though the User Guide and the API reference
- I've searched for previous similar issues and didn't find any solution
Describe the bug
The documentation here fails to mention the correct short-hand syntax for the aws sns publish subcommand.
SDK version number
aws-cli/1.16.300 Python/2.7.16 Linux/4.14.171-136.231.amzn2.x86_64 botocore/1.13.36
To Reproduce (observed behavior)
incorrect (as per documentation):
aws sns publish ... --message-attributes 'KeyName1=DataType=string,StringValue=string'
correc (notice DataType needs to be 'String' rather than 'string'):
aws sns publish ... --message-attributes 'KeyName1={DataType=String,StringValue=string}'
Expected behavior
Expect the message to be published with the correct message attributes
Logs/output
Invalid type for parameter MessageAttributes.InstanceId, value: DataType=string, type: <type 'unicode'>, valid types: <type 'dict'>