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

Contents

Description

Delivers up to ten messages to the specified queue. This is a batch version of SendMessage . For a FIFO queue, multiple messages within a single batch are enqueued in the order they are sent.

The result of sending 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 .

The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of all of the batched messages) are both 256 KB (262,144 bytes).

Important: A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters .

If you don't specify the DelaySeconds parameter for an entry, Amazon SQS uses the default value for the queue.

Synopsis

Creating a Request

sendMessageBatch Source #

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

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

data SendMessageBatch Source #

See: sendMessageBatch smart constructor.

Instances
Eq SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Data SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Methods

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

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

toConstr :: SendMessageBatch -> Constr #

dataTypeOf :: SendMessageBatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Show SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Generic SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Associated Types

type Rep SendMessageBatch :: Type -> Type #

Hashable SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

AWSRequest SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Associated Types

type Rs SendMessageBatch :: Type #

ToHeaders SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

ToPath SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

ToQuery SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

NFData SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Methods

rnf :: SendMessageBatch -> () #

type Rep SendMessageBatch Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

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

Defined in Network.AWS.SQS.SendMessageBatch

Request Lenses

smbQueueURL :: Lens' SendMessageBatch Text Source #

The URL of the Amazon SQS queue to which batched messages are sent. Queue URLs are case-sensitive.

Destructuring the Response

sendMessageBatchResponse Source #

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

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

data SendMessageBatchResponse Source #

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

See: sendMessageBatchResponse smart constructor.

Instances
Eq SendMessageBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Data SendMessageBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Methods

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

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

toConstr :: SendMessageBatchResponse -> Constr #

dataTypeOf :: SendMessageBatchResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SendMessageBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Show SendMessageBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Generic SendMessageBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

Associated Types

type Rep SendMessageBatchResponse :: Type -> Type #

NFData SendMessageBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

type Rep SendMessageBatchResponse Source # 
Instance details

Defined in Network.AWS.SQS.SendMessageBatch

type Rep SendMessageBatchResponse = D1 (MetaData "SendMessageBatchResponse" "Network.AWS.SQS.SendMessageBatch" "amazonka-sqs-1.6.1-4KwGv5jRSGR2noZdqwtyOA" False) (C1 (MetaCons "SendMessageBatchResponse'" PrefixI True) (S1 (MetaSel (Just "_smbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "_smbrsSuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [SendMessageBatchResultEntry]) :*: S1 (MetaSel (Just "_smbrsFailed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [BatchResultErrorEntry]))))

Response Lenses

smbrsFailed :: Lens' SendMessageBatchResponse [BatchResultErrorEntry] Source #

A list of BatchResultErrorEntry items with error details about each message that can't be enqueued.