/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the sqs-2012-11-05.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SQS.Model
{
///
/// Container for the parameters to the RemovePermission operation.
/// 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
, and SetQueueAttributes
/// actions in your IAM policy.
///
///
///
public partial class RemovePermissionRequest : AmazonSQSRequest
{
private string _label;
private string _queueUrl;
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public RemovePermissionRequest() { }
///
/// Instantiates RemovePermissionRequest with the parameterized properties
///
/// The URL of the Amazon SQS queue from which permissions are removed. Queue URLs and names are case-sensitive.
/// The identification of the permission to remove. This is the label added using the AddPermission
action.
public RemovePermissionRequest(string queueUrl, string label)
{
_queueUrl = queueUrl;
_label = label;
}
///
/// Gets and sets the property Label.
///
/// The identification of the permission to remove. This is the label added using the
/// AddPermission
action.
///
///
[AWSProperty(Required=true)]
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
///
/// Gets and sets the property QueueUrl.
///
/// The URL of the Amazon SQS queue from which permissions are removed.
///
///
///
/// Queue URLs and names are case-sensitive.
///
///
[AWSProperty(Required=true)]
public string QueueUrl
{
get { return this._queueUrl; }
set { this._queueUrl = value; }
}
// Check to see if QueueUrl property is set
internal bool IsSetQueueUrl()
{
return this._queueUrl != null;
}
}
}