libZSservicesZSamazonka-sqsZSamazonka-sqs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SQS.RemovePermission

Description

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 user name 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.
Synopsis

Creating a Request

data RemovePermission Source #

See: newRemovePermission smart constructor.

Constructors

RemovePermission' 

Fields

  • queueUrl :: Text

    The URL of the Amazon SQS queue from which permissions are removed.

    Queue URLs and names are case-sensitive.

  • label :: Text

    The identification of the permission to remove. This is the label added using the AddPermission action.

Instances

Instances details
Eq RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Read RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Show RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Generic RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Associated Types

type Rep RemovePermission :: Type -> Type #

NFData RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Methods

rnf :: RemovePermission -> () #

Hashable RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

AWSRequest RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Associated Types

type AWSResponse RemovePermission #

ToHeaders RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

ToPath RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

ToQuery RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

type Rep RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

type Rep RemovePermission = D1 ('MetaData "RemovePermission" "Amazonka.SQS.RemovePermission" "libZSservicesZSamazonka-sqsZSamazonka-sqs" 'False) (C1 ('MetaCons "RemovePermission'" 'PrefixI 'True) (S1 ('MetaSel ('Just "queueUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "label") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse RemovePermission Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

newRemovePermission Source #

Create a value of RemovePermission with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:queueUrl:RemovePermission', removePermission_queueUrl - The URL of the Amazon SQS queue from which permissions are removed.

Queue URLs and names are case-sensitive.

$sel:label:RemovePermission', removePermission_label - The identification of the permission to remove. This is the label added using the AddPermission action.

Request Lenses

removePermission_queueUrl :: Lens' RemovePermission Text Source #

The URL of the Amazon SQS queue from which permissions are removed.

Queue URLs and names are case-sensitive.

removePermission_label :: Lens' RemovePermission Text Source #

The identification of the permission to remove. This is the label added using the AddPermission action.

Destructuring the Response

data RemovePermissionResponse Source #

See: newRemovePermissionResponse smart constructor.

Instances

Instances details
Eq RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Read RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Show RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Generic RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

Associated Types

type Rep RemovePermissionResponse :: Type -> Type #

NFData RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

type Rep RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.SQS.RemovePermission

type Rep RemovePermissionResponse = D1 ('MetaData "RemovePermissionResponse" "Amazonka.SQS.RemovePermission" "libZSservicesZSamazonka-sqsZSamazonka-sqs" 'False) (C1 ('MetaCons "RemovePermissionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newRemovePermissionResponse :: RemovePermissionResponse Source #

Create a value of RemovePermissionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.