amazon web services - Giving anonymous access to AWS SQS queue using the Java SDK -


i trying provide anonymous access sqs queue providing * principal api rejects it. using aws java sdk.

list<string> principal = new arraylist<string>(); principal.add("*");  list<string> actions = new arraylist<string>(); actions.add("*");   sqsclient.addpermission(queueurl,"realtimeevents",principal,actions); 

this throws following exception:

error message: value [*] parameter principalid invalid.    reason: unable verify. (service: amazonsqs; status code: 400; error code: invalidparametervalue; request id: c749bd43-a485-508d-ba0d-f0d6dd92af7b) 

'*' valid input while defining policy file using ui provide access. idea how make work.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -