aws-cli
aws-cli copied to clipboard
Error message does not contain correct invalid parameter value
The command:
aws ses get-identity-verification-attributes --identities "[email protected]"
returns:
{
"Errors": [
{
"Message": "Identity \"[email protected]\" is invalid. Must be a verified email address or domain.",
"Code": "InvalidParameterValue",
"Type": "Sender"
}
],
"VerificationAttributes": {},
"ResponseMetadata": {
"RequestId": "7e327942-e018-11e2-a360-27750189195f"
}
}A client error (InvalidParameterValue) occurred: Identity "[email protected]" is invalid. Must be a verified email address or domain.
Note that, in the final message, the "" characters are removed. The identify specified would then be valid. This is confusing.
What would the proposed fix be? This will depend on the escaped rules of the shell you're using (which at least vary between cmd/bash). If we want to provide the literal value typed on the CLI, wouldn't we have to work out the escaping rules for the shell?
@garnaat thoughts?
I don't know how we could fix this. It's an interaction between escaping in the shell and in Python.