SQS / Client / remove_permission
remove_permission#
- SQS.Client.remove_permission(**kwargs)#
Revokes any permissions in the queue policy that matches the specified
Labelparameter.Note
Only the owner of a queue can remove permissions from it.
Cross-account permissions don’t apply to this action. For more information, see Grant cross-account permissions to a role and a username in the Amazon SQS Developer Guide.
To remove the ability to change queue permissions, you must deny permission to the
AddPermission,RemovePermission, andSetQueueAttributesactions in your IAM policy.
See also: AWS API Documentation
Request Syntax
response = client.remove_permission( QueueUrl='string', Label='string' )
- Parameters:
QueueUrl (string) –
[REQUIRED]
The URL of the Amazon SQS queue from which permissions are removed.
Queue URLs and names are case-sensitive.
Label (string) –
[REQUIRED]
The identification of the permission to remove. This is the label added using the
AddPermissionaction.
- Returns:
None
Exceptions
SQS.Client.exceptions.InvalidAddressSQS.Client.exceptions.RequestThrottledSQS.Client.exceptions.QueueDoesNotExistSQS.Client.exceptions.InvalidSecuritySQS.Client.exceptions.UnsupportedOperation