SQSClient.add_permission
rboto-sqs==0.4.0 · Service index · Types
Model summary (excerpt): Adds a permission to a queue for a specific principal . This allows sharing access to the queue. When you create a queue, you have full control access rights for the queue. Only you, the owner of the queue, can grant or deny permissions to the queue. For more information about these permissions, see Allow Developers to Write Messages to a Shared Queue in the Amazon SQS Developer Guide ....
Install and imports
Signature
async def add_permission(
*,
queue_url: str,
label: str,
aws_account_ids: Sequence[str],
actions: Sequence[str],
) -> None: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
queue_url |
Yes | The URL of the Amazon SQS queue to which permissions are added. Queue URLs and names are case-sensitive. |
label |
Yes | The unique identification of the permission you're setting (for example, AliceSendMessage ). Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens ( - ), and underscores ( _ ). |
aws_account_ids |
Yes | The Amazon Web Services account numbers of the principals who are to receive permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide . |
actions |
Yes | The action the client wants to allow for the specified principal. Valid values: the name of any action or * . For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide . Specifying SendMessage , DeleteMessage , or ChangeMessageVisibility for ActionName.n also grants permissions for the... |
Output
None.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
—
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_sqs.exceptions:
InvalidAddressError, InvalidSecurityError, OverLimitError, QueueDoesNotExistError, RequestThrottledError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.