Skip to content
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

Closed
keithyau opened this issue Oct 14, 2013 · 2 comments · Fixed by #525
Closed

AWS SNS 'StringParameter' object has no attribute 'enum' #407

keithyau opened this issue Oct 14, 2013 · 2 comments · Fixed by #525
Assignees
Labels
bug This issue is a bug.

Comments

@keithyau
Copy link

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

@keithyau
Copy link
Author

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:
Warning
The credentials you entered are invalid. Please enter valid credentials and try again.

@ghost ghost assigned garnaat Oct 14, 2013
@garnaat
Copy link
Contributor

garnaat commented Oct 14, 2013

There is something odd going on and at least part of the problem appears to be in AWS CLI. Investigating.

garnaat added a commit to garnaat/botocore that referenced this issue Dec 3, 2013
@garnaat garnaat closed this as completed in 3297e04 Dec 3, 2013
jamesls added a commit to boto/botocore that referenced this issue Dec 6, 2013
* 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
jamesls added a commit that referenced this issue Dec 6, 2013
* 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
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants