Smaws_Client_SQS.AddPermission
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.
AddPermission
generates a policy for you. You can use
[SetQueueAttributes]
to upload your policy. For more information, see Using Custom Policies with the Amazon SQS Access Policy Language in the Amazon SQS Developer Guide.
AddPermission
, RemovePermission
, and SetQueueAttributes
actions in your IAM policy.AddPermission
does not support adding a non-account principal.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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidAddress of Types.invalid_address
| `InvalidSecurity of Types.invalid_security
| `OverLimit of Types.over_limit
| `QueueDoesNotExist of Types.queue_does_not_exist
| `RequestThrottled of Types.request_throttled
| `UnsupportedOperation of Types.unsupported_operation ] ->
string
val request :
'http_type Smaws_Lib.Context.t ->
Types.add_permission_request ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidAddress of Types.invalid_address
| `InvalidSecurity of Types.invalid_security
| `OverLimit of Types.over_limit
| `QueueDoesNotExist of Types.queue_does_not_exist
| `RequestThrottled of Types.request_throttled
| `UnsupportedOperation of Types.unsupported_operation ])
Stdlib.result