Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
keithyau opened this Issue · 2 comments

2 participants

keithyau Mitch Garnaat
keithyau

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

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.

Mitch Garnaat garnaat was assigned
Mitch Garnaat

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

Mitch Garnaat garnaat closed this issue from a commit
Mitch Garnaat garnaat Fix an assumption in argprocess.py that all map types will have an en…
…um 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.
3297e04
Mitch Garnaat garnaat closed this in 3297e04
James Saryerwinnie jamesls referenced this issue from a commit in boto/botocore
James Saryerwinnie jamesls Merge branch 'release-0.27.0'
* 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
309cdc7
James Saryerwinnie jamesls referenced this issue from a commit
James Saryerwinnie jamesls Merge branch 'release-1.2.7'
* 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
  ...
6b62d91
Eron Hennessey EronHennessey referenced this issue from a commit
Mitch Garnaat garnaat Fix an assumption in argprocess.py that all map types will have an en…
…um 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.
ae7084d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.