-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS SNS 'StringParameter' object has no attribute 'enum' #407
Comments
I also tried aws sns create-platform-application --name testAndroid --platform GCM --attributes PlatformCredential="the key from google console" P.S. the AWS console on this part also give error saying the key is wrong but surely not ... from AWS conole: |
There is something odd going on and at least part of the problem appears to be in AWS CLI. Investigating. |
* release-0.27.0: Bumping version to 0.27.0 Bump jmespath version to 0.2.0 Mark WebsiteRedirectLocation with no_paramfile Update service model to the latest version Add a botocore-specific test for updated handling of maps in query interfaces. Fix handling of unflattened map parameters in query services. Part of the fix for aws/aws-cli#407. Fix handling of empty values for required list parameters. Fixes aws/aws-cli#524. Merge branch 'develop', remote-tracking branch 'origin' into develop
* release-1.2.7: (21 commits) Bumping version to 1.2.7 Update changelog with the latest changes Change mututally to mutually Allow the --protocol option of ec2 create-network-acl-entry command to accept tcp|udp|icmp|all in addition to the numeric protocol numbers. The docs for the command already say it does this but the actual EC2 operation supports only integer values. Fix bug when filtering s3 locations Clean up existing filter unit tests Add unittest for website redirect location Add unit test for recursive download Remove extraneous log statements. Fix an assumption in argprocess.py that all map types will have an enum of possible keys. Also change the import of json to come from the botocore.compat module and also set the object_pairs_hook to use OrderedDict so unit tests can be compared properly. Dependent on boto/botocore#185. Fixes #407. Add tests that verify what ops were called Add a short circuit path for listing a specific s3 object Remove newline between task fail and error messages Add attributes to exception in errorhandler Remove src/dest resource existence check If --private-ip-address is specified with any other options that require the creation of a NetworkInterfaces structure, move the value of --private-ip-address into the NetworkInterfaces structure. Fixes #520. Log CLI/botocore version in the debug logs Add changelog entry for issue 516 Handle a list of strings from a dict in text output Remove tutorial in favor of user guide ...
Hi there,
I tried both Shorthand Syntax and JSON syntax following
http://docs.aws.amazon.com/cli/latest/reference/sns/create-platform-application.html
with no luck.
The error is 'StringParameter' object has no attribute 'enum'
my command is
aws sns create-platform-application --name testAndroid --platform GCM --attributes key="PlatformCredential",value="the key from google console"
or
aws sns create-platform-application --name testAndroid --platform GCM --attributes thejsonfile
my json file is
[
{
"key":"PlatformCredential",
"value":"the key from google console "
}
]
Please kindly help ~
thanks
Keith
The text was updated successfully, but these errors were encountered: