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

Description

Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action.

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 ChangeMessageVisibilityBatch Source #

See: newChangeMessageVisibilityBatch smart constructor.

Constructors

ChangeMessageVisibilityBatch' 

Fields

Instances

Instances details
Eq ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

Read ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

Show ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

Generic ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

Associated Types

type Rep ChangeMessageVisibilityBatch :: Type -> Type #

NFData ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

Hashable ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

AWSRequest ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

ToHeaders ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

ToPath ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

ToQuery ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

type Rep ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

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

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

newChangeMessageVisibilityBatch Source #

Create a value of ChangeMessageVisibilityBatch 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:ChangeMessageVisibilityBatch', changeMessageVisibilityBatch_queueUrl - The URL of the Amazon SQS queue whose messages' visibility is changed.

Queue URLs and names are case-sensitive.

$sel:entries:ChangeMessageVisibilityBatch', changeMessageVisibilityBatch_entries - A list of receipt handles of the messages for which the visibility timeout must be changed.

Request Lenses

changeMessageVisibilityBatch_queueUrl :: Lens' ChangeMessageVisibilityBatch Text Source #

The URL of the Amazon SQS queue whose messages' visibility is changed.

Queue URLs and names are case-sensitive.

changeMessageVisibilityBatch_entries :: Lens' ChangeMessageVisibilityBatch [ChangeMessageVisibilityBatchRequestEntry] Source #

A list of receipt handles of the messages for which the visibility timeout must be changed.

Destructuring the Response

data ChangeMessageVisibilityBatchResponse Source #

For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.

See: newChangeMessageVisibilityBatchResponse smart constructor.

Constructors

ChangeMessageVisibilityBatchResponse' 

Fields

Instances

Instances details
Eq ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

Read ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

Show ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

Generic ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

NFData ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

type Rep ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Amazonka.SQS.ChangeMessageVisibilityBatch

type Rep ChangeMessageVisibilityBatchResponse = D1 ('MetaData "ChangeMessageVisibilityBatchResponse" "Amazonka.SQS.ChangeMessageVisibilityBatch" "libZSservicesZSamazonka-sqsZSamazonka-sqs" 'False) (C1 ('MetaCons "ChangeMessageVisibilityBatchResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "successful") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ChangeMessageVisibilityBatchResultEntry]) :*: S1 ('MetaSel ('Just "failed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [BatchResultErrorEntry]))))

newChangeMessageVisibilityBatchResponse Source #

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

$sel:successful:ChangeMessageVisibilityBatchResponse', changeMessageVisibilityBatchResponse_successful - A list of ChangeMessageVisibilityBatchResultEntry items.

$sel:failed:ChangeMessageVisibilityBatchResponse', changeMessageVisibilityBatchResponse_failed - A list of BatchResultErrorEntry items.

Response Lenses