remove_permission
¶
remove_permission(
queue_url: String,
label: String,
*,
config_overrides: Optional[SQSClientConfig] = None,
) -> None
Revokes any permissions in the queue policy that matches the specified Label parameter.
-
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.
Parameters:
-
queue_url(String) –The URL of the Amazon SQS queue from which permissions are removed.
Queue URLs and names are case-sensitive.
-
label(String) –The identification of the permission to remove. This is the label added using the
AddPermissionaction.
Raises:
-
InvalidAddress–The specified ID is invalid.
-
InvalidSecurity–The request was not made over HTTPS or did not use SigV4 for signing.
-
QueueDoesNotExist–Ensure that the
QueueUrlis correct and that the queue has not been deleted. -
RequestThrottled–The request was denied due to request throttling.
-
Exceeds the permitted request rate for the queue or for the recipient of the request.
-
Ensure that the request rate is within the Amazon SQS limits for sending messages. For more information, see Amazon SQS quotas in the Amazon SQS Developer Guide.
-
-
UnsupportedOperation–Error code 400. Unsupported operation.
-
UnknownServiceError–The service returned an error code this client does not model.