Amazon.SQS.AmazonSQSClient.RemovePermission C# (CSharp) Méthode

RemovePermission() public méthode

Revokes any permissions in the queue policy that matches the specified Label parameter. Only the owner of the queue can remove permissions.
public RemovePermission ( RemovePermissionRequest request ) : Amazon.SQS.Model.RemovePermissionResponse
request Amazon.SQS.Model.RemovePermissionRequest Container for the necessary parameters to execute the RemovePermission service method.
Résultat Amazon.SQS.Model.RemovePermissionResponse
        public RemovePermissionResponse RemovePermission(RemovePermissionRequest request)
        {
            var marshaller = new RemovePermissionRequestMarshaller();
            var unmarshaller = RemovePermissionResponseUnmarshaller.Instance;

            return Invoke<RemovePermissionRequest,RemovePermissionResponse>(request, marshaller, unmarshaller);
        }

Same methods

AmazonSQSClient::RemovePermission ( string queueUrl, string label ) : Amazon.SQS.Model.RemovePermissionResponse

Usage Example

Exemple #1
0
    public static void SQSRemovePermission()
    {
      #region SQSRemovePermission
      var client = new AmazonSQSClient();

      var request = new RemovePermissionRequest
      {
        Label = "JohnDoeCanAccessQueues",
        QueueUrl = "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyTestQueue"
      };

      client.RemovePermission(request);
      #endregion
    }
AmazonSQSClient