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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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.

&amp;Attribute.1=this
&amp;Attribute.2=that

Synopsis

Creating a Request

changeMessageVisibilityBatch #

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 to take action on. Queue URLs are case-sensitive.
  • cmvbEntries - A list of receipt handles of the messages for which the visibility timeout must be changed.

data ChangeMessageVisibilityBatch #

See: changeMessageVisibilityBatch smart constructor.

Instances

Eq ChangeMessageVisibilityBatch # 
Data 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 # 
Show ChangeMessageVisibilityBatch # 
Generic ChangeMessageVisibilityBatch # 
Hashable ChangeMessageVisibilityBatch # 
NFData ChangeMessageVisibilityBatch # 
AWSRequest ChangeMessageVisibilityBatch # 
ToQuery ChangeMessageVisibilityBatch # 
ToPath ChangeMessageVisibilityBatch # 
ToHeaders ChangeMessageVisibilityBatch # 
type Rep ChangeMessageVisibilityBatch # 
type Rep ChangeMessageVisibilityBatch = D1 (MetaData "ChangeMessageVisibilityBatch" "Network.AWS.SQS.ChangeMessageVisibilityBatch" "amazonka-sqs-1.4.5-AjHrg8hmhlvBQXJ3tK3BFF" False) (C1 (MetaCons "ChangeMessageVisibilityBatch'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cmvbQueueURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cmvbEntries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ChangeMessageVisibilityBatchRequestEntry]))))
type Rs ChangeMessageVisibilityBatch # 

Request Lenses

cmvbQueueURL :: Lens' ChangeMessageVisibilityBatch Text #

The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive.

cmvbEntries :: Lens' ChangeMessageVisibilityBatch [ChangeMessageVisibilityBatchRequestEntry] #

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

Destructuring the Response

changeMessageVisibilityBatchResponse #

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 #

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 # 
Data ChangeMessageVisibilityBatchResponse # 

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 # 
Show ChangeMessageVisibilityBatchResponse # 
Generic ChangeMessageVisibilityBatchResponse # 
NFData ChangeMessageVisibilityBatchResponse # 
type Rep ChangeMessageVisibilityBatchResponse # 
type Rep ChangeMessageVisibilityBatchResponse = D1 (MetaData "ChangeMessageVisibilityBatchResponse" "Network.AWS.SQS.ChangeMessageVisibilityBatch" "amazonka-sqs-1.4.5-AjHrg8hmhlvBQXJ3tK3BFF" False) (C1 (MetaCons "ChangeMessageVisibilityBatchResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cmvbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "_cmvbrsSuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ChangeMessageVisibilityBatchResultEntry])) (S1 (MetaSel (Just Symbol "_cmvbrsFailed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [BatchResultErrorEntry])))))

Response Lenses