public interface PermissionApi
PermissionAsyncApi
Modifier and Type | Method and Description |
---|---|
void |
addPermissionToAccount(String label,
Action permission,
String accountId)
The AddPermission action adds a permission to a queue for a specific
principal.
|
void |
remove(String label)
The RemovePermission action revokes any permissions in the queue policy
that matches the Label parameter.
|
void addPermissionToAccount(String label, Action permission, String accountId)
queue
- queue to change permissions onlabel
- The unique identification of the permission you're setting.
example: AliceSendMessage
Constraints: Maximum 80 characters; alphanumeric characters,
hyphens (-), and underscores (_) are allowed.permission
- The action you want to allow for the specified principal.accountId
- The AWS account number of the principal who will be given
permission. The principal must have an AWS account, but does not
need to be signed up for Amazon SQS. For information about
locating the AWS account identification, see Your AWS
Identifiers in the Amazon SQS Developer Guide.
Constraints: Valid 12-digit AWS account number, without hyphensvoid remove(String label)
queue
- queue to change permissions onlabel
- The identification of the permission you want to remove. This is
the label you added in AddPermission. example: AliceSendMessageCopyright © 2009-2013 jclouds. All Rights Reserved.