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.DeleteQueue

Description

Deletes the queue specified by the QueueUrl, regardless of the queue's contents.

Be careful with the DeleteQueue action: When you delete a queue, any messages in the queue are no longer available.

When you delete a queue, the deletion process takes up to 60 seconds. Requests you send involving that queue during the 60 seconds might succeed. For example, a SendMessage request might succeed, but after 60 seconds the queue and the message you sent no longer exist.

When you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

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.

Synopsis

Creating a Request

data DeleteQueue Source #

See: newDeleteQueue smart constructor.

Constructors

DeleteQueue' 

Fields

  • queueUrl :: Text

    The URL of the Amazon SQS queue to delete.

    Queue URLs and names are case-sensitive.

Instances

Instances details
Eq DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

Read DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

Show DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

Generic DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

Associated Types

type Rep DeleteQueue :: Type -> Type #

NFData DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

Methods

rnf :: DeleteQueue -> () #

Hashable DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

AWSRequest DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

Associated Types

type AWSResponse DeleteQueue #

ToHeaders DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

Methods

toHeaders :: DeleteQueue -> [Header] #

ToPath DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

ToQuery DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

type Rep DeleteQueue Source # 
Instance details

Defined in Amazonka.SQS.DeleteQueue

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

Defined in Amazonka.SQS.DeleteQueue

newDeleteQueue Source #

Create a value of DeleteQueue 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:DeleteQueue', deleteQueue_queueUrl - The URL of the Amazon SQS queue to delete.

Queue URLs and names are case-sensitive.

Request Lenses

deleteQueue_queueUrl :: Lens' DeleteQueue Text Source #

The URL of the Amazon SQS queue to delete.

Queue URLs and names are case-sensitive.

Destructuring the Response

data DeleteQueueResponse Source #

See: newDeleteQueueResponse smart constructor.

Constructors

DeleteQueueResponse' 

newDeleteQueueResponse :: DeleteQueueResponse Source #

Create a value of DeleteQueueResponse with all optional fields omitted.

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