Skip to content

SNS publiish documentation incorrect #5129

@alam0rt

Description

@alam0rt

Confirm by changing [ ] to [x] below to ensure that it's a bug:

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'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.documentationThis is a problem with documentation.p2This is a standard priority issueshorthand syntaxsns

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions