amazonka-sqs-1.6.1: Amazon Simple Queue Service SDK.

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

Network.AWS.SQS.ChangeMessageVisibilityBatch

Contents

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.

Important: 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 .

Synopsis

Creating a Request

changeMessageVisibilityBatch Source #

Creates a value of ChangeMessageVisibilityBatch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cmvbQueueURL - The URL of the Amazon SQS queue whose messages' visibility is changed. Queue URLs are case-sensitive.
  • cmvbEntries - A list of receipt handles of the messages for which the visibility timeout must be changed.

data ChangeMessageVisibilityBatch Source #

See: changeMessageVisibilityBatch smart constructor.

Instances
Eq ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Data ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ChangeMessageVisibilityBatch -> c ChangeMessageVisibilityBatch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ChangeMessageVisibilityBatch #

toConstr :: ChangeMessageVisibilityBatch -> Constr #

dataTypeOf :: ChangeMessageVisibilityBatch -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ChangeMessageVisibilityBatch) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ChangeMessageVisibilityBatch) #

gmapT :: (forall b. Data b => b -> b) -> ChangeMessageVisibilityBatch -> ChangeMessageVisibilityBatch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ChangeMessageVisibilityBatch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ChangeMessageVisibilityBatch -> r #

gmapQ :: (forall d. Data d => d -> u) -> ChangeMessageVisibilityBatch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ChangeMessageVisibilityBatch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ChangeMessageVisibilityBatch -> m ChangeMessageVisibilityBatch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ChangeMessageVisibilityBatch -> m ChangeMessageVisibilityBatch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ChangeMessageVisibilityBatch -> m ChangeMessageVisibilityBatch #

Read ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Show ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Generic ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Associated Types

type Rep ChangeMessageVisibilityBatch :: Type -> Type #

Hashable ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

AWSRequest ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Associated Types

type Rs ChangeMessageVisibilityBatch :: Type #

ToHeaders ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

ToPath ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

ToQuery ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

NFData ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

type Rep ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

type Rep ChangeMessageVisibilityBatch = D1 (MetaData "ChangeMessageVisibilityBatch" "Network.AWS.SQS.ChangeMessageVisibilityBatch" "amazonka-sqs-1.6.1-4KwGv5jRSGR2noZdqwtyOA" False) (C1 (MetaCons "ChangeMessageVisibilityBatch'" PrefixI True) (S1 (MetaSel (Just "_cmvbQueueURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cmvbEntries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ChangeMessageVisibilityBatchRequestEntry])))
type Rs ChangeMessageVisibilityBatch Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Request Lenses

cmvbQueueURL :: Lens' ChangeMessageVisibilityBatch Text Source #

The URL of the Amazon SQS queue whose messages' visibility is changed. Queue URLs are case-sensitive.

cmvbEntries :: Lens' ChangeMessageVisibilityBatch [ChangeMessageVisibilityBatchRequestEntry] Source #

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

Destructuring the Response

changeMessageVisibilityBatchResponse Source #

Creates a value of ChangeMessageVisibilityBatchResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

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: changeMessageVisibilityBatchResponse smart constructor.

Instances
Eq ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Data ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ChangeMessageVisibilityBatchResponse -> c ChangeMessageVisibilityBatchResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ChangeMessageVisibilityBatchResponse #

toConstr :: ChangeMessageVisibilityBatchResponse -> Constr #

dataTypeOf :: ChangeMessageVisibilityBatchResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ChangeMessageVisibilityBatchResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ChangeMessageVisibilityBatchResponse) #

gmapT :: (forall b. Data b => b -> b) -> ChangeMessageVisibilityBatchResponse -> ChangeMessageVisibilityBatchResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ChangeMessageVisibilityBatchResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ChangeMessageVisibilityBatchResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ChangeMessageVisibilityBatchResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ChangeMessageVisibilityBatchResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ChangeMessageVisibilityBatchResponse -> m ChangeMessageVisibilityBatchResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ChangeMessageVisibilityBatchResponse -> m ChangeMessageVisibilityBatchResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ChangeMessageVisibilityBatchResponse -> m ChangeMessageVisibilityBatchResponse #

Read ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Show ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

Generic ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

NFData ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

type Rep ChangeMessageVisibilityBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.ChangeMessageVisibilityBatch

type Rep ChangeMessageVisibilityBatchResponse = D1 (MetaData "ChangeMessageVisibilityBatchResponse" "Network.AWS.SQS.ChangeMessageVisibilityBatch" "amazonka-sqs-1.6.1-4KwGv5jRSGR2noZdqwtyOA" False) (C1 (MetaCons "ChangeMessageVisibilityBatchResponse'" PrefixI True) (S1 (MetaSel (Just "_cmvbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "_cmvbrsSuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ChangeMessageVisibilityBatchResultEntry]) :*: S1 (MetaSel (Just "_cmvbrsFailed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [BatchResultErrorEntry]))))

Response Lenses