LrSqsClient.removePermission
Removes an SQS permission from the LrSqsClient's current queue.
public static void removePermission(String label)
Arguments
Name | Description |
---|---|
label | Unique ID for the permission being removed. |
Return values
This function does not return any values.
General information
This API removes the permission identified by the label argument.
Example
public void permissions() {
LrSqsClient.initClient(region, standardQueueUrl);
LrSqsClient.addPermission
(
new ArrayList<String>() {{ add("SendMessage"); }},
new ArrayList<String>() {{ add("123456789"); }},
"MyPermission"
);
LrSqsClient.removePermission("MyPermission");
LrSqsClient.closeClient();
}