amazonka-sqs-2.0: Amazon Simple Queue Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SQS.DeleteMessageBatch

Description

Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage. The result of the action on each message is reported individually in the response.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&AttributeName.1=first
&AttributeName.2=second
Synopsis

Creating a Request

data DeleteMessageBatch Source #

See: newDeleteMessageBatch smart constructor.

Constructors

DeleteMessageBatch' 

Fields

Instances

Instances details
ToHeaders DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

ToPath DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

ToQuery DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

AWSRequest DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

Associated Types

type AWSResponse DeleteMessageBatch #

Generic DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

Associated Types

type Rep DeleteMessageBatch :: Type -> Type #

Read DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

Show DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

NFData DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

Methods

rnf :: DeleteMessageBatch -> () #

Eq DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

Hashable DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

type AWSResponse DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

type Rep DeleteMessageBatch Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

type Rep DeleteMessageBatch = D1 ('MetaData "DeleteMessageBatch" "Amazonka.SQS.DeleteMessageBatch" "amazonka-sqs-2.0-8jRKm0MCN6JIBFunCpUxaV" 'False) (C1 ('MetaCons "DeleteMessageBatch'" 'PrefixI 'True) (S1 ('MetaSel ('Just "queueUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [DeleteMessageBatchRequestEntry])))

newDeleteMessageBatch Source #

Create a value of DeleteMessageBatch 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:DeleteMessageBatch', deleteMessageBatch_queueUrl - The URL of the Amazon SQS queue from which messages are deleted.

Queue URLs and names are case-sensitive.

$sel:entries:DeleteMessageBatch', deleteMessageBatch_entries - A list of receipt handles for the messages to be deleted.

Request Lenses

deleteMessageBatch_queueUrl :: Lens' DeleteMessageBatch Text Source #

The URL of the Amazon SQS queue from which messages are deleted.

Queue URLs and names are case-sensitive.

deleteMessageBatch_entries :: Lens' DeleteMessageBatch [DeleteMessageBatchRequestEntry] Source #

A list of receipt handles for the messages to be deleted.

Destructuring the Response

data DeleteMessageBatchResponse Source #

For each message in the batch, the response contains a DeleteMessageBatchResultEntry tag if the message is deleted or a BatchResultErrorEntry tag if the message can't be deleted.

See: newDeleteMessageBatchResponse smart constructor.

Constructors

DeleteMessageBatchResponse' 

Fields

Instances

Instances details
Generic DeleteMessageBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

Associated Types

type Rep DeleteMessageBatchResponse :: Type -> Type #

Read DeleteMessageBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

Show DeleteMessageBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

NFData DeleteMessageBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

Eq DeleteMessageBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

type Rep DeleteMessageBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.DeleteMessageBatch

type Rep DeleteMessageBatchResponse = D1 ('MetaData "DeleteMessageBatchResponse" "Amazonka.SQS.DeleteMessageBatch" "amazonka-sqs-2.0-8jRKm0MCN6JIBFunCpUxaV" 'False) (C1 ('MetaCons "DeleteMessageBatchResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "successful") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [DeleteMessageBatchResultEntry]) :*: S1 ('MetaSel ('Just "failed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [BatchResultErrorEntry]))))

newDeleteMessageBatchResponse Source #

Create a value of DeleteMessageBatchResponse 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:httpStatus:DeleteMessageBatchResponse', deleteMessageBatchResponse_httpStatus - The response's http status code.

$sel:successful:DeleteMessageBatchResponse', deleteMessageBatchResponse_successful - A list of DeleteMessageBatchResultEntry items.

$sel:failed:DeleteMessageBatchResponse', deleteMessageBatchResponse_failed - A list of BatchResultErrorEntry items.

Response Lenses