Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Use RemovePermission
with a CLI
The following code examples show how to use RemovePermission
.
- CLI
-
- Amazon CLI
-
To remove a permission
This example removes the permission with the specified label from the specified queue.
Command:
aws sqs remove-permission --queue-url https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue
--label SendMessagesFromMyQueue
Output:
None.
- PowerShell
-
- Tools for PowerShell
-
Example 1: This example removes the permission settings with the specified label from the specified queue.
Remove-SQSPermission -Label SendMessagesFromMyQueue -QueueUrl https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue
For a complete list of Amazon SDK developer guides and code examples, see
Using Amazon SQS with an Amazon SDK.
This topic also includes information about getting started and details about previous SDK versions.