packages feed

amazonka-sqs 1.4.4 → 1.4.5

raw patch · 23 files changed

+586/−527 lines, 23 filesdep ~amazonka-coredep ~amazonka-sqsdep ~amazonka-testPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: amazonka-core, amazonka-sqs, amazonka-test

API changes (from Hackage documentation)

- Network.AWS.SQS: ApproximateNumberOfMessages :: QueueAttributeName
- Network.AWS.SQS: ApproximateNumberOfMessagesDelayed :: QueueAttributeName
- Network.AWS.SQS: ApproximateNumberOfMessagesNotVisible :: QueueAttributeName
- Network.AWS.SQS: CreatedTimestamp :: QueueAttributeName
- Network.AWS.SQS: DelaySeconds :: QueueAttributeName
- Network.AWS.SQS: LastModifiedTimestamp :: QueueAttributeName
- Network.AWS.SQS: MaximumMessageSize :: QueueAttributeName
- Network.AWS.SQS: MessageRetentionPeriod :: QueueAttributeName
- Network.AWS.SQS: Policy :: QueueAttributeName
- Network.AWS.SQS: QueueARN :: QueueAttributeName
- Network.AWS.SQS: ReceiveMessageWaitTimeSeconds :: QueueAttributeName
- Network.AWS.SQS: RedrivePolicy :: QueueAttributeName
- Network.AWS.SQS: VisibilityTimeout :: QueueAttributeName
- Network.AWS.SQS.Types: ApproximateNumberOfMessages :: QueueAttributeName
- Network.AWS.SQS.Types: ApproximateNumberOfMessagesDelayed :: QueueAttributeName
- Network.AWS.SQS.Types: ApproximateNumberOfMessagesNotVisible :: QueueAttributeName
- Network.AWS.SQS.Types: CreatedTimestamp :: QueueAttributeName
- Network.AWS.SQS.Types: DelaySeconds :: QueueAttributeName
- Network.AWS.SQS.Types: LastModifiedTimestamp :: QueueAttributeName
- Network.AWS.SQS.Types: MaximumMessageSize :: QueueAttributeName
- Network.AWS.SQS.Types: MessageRetentionPeriod :: QueueAttributeName
- Network.AWS.SQS.Types: Policy :: QueueAttributeName
- Network.AWS.SQS.Types: QueueARN :: QueueAttributeName
- Network.AWS.SQS.Types: ReceiveMessageWaitTimeSeconds :: QueueAttributeName
- Network.AWS.SQS.Types: RedrivePolicy :: QueueAttributeName
- Network.AWS.SQS.Types: VisibilityTimeout :: QueueAttributeName
+ Network.AWS.SQS: QANAll :: QueueAttributeName
+ Network.AWS.SQS: QANApproximateNumberOfMessages :: QueueAttributeName
+ Network.AWS.SQS: QANApproximateNumberOfMessagesDelayed :: QueueAttributeName
+ Network.AWS.SQS: QANApproximateNumberOfMessagesNotVisible :: QueueAttributeName
+ Network.AWS.SQS: QANContentBasedDeduplication :: QueueAttributeName
+ Network.AWS.SQS: QANCreatedTimestamp :: QueueAttributeName
+ Network.AWS.SQS: QANDelaySeconds :: QueueAttributeName
+ Network.AWS.SQS: QANFifoQueue :: QueueAttributeName
+ Network.AWS.SQS: QANLastModifiedTimestamp :: QueueAttributeName
+ Network.AWS.SQS: QANMaximumMessageSize :: QueueAttributeName
+ Network.AWS.SQS: QANMessageRetentionPeriod :: QueueAttributeName
+ Network.AWS.SQS: QANPolicy :: QueueAttributeName
+ Network.AWS.SQS: QANQueueARN :: QueueAttributeName
+ Network.AWS.SQS: QANReceiveMessageWaitTimeSeconds :: QueueAttributeName
+ Network.AWS.SQS: QANRedrivePolicy :: QueueAttributeName
+ Network.AWS.SQS: QANVisibilityTimeout :: QueueAttributeName
+ Network.AWS.SQS: sMessageDeduplicationId :: Lens' SendMessageBatchRequestEntry (Maybe Text)
+ Network.AWS.SQS: sMessageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text)
+ Network.AWS.SQS: smbreSequenceNumber :: Lens' SendMessageBatchResultEntry (Maybe Text)
+ Network.AWS.SQS.ReceiveMessage: rmReceiveRequestAttemptId :: Lens' ReceiveMessage (Maybe Text)
+ Network.AWS.SQS.SendMessage: smMessageDeduplicationId :: Lens' SendMessage (Maybe Text)
+ Network.AWS.SQS.SendMessage: smMessageGroupId :: Lens' SendMessage (Maybe Text)
+ Network.AWS.SQS.SendMessage: smrsSequenceNumber :: Lens' SendMessageResponse (Maybe Text)
+ Network.AWS.SQS.Types: QANAll :: QueueAttributeName
+ Network.AWS.SQS.Types: QANApproximateNumberOfMessages :: QueueAttributeName
+ Network.AWS.SQS.Types: QANApproximateNumberOfMessagesDelayed :: QueueAttributeName
+ Network.AWS.SQS.Types: QANApproximateNumberOfMessagesNotVisible :: QueueAttributeName
+ Network.AWS.SQS.Types: QANContentBasedDeduplication :: QueueAttributeName
+ Network.AWS.SQS.Types: QANCreatedTimestamp :: QueueAttributeName
+ Network.AWS.SQS.Types: QANDelaySeconds :: QueueAttributeName
+ Network.AWS.SQS.Types: QANFifoQueue :: QueueAttributeName
+ Network.AWS.SQS.Types: QANLastModifiedTimestamp :: QueueAttributeName
+ Network.AWS.SQS.Types: QANMaximumMessageSize :: QueueAttributeName
+ Network.AWS.SQS.Types: QANMessageRetentionPeriod :: QueueAttributeName
+ Network.AWS.SQS.Types: QANPolicy :: QueueAttributeName
+ Network.AWS.SQS.Types: QANQueueARN :: QueueAttributeName
+ Network.AWS.SQS.Types: QANReceiveMessageWaitTimeSeconds :: QueueAttributeName
+ Network.AWS.SQS.Types: QANRedrivePolicy :: QueueAttributeName
+ Network.AWS.SQS.Types: QANVisibilityTimeout :: QueueAttributeName
+ Network.AWS.SQS.Types: sMessageDeduplicationId :: Lens' SendMessageBatchRequestEntry (Maybe Text)
+ Network.AWS.SQS.Types: sMessageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text)
+ Network.AWS.SQS.Types: smbreSequenceNumber :: Lens' SendMessageBatchResultEntry (Maybe Text)

Files

README.md view
@@ -8,50 +8,27 @@  ## Version -`1.4.4`+`1.4.5`   ## Description -Welcome to the /Amazon Simple Queue Service API Reference/. This section describes who should read this guide, how the guide is organized, and other resources related to the Amazon Simple Queue Service (Amazon SQS).--Amazon SQS offers reliable and scalable hosted queues for storing messages as they travel between computers. By using Amazon SQS, you can move data between distributed components of your applications that perform different tasks without losing messages or requiring each component to be always available.--Helpful Links:---   <http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl Current WSDL (2012-11-05)>---   <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html Making API Requests>---   <http://aws.amazon.com/sqs/ Amazon SQS product page>---   <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html Using Amazon SQS Message Attributes>---   <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues>---   <http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region Regions and Endpoints>--We also provide SDKs that enable you to access Amazon SQS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as:---   Cryptographically signing your service requests---   Retrying requests---   Handling error responses--For a list of available SDKs, go to <http://aws.amazon.com/tools/ Tools for Amazon Web Services>.- Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-sqs) and the [AWS API Reference](https://aws.amazon.com/documentation/).  The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),-which provides mechanisms for specifying AuthN/AuthZ information and sending requests.+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses. -Use of lenses is required for constructing and manipulating types.-This is due to the amount of nesting of AWS types and transparency regarding+Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding de/serialisation into more palatable Haskell values. The provided lenses should be compatible with any of the major lens libraries [lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Network.AWS.SQS](http://hackage.haskell.org/package/amazonka-sqs/docs/Network-AWS-SQS.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+  ## Contribute 
amazonka-sqs.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-sqs-version:               1.4.4+version:               1.4.5 synopsis:              Amazon Simple Queue Service SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -13,46 +13,19 @@ cabal-version:         >= 1.10 extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep description:-    Welcome to the /Amazon Simple Queue Service API Reference/. This section describes who should read this guide, how the guide is organized, and other resources related to the Amazon Simple Queue Service (Amazon SQS).--    Amazon SQS offers reliable and scalable hosted queues for storing messages as they travel between computers. By using Amazon SQS, you can move data between distributed components of your applications that perform different tasks without losing messages or requiring each component to be always available.--    Helpful Links:--    -   <http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl Current WSDL (2012-11-05)>--    -   <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html Making API Requests>--    -   <http://aws.amazon.com/sqs/ Amazon SQS product page>--    -   <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html Using Amazon SQS Message Attributes>--    -   <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues>--    -   <http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region Regions and Endpoints>--    We also provide SDKs that enable you to access Amazon SQS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as:--    -   Cryptographically signing your service requests--    -   Retrying requests--    -   Handling error responses--    For a list of available SDKs, go to <http://aws.amazon.com/tools/ Tools for Amazon Web Services>.-    .     The types from this library are intended to be used with     <http://hackage.haskell.org/package/amazonka amazonka>, which provides-    mechanisms for specifying AuthN/AuthZ information and sending requests.+    mechanisms for specifying AuthN/AuthZ information, sending requests,+    and receiving responses.     .-    Use of lenses is required for constructing and manipulating types.-    This is due to the amount of nesting of AWS types and transparency regarding+    Lenses are used for constructing and manipulating types,+    due to the depth of nesting of AWS types and transparency regarding     de/serialisation into more palatable Haskell values.     The provided lenses should be compatible with any of the major lens libraries     such as <http://hackage.haskell.org/package/lens lens> or     <http://hackage.haskell.org/package/lens-family-core lens-family-core>.     .-    See "Network.AWS.SQS" or <https://aws.amazon.com/documentation/ the AWS Documentation>+    See "Network.AWS.SQS" or <https://aws.amazon.com/documentation/ the AWS documentation>     to get started.  source-repository head@@ -92,7 +65,7 @@         , Network.AWS.SQS.Types.Sum      build-depends:-          amazonka-core == 1.4.4.*+          amazonka-core == 1.4.5.*         , base          >= 4.7     && < 5  test-suite amazonka-sqs-test@@ -112,9 +85,9 @@         , Test.AWS.SQS.Internal      build-depends:-          amazonka-core == 1.4.4.*-        , amazonka-test == 1.4.4.*-        , amazonka-sqs == 1.4.4.*+          amazonka-core == 1.4.5.*+        , amazonka-test == 1.4.5.*+        , amazonka-sqs == 1.4.5.*         , base         , bytestring         , tasty
gen/Network/AWS/SQS.hs view
@@ -11,33 +11,49 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Welcome to the /Amazon Simple Queue Service API Reference/. This section describes who should read this guide, how the guide is organized, and other resources related to the Amazon Simple Queue Service (Amazon SQS).+-- Welcome to the /Amazon Simple Queue Service API Reference/ . This section describes who should read this guide, how the guide is organized, and other resources related to the Amazon Simple Queue Service (Amazon SQS). --+-- -- Amazon SQS offers reliable and scalable hosted queues for storing messages as they travel between computers. By using Amazon SQS, you can move data between distributed components of your applications that perform different tasks without losing messages or requiring each component to be always available. ----- Helpful Links:+-- __Topics__ ----- -   <http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl Current WSDL (2012-11-05)>+--     * ----- -   <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html Making API Requests>+--     * ----- -   <http://aws.amazon.com/sqs/ Amazon SQS product page>+--     * 'CommonParameters' ----- -   <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html Using Amazon SQS Message Attributes>+--     * 'CommonErrors' ----- -   <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> ----- -   <http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region Regions and Endpoints> --+-- __Helpful Links__+--+--     * <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html Making API Requests>+--+--     * <http://aws.amazon.com/sqs/ Amazon SQS product page>+--+--     * <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html Using Amazon SQS Message Attributes>+--+--     * <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues>+--+--     * <http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region Regions and Endpoints>+--+--+-- -- We also provide SDKs that enable you to access Amazon SQS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as: ----- -   Cryptographically signing your service requests+--     * Cryptographically signing your service requests ----- -   Retrying requests+--     * Retrying requests ----- -   Handling error responses+--     * Handling error responses ----- For a list of available SDKs, go to <http://aws.amazon.com/tools/ Tools for Amazon Web Services>.+--+--+-- For a list of available SDKs, see <http://aws.amazon.com/tools/ Tools for Amazon Web Services> .+-- module Network.AWS.SQS     (     -- * Service Configuration@@ -215,12 +231,15 @@     , sendMessageBatchRequestEntry     , sMessageAttributes     , sDelaySeconds+    , sMessageDeduplicationId+    , sMessageGroupId     , sId     , sMessageBody      -- ** SendMessageBatchResultEntry     , SendMessageBatchResultEntry     , sendMessageBatchResultEntry+    , smbreSequenceNumber     , smbreMD5OfMessageAttributes     , smbreId     , smbreMessageId
gen/Network/AWS/SQS/AddPermission.hs view
@@ -18,17 +18,15 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Adds a permission to a queue for a specific <http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P principal>. This allows for sharing access to the queue.+-- Adds a permission to a queue for a specific <http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P principal> . This allows for sharing access to the queue. ----- When you create a queue, you have full control access rights for the queue. Only you (as owner of the queue) can grant or deny permissions to the queue. For more information about these permissions, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html Shared Queues> in the /Amazon SQS Developer Guide/. ----- 'AddPermission' writes an Amazon SQS-generated policy. If you want to write your own policy, use < SetQueueAttributes> to upload your policy. For more information about writing your own policy, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AccessPolicyLanguage.html Using The Access Policy Language> in the /Amazon SQS Developer Guide/.+-- When you create a queue, you have full control access rights for the queue. Only you (as owner of the queue) can grant or deny permissions to the queue. For more information about these permissions, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html Shared Queues> in the /Amazon SQS Developer Guide/ . ----- Some API 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:+-- @&amp;Attribute.1=this@ ----- '&amp;Attribute.1=this'+-- @&amp;Attribute.2=that@ ----- '&amp;Attribute.2=that' module Network.AWS.SQS.AddPermission     (     -- * Creating a Request@@ -54,6 +52,8 @@  -- | --+--+-- -- /See:/ 'addPermission' smart constructor. data AddPermission = AddPermission'     { _apQueueURL      :: !Text@@ -66,13 +66,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'apQueueURL'+-- * 'apQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. ----- * 'apLabel'+-- * 'apLabel' - The unique identification of the permission you're setting (e.g., @AliceSendMessage@ ). Constraints: Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed. ----- * 'apAWSAccountIds'+-- * 'apAWSAccountIds' - The AWS account number of the <http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P principal> who will be given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html Your AWS Identifiers> in the /Amazon SQS Developer Guide/ . ----- * 'apActions'+-- * 'apActions' - The action the client wants to allow for the specified principal. The following are valid values: @* | SendMessage | ReceiveMessage | DeleteMessage | ChangeMessageVisibility | GetQueueAttributes | GetQueueUrl@ . For more information about these actions, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes Understanding Permissions> in the /Amazon SQS Developer Guide/ . Specifying @SendMessage@ , @DeleteMessage@ , or @ChangeMessageVisibility@ for the @ActionName.n@ also grants permissions for the corresponding batch versions of those actions: @SendMessageBatch@ , @DeleteMessageBatch@ , and @ChangeMessageVisibilityBatch@ . addPermission     :: Text -- ^ 'apQueueURL'     -> Text -- ^ 'apLabel'@@ -85,23 +85,19 @@     , _apActions = mempty     } --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. apQueueURL :: Lens' AddPermission Text apQueueURL = lens _apQueueURL (\ s a -> s{_apQueueURL = a}); --- | The unique identification of the permission you\'re setting (e.g., 'AliceSendMessage'). Constraints: Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.+-- | The unique identification of the permission you're setting (e.g., @AliceSendMessage@ ). Constraints: Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed. apLabel :: Lens' AddPermission Text apLabel = lens _apLabel (\ s a -> s{_apLabel = a}); --- | The AWS account number of the <http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P principal> who will be given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html Your AWS Identifiers> in the /Amazon SQS Developer Guide/.+-- | The AWS account number of the <http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P principal> who will be given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html Your AWS Identifiers> in the /Amazon SQS Developer Guide/ . apAWSAccountIds :: Lens' AddPermission [Text] apAWSAccountIds = lens _apAWSAccountIds (\ s a -> s{_apAWSAccountIds = a}) . _Coerce; --- | The action the client wants to allow for the specified principal. The following are valid values: '* | SendMessage | ReceiveMessage | DeleteMessage | ChangeMessageVisibility | GetQueueAttributes | GetQueueUrl'. For more information about these actions, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes Understanding Permissions> in the /Amazon SQS Developer Guide/.------ Specifying 'SendMessage', 'DeleteMessage', or 'ChangeMessageVisibility' for the 'ActionName.n' also grants permissions for the corresponding batch versions of those actions: 'SendMessageBatch', 'DeleteMessageBatch', and 'ChangeMessageVisibilityBatch'.+-- | The action the client wants to allow for the specified principal. The following are valid values: @* | SendMessage | ReceiveMessage | DeleteMessage | ChangeMessageVisibility | GetQueueAttributes | GetQueueUrl@ . For more information about these actions, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes Understanding Permissions> in the /Amazon SQS Developer Guide/ . Specifying @SendMessage@ , @DeleteMessage@ , or @ChangeMessageVisibility@ for the @ActionName.n@ also grants permissions for the corresponding batch versions of those actions: @SendMessageBatch@ , @DeleteMessageBatch@ , and @ChangeMessageVisibilityBatch@ . apActions :: Lens' AddPermission [Text] apActions = lens _apActions (\ s a -> s{_apActions = a}) . _Coerce; 
gen/Network/AWS/SQS/ChangeMessageVisibility.hs view
@@ -18,15 +18,15 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Changes the visibility timeout of a specified message in a queue to a new value. The maximum allowed timeout value you can set the value to is 12 hours. This means you can\'t extend the timeout of a message in an existing queue to more than a total visibility timeout of 12 hours. (For more information visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/.)+-- Changes the visibility timeout of a specified message in a queue to a new value. The maximum allowed timeout value you can set the value to is 12 hours. This means you can't extend the timeout of a message in an existing queue to more than a total visibility timeout of 12 hours. (For more information visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/ .) ----- For example, let\'s say you have a message and its default message visibility timeout is 5 minutes. After 3 minutes, you call 'ChangeMessageVisiblity' with a timeout of 10 minutes. At that time, the timeout for the message would be extended by 10 minutes beyond the time of the ChangeMessageVisibility call. This results in a total visibility timeout of 13 minutes. You can continue to call ChangeMessageVisibility to extend the visibility timeout to a maximum of 12 hours. If you try to extend beyond 12 hours, the request will be rejected. ----- There is a 120,000 limit for the number of inflight messages per queue. Messages are inflight after they have been received from the queue by a consuming component, but have not yet been deleted from the queue. If you reach the 120,000 limit, you will receive an OverLimit error message from Amazon SQS. To help avoid reaching the limit, you should delete the messages from the queue after they have been processed. You can also increase the number of queues you use to process the messages.+-- For example, let's say you have a message and its default message visibility timeout is 5 minutes. After 3 minutes, you call @ChangeMessageVisiblity@ with a timeout of 10 minutes. At that time, the timeout for the message would be extended by 10 minutes beyond the time of the ChangeMessageVisibility call. This results in a total visibility timeout of 13 minutes. You can continue to call ChangeMessageVisibility to extend the visibility timeout to a maximum of 12 hours. If you try to extend beyond 12 hours, the request will be rejected. ----- If you attempt to set the 'VisibilityTimeout' to an amount more than the maximum time left, Amazon SQS returns an error. It will not automatically recalculate and increase the timeout to the maximum time remaining.+-- /Important:/ If you attempt to set the @VisibilityTimeout@ to an amount more than the maximum time left, Amazon SQS returns an error. It will not automatically recalculate and increase the timeout to the maximum time remaining. ----- Unlike with a queue, when you change the visibility timeout for a specific message, that timeout value is applied immediately but is not saved in memory for that message. If you don\'t delete a message after it is received, the visibility timeout for the message the next time it is received reverts to the original timeout value, not the value you set with the 'ChangeMessageVisibility' action.+-- /Important:/ Unlike with a queue, when you change the visibility timeout for a specific message, that timeout value is applied immediately but is not saved in memory for that message. If you don't delete a message after it is received, the visibility timeout for the message the next time it is received reverts to the original timeout value, not the value you set with the @ChangeMessageVisibility@ action.+-- module Network.AWS.SQS.ChangeMessageVisibility     (     -- * Creating a Request@@ -60,11 +60,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cmvQueueURL'+-- * 'cmvQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. ----- * 'cmvReceiptHandle'+-- * 'cmvReceiptHandle' - The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the 'ReceiveMessage' action. ----- * 'cmvVisibilityTimeout'+-- * 'cmvVisibilityTimeout' - The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout. changeMessageVisibility     :: Text -- ^ 'cmvQueueURL'     -> Text -- ^ 'cmvReceiptHandle'@@ -77,17 +77,15 @@     , _cmvVisibilityTimeout = pVisibilityTimeout_     } --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. cmvQueueURL :: Lens' ChangeMessageVisibility Text cmvQueueURL = lens _cmvQueueURL (\ s a -> s{_cmvQueueURL = a}); --- | The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the < ReceiveMessage> action.+-- | The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the 'ReceiveMessage' action. cmvReceiptHandle :: Lens' ChangeMessageVisibility Text cmvReceiptHandle = lens _cmvReceiptHandle (\ s a -> s{_cmvReceiptHandle = a}); --- | The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message\'s visibility timeout.+-- | The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout. cmvVisibilityTimeout :: Lens' ChangeMessageVisibility Int cmvVisibilityTimeout = lens _cmvVisibilityTimeout (\ s a -> s{_cmvVisibilityTimeout = a}); 
gen/Network/AWS/SQS/ChangeMessageVisibilityBatch.hs view
@@ -18,15 +18,15 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- 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.+-- 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 API 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:+-- /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.1=this@ ----- '&amp;Attribute.2=that'+-- @&amp;Attribute.2=that@+-- module Network.AWS.SQS.ChangeMessageVisibilityBatch     (     -- * Creating a Request@@ -54,6 +54,8 @@  -- | --+--+-- -- /See:/ 'changeMessageVisibilityBatch' smart constructor. data ChangeMessageVisibilityBatch = ChangeMessageVisibilityBatch'     { _cmvbQueueURL :: !Text@@ -64,9 +66,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cmvbQueueURL'+-- * 'cmvbQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. ----- * 'cmvbEntries'+-- * 'cmvbEntries' - A list of receipt handles of the messages for which the visibility timeout must be changed. changeMessageVisibilityBatch     :: Text -- ^ 'cmvbQueueURL'     -> ChangeMessageVisibilityBatch@@ -76,9 +78,7 @@     , _cmvbEntries = mempty     } --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. cmvbQueueURL :: Lens' ChangeMessageVisibilityBatch Text cmvbQueueURL = lens _cmvbQueueURL (\ s a -> s{_cmvbQueueURL = a}); @@ -123,8 +123,10 @@                  "ChangeMessageVisibilityBatchRequestEntry"                  _cmvbEntries] --- | For each message in the batch, the response contains a < ChangeMessageVisibilityBatchResultEntry> tag if the message succeeds or a < BatchResultErrorEntry> tag if the message fails.+-- | 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. data ChangeMessageVisibilityBatchResponse = ChangeMessageVisibilityBatchResponse'     { _cmvbrsResponseStatus :: !Int@@ -136,11 +138,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cmvbrsResponseStatus'+-- * 'cmvbrsResponseStatus' - -- | The response status code. ----- * 'cmvbrsSuccessful'+-- * 'cmvbrsSuccessful' - A list of 'ChangeMessageVisibilityBatchResultEntry' items. ----- * 'cmvbrsFailed'+-- * 'cmvbrsFailed' - A list of 'BatchResultErrorEntry' items. changeMessageVisibilityBatchResponse     :: Int -- ^ 'cmvbrsResponseStatus'     -> ChangeMessageVisibilityBatchResponse@@ -151,15 +153,15 @@     , _cmvbrsFailed = mempty     } --- | The response status code.+-- | -- | The response status code. cmvbrsResponseStatus :: Lens' ChangeMessageVisibilityBatchResponse Int cmvbrsResponseStatus = lens _cmvbrsResponseStatus (\ s a -> s{_cmvbrsResponseStatus = a}); --- | A list of < ChangeMessageVisibilityBatchResultEntry> items.+-- | A list of 'ChangeMessageVisibilityBatchResultEntry' items. cmvbrsSuccessful :: Lens' ChangeMessageVisibilityBatchResponse [ChangeMessageVisibilityBatchResultEntry] cmvbrsSuccessful = lens _cmvbrsSuccessful (\ s a -> s{_cmvbrsSuccessful = a}) . _Coerce; --- | A list of < BatchResultErrorEntry> items.+-- | A list of 'BatchResultErrorEntry' items. cmvbrsFailed :: Lens' ChangeMessageVisibilityBatchResponse [BatchResultErrorEntry] cmvbrsFailed = lens _cmvbrsFailed (\ s a -> s{_cmvbrsFailed = a}) . _Coerce; 
gen/Network/AWS/SQS/CreateQueue.hs view
@@ -18,21 +18,33 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a new queue, or returns the URL of an existing one. When you request 'CreateQueue', you provide a name for the queue. To successfully create a new queue, you must provide a name that is unique within the scope of your own queues.+-- Creates a new standard or FIFO queue or returns the URL of an existing queue. You can pass one or more attributes in the request. ----- If you delete a queue, you must wait at least 60 seconds before creating a queue with the same name. ----- You may pass one or more attributes in the request. If you do not provide a value for any attribute, the queue will have the default value for that attribute.+--     * If you don't specify the @FifoQueue@ attribute, Amazon SQS creates a standard queue. ----- Use < GetQueueUrl> to get a queue\'s URL. < GetQueueUrl> requires only the 'QueueName' parameter.+--     * If you don't provide a value for an attribute, the queue is created with the default value for the attribute. ----- If you provide the name of an existing queue, along with the exact names and values of all the queue\'s attributes, 'CreateQueue' returns the queue URL for the existing queue. If the queue name, attribute names, or attribute values do not match an existing queue, 'CreateQueue' returns an error.+--     * If you delete a queue, you must wait at least 60 seconds before creating a queue with the same name. ----- Some API 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: ----- '&amp;Attribute.1=this' ----- '&amp;Attribute.2=that'+-- To successfully create a new queue, you must provide a queue name that adheres to the <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/limits-queues.html limits related to queues> and is unique within the scope of your queues.+--+-- To get the queue URL, use the 'GetQueueUrl' action. 'GetQueueUrl' requires only the @QueueName@ parameter.+--+--     * If you provide the name of an existing queue along with the exact names and values of all the queue's attributes, @CreateQueue@ returns the queue URL for the existing queue.+--+--     * If the queue name, attribute names, or attribute values don't match an existing queue, @CreateQueue@ returns an error.+--+--+--+-- Some API actions take lists of parameters. Specify these lists using the @param.n@ notation. Values of @n@ are integers starting from 1. The following is an example of a parameter list with two elements:+--+-- @&amp;Attribute.1=this@+--+-- @&amp;Attribute.2=that@+-- module Network.AWS.SQS.CreateQueue     (     -- * Creating a Request@@ -59,6 +71,8 @@  -- | --+--+-- -- /See:/ 'createQueue' smart constructor. data CreateQueue = CreateQueue'     { _cqAttributes :: !(Maybe (Map QueueAttributeName Text))@@ -69,9 +83,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cqAttributes'+-- * 'cqAttributes' - A map of attributes with their corresponding values. The following lists the names, descriptions, and values of the special request parameters that the @CreateQueue@ action uses:     * @DelaySeconds@ - The number of seconds for which the delivery of all messages in the queue is delayed. An integer from 0 to 900 (15 minutes). The default is 0 (zero).      * @MaximumMessageSize@ - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB).      * @MessageRetentionPeriod@ - The number of seconds for which Amazon SQS retains a message. An integer representing seconds, from 60 (1 minute) to 120,9600 (14 days). The default is 345,600 (4 days).      * @Policy@ - The queue's policy. A valid AWS policy. For more information about policy structure, see <http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html Overview of AWS IAM Policies> in the /Amazon IAM User Guide/ .      * @ReceiveMessageWaitTimeSeconds@ - The number of seconds for which a 'ReceiveMessage' action will wait for a message to arrive. An integer from 0 to 20 (seconds). The default is 0.      * @RedrivePolicy@ - The parameters for the dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> in the /Amazon SQS Developer Guide/ .      * @VisibilityTimeout@ - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default is 30. For more information about the visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/ . The following attributes apply only to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html FIFO (first-in-first-out) queues> :     * @FifoQueue@ - Designates a queue as FIFO. You can provide this attribute only during queue creation; you can't change it for an existing queue. When you set this attribute, you must provide a @MessageGroupId@ explicitly. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic FIFO Queue Logic> in the /Amazon SQS Developer Guide/ .     * @ContentBasedDeduplication@ - Enables content-based deduplication. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ .      * Every message must have a unique @MessageDeduplicationId@ ,     * You may provide a @MessageDeduplicationId@ explicitly.     * If you aren't able to provide a @MessageDeduplicationId@ and you enable @ContentBasedDeduplication@ for your queue, Amazon SQS uses a SHA-256 hash to generate the @MessageDeduplicationId@ using the body of the message (but not the attributes of the message).      * If you don't provide a @MessageDeduplicationId@ and the queue doesn't have @ContentBasedDeduplication@ set, the action fails with an error.     * If the queue has @ContentBasedDeduplication@ set, your @MessageDeduplicationId@ overrides the generated one.     * When @ContentBasedDeduplication@ is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.     * You can also use @ContentBasedDeduplication@ for messages with identical content to be treated as duplicates.     * If you send one message with @ContentBasedDeduplication@ enabled and then another message with a @MessageDeduplicationId@ that is the same as the one generated for the first @MessageDeduplicationId@ , the two messages are treated as duplicates and only one copy of the message is delivered.  Any other valid special request parameters that are specified (such as @ApproximateNumberOfMessages@ , @ApproximateNumberOfMessagesDelayed@ , @ApproximateNumberOfMessagesNotVisible@ , @CreatedTimestamp@ , @LastModifiedTimestamp@ , and @QueueArn@ ) will be ignored. ----- * 'cqQueueName'+-- * 'cqQueueName' - The name of the new queue. The following limits apply to this name:     * A queue name can have up to 80 characters.     * The following are accepted: alphanumeric chatacters, hyphens (@-@ ), and underscores (@_@ ).     * A FIFO queue name must end with the @.fifo@ suffix. Queue names are case-sensitive. createQueue     :: Text -- ^ 'cqQueueName'     -> CreateQueue@@ -81,31 +95,11 @@     , _cqQueueName = pQueueName_     } --- | A map of attributes with their corresponding values.------ The following lists the names, descriptions, and values of the special request parameters the 'CreateQueue' action uses:------ -   'DelaySeconds' - The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 (zero).------ -   'MaximumMessageSize' - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).------ -   'MessageRetentionPeriod' - The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).------ -   'Policy' - The queue\'s policy. A valid AWS policy. For more information about policy structure, see <http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html Overview of AWS IAM Policies> in the /Amazon IAM User Guide/.------ -   'ReceiveMessageWaitTimeSeconds' - The time for which a < ReceiveMessage> call will wait for a message to arrive. An integer from 0 to 20 (seconds). The default for this attribute is 0.------ -   'RedrivePolicy' - The parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> in the /Amazon SQS Developer Guide/.------ -   'VisibilityTimeout' - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/.------ Any other valid special request parameters that are specified (such as 'ApproximateNumberOfMessages', 'ApproximateNumberOfMessagesDelayed', 'ApproximateNumberOfMessagesNotVisible', 'CreatedTimestamp', 'LastModifiedTimestamp', and 'QueueArn') will be ignored.+-- | A map of attributes with their corresponding values. The following lists the names, descriptions, and values of the special request parameters that the @CreateQueue@ action uses:     * @DelaySeconds@ - The number of seconds for which the delivery of all messages in the queue is delayed. An integer from 0 to 900 (15 minutes). The default is 0 (zero).      * @MaximumMessageSize@ - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB).      * @MessageRetentionPeriod@ - The number of seconds for which Amazon SQS retains a message. An integer representing seconds, from 60 (1 minute) to 120,9600 (14 days). The default is 345,600 (4 days).      * @Policy@ - The queue's policy. A valid AWS policy. For more information about policy structure, see <http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html Overview of AWS IAM Policies> in the /Amazon IAM User Guide/ .      * @ReceiveMessageWaitTimeSeconds@ - The number of seconds for which a 'ReceiveMessage' action will wait for a message to arrive. An integer from 0 to 20 (seconds). The default is 0.      * @RedrivePolicy@ - The parameters for the dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> in the /Amazon SQS Developer Guide/ .      * @VisibilityTimeout@ - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default is 30. For more information about the visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/ . The following attributes apply only to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html FIFO (first-in-first-out) queues> :     * @FifoQueue@ - Designates a queue as FIFO. You can provide this attribute only during queue creation; you can't change it for an existing queue. When you set this attribute, you must provide a @MessageGroupId@ explicitly. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic FIFO Queue Logic> in the /Amazon SQS Developer Guide/ .     * @ContentBasedDeduplication@ - Enables content-based deduplication. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ .      * Every message must have a unique @MessageDeduplicationId@ ,     * You may provide a @MessageDeduplicationId@ explicitly.     * If you aren't able to provide a @MessageDeduplicationId@ and you enable @ContentBasedDeduplication@ for your queue, Amazon SQS uses a SHA-256 hash to generate the @MessageDeduplicationId@ using the body of the message (but not the attributes of the message).      * If you don't provide a @MessageDeduplicationId@ and the queue doesn't have @ContentBasedDeduplication@ set, the action fails with an error.     * If the queue has @ContentBasedDeduplication@ set, your @MessageDeduplicationId@ overrides the generated one.     * When @ContentBasedDeduplication@ is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.     * You can also use @ContentBasedDeduplication@ for messages with identical content to be treated as duplicates.     * If you send one message with @ContentBasedDeduplication@ enabled and then another message with a @MessageDeduplicationId@ that is the same as the one generated for the first @MessageDeduplicationId@ , the two messages are treated as duplicates and only one copy of the message is delivered.  Any other valid special request parameters that are specified (such as @ApproximateNumberOfMessages@ , @ApproximateNumberOfMessagesDelayed@ , @ApproximateNumberOfMessagesNotVisible@ , @CreatedTimestamp@ , @LastModifiedTimestamp@ , and @QueueArn@ ) will be ignored. cqAttributes :: Lens' CreateQueue (HashMap QueueAttributeName Text) cqAttributes = lens _cqAttributes (\ s a -> s{_cqAttributes = a}) . _Default . _Map; --- | The name for the queue to be created.------ Queue names are case-sensitive.+-- | The name of the new queue. The following limits apply to this name:     * A queue name can have up to 80 characters.     * The following are accepted: alphanumeric chatacters, hyphens (@-@ ), and underscores (@_@ ).     * A FIFO queue name must end with the @.fifo@ suffix. Queue names are case-sensitive. cqQueueName :: Lens' CreateQueue Text cqQueueName = lens _cqQueueName (\ s a -> s{_cqQueueName = a}); @@ -140,6 +134,8 @@  -- | Returns the QueueUrl element of the created queue. --+--+-- -- /See:/ 'createQueueResponse' smart constructor. data CreateQueueResponse = CreateQueueResponse'     { _cqrsQueueURL       :: !(Maybe Text)@@ -150,9 +146,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cqrsQueueURL'+-- * 'cqrsQueueURL' - The URL for the created Amazon SQS queue. ----- * 'cqrsResponseStatus'+-- * 'cqrsResponseStatus' - -- | The response status code. createQueueResponse     :: Int -- ^ 'cqrsResponseStatus'     -> CreateQueueResponse@@ -166,7 +162,7 @@ cqrsQueueURL :: Lens' CreateQueueResponse (Maybe Text) cqrsQueueURL = lens _cqrsQueueURL (\ s a -> s{_cqrsQueueURL = a}); --- | The response status code.+-- | -- | The response status code. cqrsResponseStatus :: Lens' CreateQueueResponse Int cqrsResponseStatus = lens _cqrsResponseStatus (\ s a -> s{_cqrsResponseStatus = a}); 
gen/Network/AWS/SQS/DeleteMessage.hs view
@@ -18,11 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes the specified message from the specified queue. You specify the message by using the message\'s 'receipt handle' and not the 'message ID' you received when you sent the message. Even if the message is locked by another reader due to the visibility timeout setting, it is still deleted from the queue. If you leave a message in the queue for longer than the queue\'s configured retention period, Amazon SQS automatically deletes it.+-- Deletes the specified message from the specified queue. You specify the message by using the message's @receipt handle@ and not the @message ID@ you received when you sent the message. Even if the message is locked by another reader due to the visibility timeout setting, it is still deleted from the queue. If you leave a message in the queue for longer than the queue's configured retention period, Amazon SQS automatically deletes it. ----- The receipt handle is associated with a specific instance of receiving the message. If you receive a message more than once, the receipt handle you get each time you receive the message is different. When you request 'DeleteMessage', if you don\'t provide the most recently received receipt handle for the message, the request will still succeed, but the message might not be deleted. ----- It is possible you will receive a message even after you have deleted it. This might happen on rare occasions if one of the servers storing a copy of the message is unavailable when you request to delete the message. The copy remains on the server and might be returned to you again on a subsequent receive request. You should create your system to be idempotent so that receiving a particular message more than once is not a problem.+-- /Important:/ It is possible you will receive a message even after you have deleted it. This might happen on rare occasions if one of the servers storing a copy of the message is unavailable when you request to delete the message. The copy remains on the server and might be returned to you again on a subsequent receive request. You should create your system to be idempotent so that receiving a particular message more than once is not a problem.+-- module Network.AWS.SQS.DeleteMessage     (     -- * Creating a Request@@ -46,6 +46,8 @@  -- | --+--+-- -- /See:/ 'deleteMessage' smart constructor. data DeleteMessage = DeleteMessage'     { _dmQueueURL      :: !Text@@ -56,9 +58,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dmQueueURL'+-- * 'dmQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. ----- * 'dmReceiptHandle'+-- * 'dmReceiptHandle' - The receipt handle associated with the message to delete. deleteMessage     :: Text -- ^ 'dmQueueURL'     -> Text -- ^ 'dmReceiptHandle'@@ -69,9 +71,7 @@     , _dmReceiptHandle = pReceiptHandle_     } --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. dmQueueURL :: Lens' DeleteMessage Text dmQueueURL = lens _dmQueueURL (\ s a -> s{_dmQueueURL = a}); 
gen/Network/AWS/SQS/DeleteMessageBatch.hs view
@@ -18,15 +18,15 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes up to ten messages from the specified queue. This is a batch version of < DeleteMessage>. The result of the delete action on each message is reported individually in the response.+-- Deletes up to ten messages from the specified queue. This is a batch version of 'DeleteMessage' . The result of the delete 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 API 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:+-- /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.1=this@ ----- '&amp;Attribute.2=that'+-- @&amp;Attribute.2=that@+-- module Network.AWS.SQS.DeleteMessageBatch     (     -- * Creating a Request@@ -54,6 +54,8 @@  -- | --+--+-- -- /See:/ 'deleteMessageBatch' smart constructor. data DeleteMessageBatch = DeleteMessageBatch'     { _dmbQueueURL :: !Text@@ -64,9 +66,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dmbQueueURL'+-- * 'dmbQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. ----- * 'dmbEntries'+-- * 'dmbEntries' - A list of receipt handles for the messages to be deleted. deleteMessageBatch     :: Text -- ^ 'dmbQueueURL'     -> DeleteMessageBatch@@ -76,9 +78,7 @@     , _dmbEntries = mempty     } --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. dmbQueueURL :: Lens' DeleteMessageBatch Text dmbQueueURL = lens _dmbQueueURL (\ s a -> s{_dmbQueueURL = a}); @@ -117,8 +117,10 @@                toQueryList "DeleteMessageBatchRequestEntry"                  _dmbEntries] --- | For each message in the batch, the response contains a < DeleteMessageBatchResultEntry> tag if the message is deleted or a < BatchResultErrorEntry> tag if the message cannot be deleted.+-- | 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:/ 'deleteMessageBatchResponse' smart constructor. data DeleteMessageBatchResponse = DeleteMessageBatchResponse'     { _dmbrsResponseStatus :: !Int@@ -130,11 +132,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dmbrsResponseStatus'+-- * 'dmbrsResponseStatus' - -- | The response status code. ----- * 'dmbrsSuccessful'+-- * 'dmbrsSuccessful' - A list of 'DeleteMessageBatchResultEntry' items. ----- * 'dmbrsFailed'+-- * 'dmbrsFailed' - A list of 'BatchResultErrorEntry' items. deleteMessageBatchResponse     :: Int -- ^ 'dmbrsResponseStatus'     -> DeleteMessageBatchResponse@@ -145,15 +147,15 @@     , _dmbrsFailed = mempty     } --- | The response status code.+-- | -- | The response status code. dmbrsResponseStatus :: Lens' DeleteMessageBatchResponse Int dmbrsResponseStatus = lens _dmbrsResponseStatus (\ s a -> s{_dmbrsResponseStatus = a}); --- | A list of < DeleteMessageBatchResultEntry> items.+-- | A list of 'DeleteMessageBatchResultEntry' items. dmbrsSuccessful :: Lens' DeleteMessageBatchResponse [DeleteMessageBatchResultEntry] dmbrsSuccessful = lens _dmbrsSuccessful (\ s a -> s{_dmbrsSuccessful = a}) . _Coerce; --- | A list of < BatchResultErrorEntry> items.+-- | A list of 'BatchResultErrorEntry' items. dmbrsFailed :: Lens' DeleteMessageBatchResponse [BatchResultErrorEntry] dmbrsFailed = lens _dmbrsFailed (\ s a -> s{_dmbrsFailed = a}) . _Coerce; 
gen/Network/AWS/SQS/DeleteQueue.hs view
@@ -18,13 +18,15 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes the queue specified by the __queue URL__, regardless of whether the queue is empty. If the specified queue does not exist, Amazon SQS returns a successful response.+-- Deletes the queue specified by the __queue URL__ , regardless of whether the queue is empty. If the specified queue doesn't exist, Amazon SQS returns a successful response. ----- Use 'DeleteQueue' with care; once you delete your queue, any messages in the queue are no longer available. ----- When you delete a queue, the deletion process takes up to 60 seconds. Requests you send involving that queue during the 60 seconds might succeed. For example, a < SendMessage> request might succeed, but after the 60 seconds, the queue and that message you sent no longer exist. Also, when you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.+-- /Important:/ Use @DeleteQueue@ with care; once you delete your queue, any messages in the queue are no longer available. ----- We reserve the right to delete queues that have had no activity for more than 30 days. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSConcepts.html How Amazon SQS Queues Work> in the /Amazon SQS Developer Guide/.+-- When you delete a queue, the deletion process takes up to 60 seconds. Requests you send involving that queue during the 60 seconds might succeed. For example, a 'SendMessage' request might succeed, but after the 60 seconds, the queue and that message you sent no longer exist. Also, when you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.+--+-- We reserve the right to delete queues that have had no activity for more than 30 days. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSConcepts.html How Amazon SQS Queues Work> in the /Amazon SQS Developer Guide/ .+-- module Network.AWS.SQS.DeleteQueue     (     -- * Creating a Request@@ -47,6 +49,8 @@  -- | --+--+-- -- /See:/ 'deleteQueue' smart constructor. newtype DeleteQueue = DeleteQueue'     { _dqQueueURL :: Text@@ -56,7 +60,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dqQueueURL'+-- * 'dqQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. deleteQueue     :: Text -- ^ 'dqQueueURL'     -> DeleteQueue@@ -65,9 +69,7 @@     { _dqQueueURL = pQueueURL_     } --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. dqQueueURL :: Lens' DeleteQueue Text dqQueueURL = lens _dqQueueURL (\ s a -> s{_dqQueueURL = a}); 
gen/Network/AWS/SQS/GetQueueAttributes.hs view
@@ -20,11 +20,11 @@ -- -- Gets attributes for the specified queue. ----- Some API 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: ----- '&amp;Attribute.1=this'+-- @&amp;Attribute.1=this@ ----- '&amp;Attribute.2=that'+-- @&amp;Attribute.2=that@+-- module Network.AWS.SQS.GetQueueAttributes     (     -- * Creating a Request@@ -51,6 +51,8 @@  -- | --+--+-- -- /See:/ 'getQueueAttributes' smart constructor. data GetQueueAttributes = GetQueueAttributes'     { _gqaAttributeNames :: !(Maybe [QueueAttributeName])@@ -61,9 +63,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gqaAttributeNames'+-- * 'gqaAttributeNames' - A list of attributes for which to retrieve information. The following attributes are supported:     * @All@ - Returns all values.      * @ApproximateNumberOfMessages@ - Returns the approximate number of visible messages in a queue. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html Resources Required to Process Messages> in the /Amazon SQS Developer Guide/ .      * @ApproximateNumberOfMessagesDelayed@ - Returns the approximate number of messages that are waiting to be added to the queue.      * @ApproximateNumberOfMessagesNotVisible@ - Returns the approximate number of messages that have not timed-out and are not deleted. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html Resources Required to Process Messages> in the /Amazon SQS Developer Guide/ .      * @CreatedTimestamp@ - Returns the time when the queue was created in seconds (epoch time).     * @DelaySeconds@ - Returns the default delay on the queue in seconds.     * @LastModifiedTimestamp@ - Returns the time when the queue was last changed in seconds (epoch time).     * @MaximumMessageSize@ - Returns the limit of how many bytes a message can contain before Amazon SQS rejects it.     * @MessageRetentionPeriod@ - Returns the number of seconds for which Amazon SQS retains a message.     * @Policy@ - Returns the policy of the queue.     * @QueueArn@ - Returns the Amazon resource name (ARN) of the queue.     * @ReceiveMessageWaitTimeSeconds@ - Returns the number of seconds for which ReceiveMessage call will wait for a message to arrive.      * @RedrivePolicy@ - Returns the parameters for dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> in the /Amazon SQS Developer Guide/ .      * @VisibilityTimeout@ - Returns the visibility timeout for the queue. For more information about the visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/ .  The following attributes apply only to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html FIFO (first-in-first-out) queues> :     * @FifoQueue@ - Returns whether the queue is FIFO. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic FIFO Queue Logic> in the /Amazon SQS Developer Guide/ .     * @ContentBasedDeduplication@ - Returns whether content-based deduplication is enabled for the queue. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ . ----- * 'gqaQueueURL'+-- * 'gqaQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. getQueueAttributes     :: Text -- ^ 'gqaQueueURL'     -> GetQueueAttributes@@ -73,43 +75,11 @@     , _gqaQueueURL = pQueueURL_     } --- | A list of attributes to retrieve information for. The following attributes are supported:------ -   'All' - returns all values.------ -   'ApproximateNumberOfMessages' - returns the approximate number of visible messages in a queue. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html Resources Required to Process Messages> in the /Amazon SQS Developer Guide/.------ -   'ApproximateNumberOfMessagesNotVisible' - returns the approximate number of messages that are not timed-out and not deleted. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html Resources Required to Process Messages> in the /Amazon SQS Developer Guide/.------ -   'VisibilityTimeout' - returns the visibility timeout for the queue. For more information about visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/.------ -   'CreatedTimestamp' - returns the time when the queue was created (epoch time in seconds).------ -   'LastModifiedTimestamp' - returns the time when the queue was last changed (epoch time in seconds).------ -   'Policy' - returns the queue\'s policy.------ -   'MaximumMessageSize' - returns the limit of how many bytes a message can contain before Amazon SQS rejects it.------ -   'MessageRetentionPeriod' - returns the number of seconds Amazon SQS retains a message.------ -   'QueueArn' - returns the queue\'s Amazon resource name (ARN).------ -   'ApproximateNumberOfMessagesDelayed' - returns the approximate number of messages that are pending to be added to the queue.------ -   'DelaySeconds' - returns the default delay on the queue in seconds.------ -   'ReceiveMessageWaitTimeSeconds' - returns the time for which a ReceiveMessage call will wait for a message to arrive.------ -   'RedrivePolicy' - returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> in the /Amazon SQS Developer Guide/.------ Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.+-- | A list of attributes for which to retrieve information. The following attributes are supported:     * @All@ - Returns all values.      * @ApproximateNumberOfMessages@ - Returns the approximate number of visible messages in a queue. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html Resources Required to Process Messages> in the /Amazon SQS Developer Guide/ .      * @ApproximateNumberOfMessagesDelayed@ - Returns the approximate number of messages that are waiting to be added to the queue.      * @ApproximateNumberOfMessagesNotVisible@ - Returns the approximate number of messages that have not timed-out and are not deleted. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html Resources Required to Process Messages> in the /Amazon SQS Developer Guide/ .      * @CreatedTimestamp@ - Returns the time when the queue was created in seconds (epoch time).     * @DelaySeconds@ - Returns the default delay on the queue in seconds.     * @LastModifiedTimestamp@ - Returns the time when the queue was last changed in seconds (epoch time).     * @MaximumMessageSize@ - Returns the limit of how many bytes a message can contain before Amazon SQS rejects it.     * @MessageRetentionPeriod@ - Returns the number of seconds for which Amazon SQS retains a message.     * @Policy@ - Returns the policy of the queue.     * @QueueArn@ - Returns the Amazon resource name (ARN) of the queue.     * @ReceiveMessageWaitTimeSeconds@ - Returns the number of seconds for which ReceiveMessage call will wait for a message to arrive.      * @RedrivePolicy@ - Returns the parameters for dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> in the /Amazon SQS Developer Guide/ .      * @VisibilityTimeout@ - Returns the visibility timeout for the queue. For more information about the visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/ .  The following attributes apply only to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html FIFO (first-in-first-out) queues> :     * @FifoQueue@ - Returns whether the queue is FIFO. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic FIFO Queue Logic> in the /Amazon SQS Developer Guide/ .     * @ContentBasedDeduplication@ - Returns whether content-based deduplication is enabled for the queue. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ . gqaAttributeNames :: Lens' GetQueueAttributes [QueueAttributeName] gqaAttributeNames = lens _gqaAttributeNames (\ s a -> s{_gqaAttributeNames = a}) . _Default . _Coerce; --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. gqaQueueURL :: Lens' GetQueueAttributes Text gqaQueueURL = lens _gqaQueueURL (\ s a -> s{_gqaQueueURL = a}); @@ -145,6 +115,8 @@  -- | A list of returned queue attributes. --+--+-- -- /See:/ 'getQueueAttributesResponse' smart constructor. data GetQueueAttributesResponse = GetQueueAttributesResponse'     { _gqarsAttributes     :: !(Maybe (Map QueueAttributeName Text))@@ -155,9 +127,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gqarsAttributes'+-- * 'gqarsAttributes' - A map of attributes to the respective values. ----- * 'gqarsResponseStatus'+-- * 'gqarsResponseStatus' - -- | The response status code. getQueueAttributesResponse     :: Int -- ^ 'gqarsResponseStatus'     -> GetQueueAttributesResponse@@ -171,7 +143,7 @@ gqarsAttributes :: Lens' GetQueueAttributesResponse (HashMap QueueAttributeName Text) gqarsAttributes = lens _gqarsAttributes (\ s a -> s{_gqarsAttributes = a}) . _Default . _Map; --- | The response status code.+-- | -- | The response status code. gqarsResponseStatus :: Lens' GetQueueAttributesResponse Int gqarsResponseStatus = lens _gqarsResponseStatus (\ s a -> s{_gqarsResponseStatus = a}); 
gen/Network/AWS/SQS/GetQueueURL.hs view
@@ -20,7 +20,9 @@ -- -- Returns the URL of an existing queue. This action provides a simple way to retrieve the URL of an Amazon SQS queue. ----- To access a queue that belongs to another AWS account, use the 'QueueOwnerAWSAccountId' parameter to specify the account ID of the queue\'s owner. The queue\'s owner must grant you permission to access the queue. For more information about shared queue access, see < AddPermission> or go to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html Shared Queues> in the /Amazon SQS Developer Guide/.+--+-- To access a queue that belongs to another AWS account, use the @QueueOwnerAWSAccountId@ parameter to specify the account ID of the queue's owner. The queue's owner must grant you permission to access the queue. For more information about shared queue access, see 'AddPermission' or see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html Shared Queues> in the /Amazon SQS Developer Guide/ .+-- module Network.AWS.SQS.GetQueueURL     (     -- * Creating a Request@@ -47,6 +49,8 @@  -- | --+--+-- -- /See:/ 'getQueueURL' smart constructor. data GetQueueURL = GetQueueURL'     { _gquQueueOwnerAWSAccountId :: !(Maybe Text)@@ -57,9 +61,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gquQueueOwnerAWSAccountId'+-- * 'gquQueueOwnerAWSAccountId' - The AWS account ID of the account that created the queue. ----- * 'gquQueueName'+-- * 'gquQueueName' - The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed. Queue names are case-sensitive. getQueueURL     :: Text -- ^ 'gquQueueName'     -> GetQueueURL@@ -73,9 +77,7 @@ gquQueueOwnerAWSAccountId :: Lens' GetQueueURL (Maybe Text) gquQueueOwnerAWSAccountId = lens _gquQueueOwnerAWSAccountId (\ s a -> s{_gquQueueOwnerAWSAccountId = a}); --- | The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.------ Queue names are case-sensitive.+-- | The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed. Queue names are case-sensitive. gquQueueName :: Lens' GetQueueURL Text gquQueueName = lens _gquQueueName (\ s a -> s{_gquQueueName = a}); @@ -107,8 +109,10 @@                  _gquQueueOwnerAWSAccountId,                "QueueName" =: _gquQueueName] --- | For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/UnderstandingResponses.html Responses> in the /Amazon SQS Developer Guide/.+-- | For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/UnderstandingResponses.html Responses> in the /Amazon SQS Developer Guide/ . --+--+-- -- /See:/ 'getQueueURLResponse' smart constructor. data GetQueueURLResponse = GetQueueURLResponse'     { _gqursResponseStatus :: !Int@@ -119,9 +123,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gqursResponseStatus'+-- * 'gqursResponseStatus' - -- | The response status code. ----- * 'gqursQueueURL'+-- * 'gqursQueueURL' - The URL for the queue. getQueueURLResponse     :: Int -- ^ 'gqursResponseStatus'     -> Text -- ^ 'gqursQueueURL'@@ -132,7 +136,7 @@     , _gqursQueueURL = pQueueURL_     } --- | The response status code.+-- | -- | The response status code. gqursResponseStatus :: Lens' GetQueueURLResponse Int gqursResponseStatus = lens _gqursResponseStatus (\ s a -> s{_gqursResponseStatus = a}); 
gen/Network/AWS/SQS/ListDeadLetterSourceQueues.hs view
@@ -20,7 +20,9 @@ -- -- Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue. ----- For more information about using dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues>.+--+-- For more information about using dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> in the /Amazon SQS Developer Guide/ .+-- module Network.AWS.SQS.ListDeadLetterSourceQueues     (     -- * Creating a Request@@ -46,6 +48,8 @@  -- | --+--+-- -- /See:/ 'listDeadLetterSourceQueues' smart constructor. newtype ListDeadLetterSourceQueues = ListDeadLetterSourceQueues'     { _ldlsqQueueURL :: Text@@ -55,7 +59,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ldlsqQueueURL'+-- * 'ldlsqQueueURL' - The queue URL of a dead letter queue. Queue URLs are case-sensitive. listDeadLetterSourceQueues     :: Text -- ^ 'ldlsqQueueURL'     -> ListDeadLetterSourceQueues@@ -64,9 +68,7 @@     { _ldlsqQueueURL = pQueueURL_     } --- | The queue URL of a dead letter queue.------ Queue URLs are case-sensitive.+-- | The queue URL of a dead letter queue. Queue URLs are case-sensitive. ldlsqQueueURL :: Lens' ListDeadLetterSourceQueues Text ldlsqQueueURL = lens _ldlsqQueueURL (\ s a -> s{_ldlsqQueueURL = a}); @@ -101,6 +103,8 @@  -- | A list of your dead letter source queues. --+--+-- -- /See:/ 'listDeadLetterSourceQueuesResponse' smart constructor. data ListDeadLetterSourceQueuesResponse = ListDeadLetterSourceQueuesResponse'     { _ldlsqrsResponseStatus :: !Int@@ -111,9 +115,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ldlsqrsResponseStatus'+-- * 'ldlsqrsResponseStatus' - -- | The response status code. ----- * 'ldlsqrsQueueURLs'+-- * 'ldlsqrsQueueURLs' - A list of source queue URLs that have the RedrivePolicy queue attribute configured with a dead letter queue. listDeadLetterSourceQueuesResponse     :: Int -- ^ 'ldlsqrsResponseStatus'     -> ListDeadLetterSourceQueuesResponse@@ -123,7 +127,7 @@     , _ldlsqrsQueueURLs = mempty     } --- | The response status code.+-- | -- | The response status code. ldlsqrsResponseStatus :: Lens' ListDeadLetterSourceQueuesResponse Int ldlsqrsResponseStatus = lens _ldlsqrsResponseStatus (\ s a -> s{_ldlsqrsResponseStatus = a}); 
gen/Network/AWS/SQS/ListQueues.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a list of your queues. The maximum number of queues that can be returned is 1000. If you specify a value for the optional 'QueueNamePrefix' parameter, only queues with a name beginning with the specified value are returned.+-- Returns a list of your queues. The maximum number of queues that can be returned is 1000. If you specify a value for the optional @QueueNamePrefix@ parameter, only queues with a name beginning with the specified value are returned.+--+-- module Network.AWS.SQS.ListQueues     (     -- * Creating a Request@@ -44,6 +46,8 @@  -- | --+--+-- -- /See:/ 'listQueues' smart constructor. newtype ListQueues = ListQueues'     { _lqQueueNamePrefix :: Maybe Text@@ -53,7 +57,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lqQueueNamePrefix'+-- * 'lqQueueNamePrefix' - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. Queue names are case-sensitive. listQueues     :: ListQueues listQueues =@@ -61,9 +65,7 @@     { _lqQueueNamePrefix = Nothing     } --- | A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.------ Queue names are case-sensitive.+-- | A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. Queue names are case-sensitive. lqQueueNamePrefix :: Lens' ListQueues (Maybe Text) lqQueueNamePrefix = lens _lqQueueNamePrefix (\ s a -> s{_lqQueueNamePrefix = a}); @@ -96,6 +98,8 @@  -- | A list of your queues. --+--+-- -- /See:/ 'listQueuesResponse' smart constructor. data ListQueuesResponse = ListQueuesResponse'     { _lqrsQueueURLs      :: !(Maybe [Text])@@ -106,9 +110,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lqrsQueueURLs'+-- * 'lqrsQueueURLs' - A list of queue URLs, up to 1000 entries. ----- * 'lqrsResponseStatus'+-- * 'lqrsResponseStatus' - -- | The response status code. listQueuesResponse     :: Int -- ^ 'lqrsResponseStatus'     -> ListQueuesResponse@@ -122,7 +126,7 @@ lqrsQueueURLs :: Lens' ListQueuesResponse [Text] lqrsQueueURLs = lens _lqrsQueueURLs (\ s a -> s{_lqrsQueueURLs = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. lqrsResponseStatus :: Lens' ListQueuesResponse Int lqrsResponseStatus = lens _lqrsResponseStatus (\ s a -> s{_lqrsResponseStatus = a}); 
gen/Network/AWS/SQS/PurgeQueue.hs view
@@ -18,11 +18,13 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes the messages in a queue specified by the __queue URL__.+-- Deletes the messages in a queue specified by the __queue URL__ . ----- When you use the 'PurgeQueue' API, the deleted messages in the queue cannot be retrieved. ----- When you purge a queue, the message deletion process takes up to 60 seconds. All messages sent to the queue before calling 'PurgeQueue' will be deleted; messages sent to the queue while it is being purged may be deleted. While the queue is being purged, messages sent to the queue before 'PurgeQueue' was called may be received, but will be deleted within the next minute.+-- /Important:/ When you use the @PurgeQueue@ API, the deleted messages in the queue can't be retrieved.+--+-- When you purge a queue, the message deletion process takes up to 60 seconds. All messages sent to the queue before calling @PurgeQueue@ will be deleted; messages sent to the queue while it is being purged might be deleted. While the queue is being purged, messages sent to the queue before @PurgeQueue@ was called might be received, but will be deleted within the next minute.+-- module Network.AWS.SQS.PurgeQueue     (     -- * Creating a Request@@ -45,6 +47,8 @@  -- | --+--+-- -- /See:/ 'purgeQueue' smart constructor. newtype PurgeQueue = PurgeQueue'     { _pqQueueURL :: Text@@ -54,7 +58,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pqQueueURL'+-- * 'pqQueueURL' - The queue URL of the queue to delete the messages from when using the @PurgeQueue@ API. Queue URLs are case-sensitive. purgeQueue     :: Text -- ^ 'pqQueueURL'     -> PurgeQueue@@ -63,9 +67,7 @@     { _pqQueueURL = pQueueURL_     } --- | The queue URL of the queue to delete the messages from when using the 'PurgeQueue' API.------ Queue URLs are case-sensitive.+-- | The queue URL of the queue to delete the messages from when using the @PurgeQueue@ API. Queue URLs are case-sensitive. pqQueueURL :: Lens' PurgeQueue Text pqQueueURL = lens _pqQueueURL (\ s a -> s{_pqQueueURL = a}); 
gen/Network/AWS/SQS/ReceiveMessage.hs view
@@ -18,35 +18,40 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves one or more messages, with a maximum limit of 10 messages, from the specified queue. Long poll support is enabled by using the 'WaitTimeSeconds' parameter. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html Amazon SQS Long Poll> in the /Amazon SQS Developer Guide/.+-- Retrieves one or more messages, with a maximum limit of 10 messages, from the specified queue. Long poll support is enabled by using the @WaitTimeSeconds@ parameter. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html Amazon SQS Long Poll> in the /Amazon SQS Developer Guide/ . ----- Short poll is the default behavior where a weighted random set of machines is sampled on a 'ReceiveMessage' call. This means only the messages on the sampled machines are returned. If the number of messages in the queue is small (less than 1000), it is likely you will get fewer messages than you requested per 'ReceiveMessage' call. If the number of messages in the queue is extremely small, you might not receive any messages in a particular 'ReceiveMessage' response; in which case you should repeat the request. --+-- Short poll is the default behavior where a weighted random set of machines is sampled on a @ReceiveMessage@ call. This means only the messages on the sampled machines are returned. If the number of messages in the queue is small (less than 1000), it is likely you will get fewer messages than you requested per @ReceiveMessage@ call. If the number of messages in the queue is extremely small, you might not receive any messages in a particular @ReceiveMessage@ response; in which case you should repeat the request.+-- -- For each message returned, the response includes the following: ----- -   Message body+--     * Message body ----- -   MD5 digest of the message body. For information about MD5, go to <http://www.faqs.org/rfcs/rfc1321.html>.+--     * MD5 digest of the message body. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . ----- -   Message ID you received when you sent the message to the queue.+--     * Message ID you received when you sent the message to the queue. ----- -   Receipt handle.+--     * Receipt handle. ----- -   Message attributes.+--     * Message attributes. ----- -   MD5 digest of the message attributes.+--     * MD5 digest of the message attributes. ----- The receipt handle is the identifier you must provide when deleting the message. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html Queue and Message Identifiers> in the /Amazon SQS Developer Guide/. ----- You can provide the 'VisibilityTimeout' parameter in your request, which will be applied to the messages that Amazon SQS returns in the response. If you do not include the parameter, the overall visibility timeout for the queue is used for the returned messages. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/. ----- Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.+-- The receipt handle is the identifier you must provide when deleting the message. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html Queue and Message Identifiers> in the /Amazon SQS Developer Guide/ .+--+-- You can provide the @VisibilityTimeout@ parameter in your request, which will be applied to the messages that Amazon SQS returns in the response. If you don't include the parameter, the overall visibility timeout for the queue is used for the returned messages. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/ .+--+-- A message that is not deleted or a message whose visibility is not extended before the visibility timeout expires counts as a failed receive. Depending on the configuration of the queue, the message might be sent to the dead letter queue.+-- module Network.AWS.SQS.ReceiveMessage     (     -- * Creating a Request       receiveMessage     , ReceiveMessage     -- * Request Lenses+    , rmReceiveRequestAttemptId     , rmVisibilityTimeout     , rmMessageAttributeNames     , rmWaitTimeSeconds@@ -71,37 +76,43 @@  -- | --+--+-- -- /See:/ 'receiveMessage' smart constructor. data ReceiveMessage = ReceiveMessage'-    { _rmVisibilityTimeout     :: !(Maybe Int)-    , _rmMessageAttributeNames :: !(Maybe [Text])-    , _rmWaitTimeSeconds       :: !(Maybe Int)-    , _rmAttributeNames        :: !(Maybe [MessageAttribute])-    , _rmMaxNumberOfMessages   :: !(Maybe Int)-    , _rmQueueURL              :: !Text+    { _rmReceiveRequestAttemptId :: !(Maybe Text)+    , _rmVisibilityTimeout       :: !(Maybe Int)+    , _rmMessageAttributeNames   :: !(Maybe [Text])+    , _rmWaitTimeSeconds         :: !(Maybe Int)+    , _rmAttributeNames          :: !(Maybe [MessageAttribute])+    , _rmMaxNumberOfMessages     :: !(Maybe Int)+    , _rmQueueURL                :: !Text     } deriving (Eq,Read,Show,Data,Typeable,Generic)  -- | Creates a value of 'ReceiveMessage' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rmVisibilityTimeout'+-- * 'rmReceiveRequestAttemptId' - This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of @ReceiveMessage@ calls. If a networking issue occurs after a @ReceiveMessage@ action, and instead of a response you receive a generic error, you can retry the same action with an identical @ReceiveRequestAttemptId@ to retrieve the same set of messages, even if their visibility timeout has not yet expired.     * You can use @ReceiveRequestAttemptId@ only for 5 minutes after a @ReceiveMessage@ action.     * When you set @FifoQueue@ , a caller of the @ReceiveMessage@ action can provide a @ReceiveRequestAttemptId@ explicitly.     * If a caller of the @ReceiveMessage@ action doesn't provide a @ReceiveRequestAttemptId@ , Amazon SQS generates a @ReceiveRequestAttemptId@ .     * You can retry the @ReceiveMessage@ action with the same @ReceiveRequestAttemptId@ if none of the messages have been modified (deleted or had their visibility changes).     * During a visibility timeout, subsequent calls with the same @ReceiveRequestAttemptId@ return the same messages and receipt handles. If a retry occurs within the deduplication interval, it resets the visibility timeout. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon Simple Queue Service Developer Guide/ . /Important:/ If a caller of the @ReceiveMessage@ action is still processing messages when the visibility timeout expires and messages become visible, another worker reading from the same queue can receive the same messages and therefore process duplicates. Also, if a reader whose message processing time is longer than the visibility timeout tries to delete the processed messages, the action fails with an error. To mitigate this effect, ensure that your application observes a safe threshold before the visibility timeout expires and extend the visibility timeout as necessary.     * While messages with a particular @MessageGroupId@ are invisible, no more messages belonging to the same @MessageGroupId@ are returned until the visibility timeout expires. You can still receive messages with another @MessageGroupId@ as long as it is also visible.     * If a caller of @ReceiveMessage@ can't track the @ReceiveRequestAttemptId@ , no retries will work until the original visibility timeout expires. As a result, delays might occur but the messages in the queue will remain in a strict order. The length of @ReceiveRequestAttemptId@ is 128 characters. @ReceiveRequestAttemptId@ can contain alphanumeric characters (@a-z@ , @A-Z@ , @0-9@ ) and punctuation (@!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~@ ). For best practices of using @ReceiveRequestAttemptId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-receiverequestattemptid-request-parameter Using the ReceiveRequestAttemptId Request Parameter> in the /Amazon Simple Queue Service Developer Guide/ . ----- * 'rmMessageAttributeNames'+-- * 'rmVisibilityTimeout' - The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a @ReceiveMessage@ request. ----- * 'rmWaitTimeSeconds'+-- * 'rmMessageAttributeNames' - The name of the message attribute, where /N/ is the index. The message attribute name can contain the following characters: A-Z, a-z, 0-9, underscore (_), hyphen (-), and period (.). The name must not start or end with a period, and it should not have successive periods. The name is case sensitive and must be unique among all attribute names for the message. The name can be up to 256 characters long. The name can't start with "AWS." or "Amazon." (or any variations in casing), because these prefixes are reserved for use by Amazon Web Services. When using @ReceiveMessage@ , you can send a list of attribute names to receive, or you can return all of the attributes by specifying "All" or ".*" in your request. You can also use "bar.*" to return all message attributes starting with the "bar" prefix. ----- * 'rmAttributeNames'+-- * 'rmWaitTimeSeconds' - The duration (in seconds) for which the call will wait for a message to arrive in the queue before returning. If a message is available, the call will return sooner than WaitTimeSeconds. ----- * 'rmMaxNumberOfMessages'+-- * 'rmAttributeNames' - A list of attributes that need to be returned along with each message. These attributes include:     * @All@ - Returns all values.     * @ApproximateFirstReceiveTimestamp@ - Returns the time the message was first received from the queue (epoch time in milliseconds).     * @ApproximateReceiveCount@ - Returns the number of times a message has been received from the queue but not deleted.     * @SenderId@      * For an IAM user, returns the IAM user ID, for example @ABCDEFGHI1JKLMNOPQ23R@ .     * For an IAM role, returns the IAM role ID, for example @ABCDE1F2GH3I4JK5LMNOP:i-a123b456@ .     * @SentTimestamp@ - Returns the time the message was sent to the queue (epoch time in milliseconds).     * @MessageDeduplicationId@ - Returns the value provided by the sender that calls the @'SendMessage' @ action.     * @MessageGroupId@ - Returns the value provided by the sender that calls the @'SendMessage' @ action. Messages with the same @MessageGroupId@ are returned in sequence.     * @SequenceNumber@ - Returns the value provided by Amazon SQS. Any other valid special request parameters (such as the following) that are specified are ignored:     * @ApproximateNumberOfMessages@      * @ApproximateNumberOfMessagesDelayed@      * @ApproximateNumberOfMessagesNotVisible@      * @CreatedTimestamp@      * @ContentBasedDeduplication@      * @DelaySeconds@      * @LastModifiedTimestamp@      * @MaximumMessageSize@      * @MessageRetentionPeriod@      * @Policy@      * @QueueArn@ ,      * @ReceiveMessageWaitTimeSeconds@      * @RedrivePolicy@      * @FifoQueue@      * @VisibilityTimeout@ ----- * 'rmQueueURL'+-- * 'rmMaxNumberOfMessages' - The maximum number of messages to return. Amazon SQS never returns more messages than this value but might return fewer. Values can be from 1 to 10. Default is 1. All of the messages are not necessarily returned.+--+-- * 'rmQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. receiveMessage     :: Text -- ^ 'rmQueueURL'     -> ReceiveMessage receiveMessage pQueueURL_ =     ReceiveMessage'-    { _rmVisibilityTimeout = Nothing+    { _rmReceiveRequestAttemptId = Nothing+    , _rmVisibilityTimeout = Nothing     , _rmMessageAttributeNames = Nothing     , _rmWaitTimeSeconds = Nothing     , _rmAttributeNames = Nothing@@ -109,13 +120,15 @@     , _rmQueueURL = pQueueURL_     } --- | The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a 'ReceiveMessage' request.+-- | This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of @ReceiveMessage@ calls. If a networking issue occurs after a @ReceiveMessage@ action, and instead of a response you receive a generic error, you can retry the same action with an identical @ReceiveRequestAttemptId@ to retrieve the same set of messages, even if their visibility timeout has not yet expired.     * You can use @ReceiveRequestAttemptId@ only for 5 minutes after a @ReceiveMessage@ action.     * When you set @FifoQueue@ , a caller of the @ReceiveMessage@ action can provide a @ReceiveRequestAttemptId@ explicitly.     * If a caller of the @ReceiveMessage@ action doesn't provide a @ReceiveRequestAttemptId@ , Amazon SQS generates a @ReceiveRequestAttemptId@ .     * You can retry the @ReceiveMessage@ action with the same @ReceiveRequestAttemptId@ if none of the messages have been modified (deleted or had their visibility changes).     * During a visibility timeout, subsequent calls with the same @ReceiveRequestAttemptId@ return the same messages and receipt handles. If a retry occurs within the deduplication interval, it resets the visibility timeout. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon Simple Queue Service Developer Guide/ . /Important:/ If a caller of the @ReceiveMessage@ action is still processing messages when the visibility timeout expires and messages become visible, another worker reading from the same queue can receive the same messages and therefore process duplicates. Also, if a reader whose message processing time is longer than the visibility timeout tries to delete the processed messages, the action fails with an error. To mitigate this effect, ensure that your application observes a safe threshold before the visibility timeout expires and extend the visibility timeout as necessary.     * While messages with a particular @MessageGroupId@ are invisible, no more messages belonging to the same @MessageGroupId@ are returned until the visibility timeout expires. You can still receive messages with another @MessageGroupId@ as long as it is also visible.     * If a caller of @ReceiveMessage@ can't track the @ReceiveRequestAttemptId@ , no retries will work until the original visibility timeout expires. As a result, delays might occur but the messages in the queue will remain in a strict order. The length of @ReceiveRequestAttemptId@ is 128 characters. @ReceiveRequestAttemptId@ can contain alphanumeric characters (@a-z@ , @A-Z@ , @0-9@ ) and punctuation (@!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~@ ). For best practices of using @ReceiveRequestAttemptId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-receiverequestattemptid-request-parameter Using the ReceiveRequestAttemptId Request Parameter> in the /Amazon Simple Queue Service Developer Guide/ .+rmReceiveRequestAttemptId :: Lens' ReceiveMessage (Maybe Text)+rmReceiveRequestAttemptId = lens _rmReceiveRequestAttemptId (\ s a -> s{_rmReceiveRequestAttemptId = a});++-- | The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a @ReceiveMessage@ request. rmVisibilityTimeout :: Lens' ReceiveMessage (Maybe Int) rmVisibilityTimeout = lens _rmVisibilityTimeout (\ s a -> s{_rmVisibilityTimeout = a}); --- | The name of the message attribute, where /N/ is the index. The message attribute name can contain the following characters: A-Z, a-z, 0-9, underscore (_), hyphen (-), and period (.). The name must not start or end with a period, and it should not have successive periods. The name is case sensitive and must be unique among all attribute names for the message. The name can be up to 256 characters long. The name cannot start with \"AWS.\" or \"Amazon.\" (or any variations in casing), because these prefixes are reserved for use by Amazon Web Services.------ When using 'ReceiveMessage', you can send a list of attribute names to receive, or you can return all of the attributes by specifying \"All\" or \".*\" in your request. You can also use \"bar.*\" to return all message attributes starting with the \"bar\" prefix.+-- | The name of the message attribute, where /N/ is the index. The message attribute name can contain the following characters: A-Z, a-z, 0-9, underscore (_), hyphen (-), and period (.). The name must not start or end with a period, and it should not have successive periods. The name is case sensitive and must be unique among all attribute names for the message. The name can be up to 256 characters long. The name can't start with "AWS." or "Amazon." (or any variations in casing), because these prefixes are reserved for use by Amazon Web Services. When using @ReceiveMessage@ , you can send a list of attribute names to receive, or you can return all of the attributes by specifying "All" or ".*" in your request. You can also use "bar.*" to return all message attributes starting with the "bar" prefix. rmMessageAttributeNames :: Lens' ReceiveMessage [Text] rmMessageAttributeNames = lens _rmMessageAttributeNames (\ s a -> s{_rmMessageAttributeNames = a}) . _Default . _Coerce; @@ -123,31 +136,15 @@ rmWaitTimeSeconds :: Lens' ReceiveMessage (Maybe Int) rmWaitTimeSeconds = lens _rmWaitTimeSeconds (\ s a -> s{_rmWaitTimeSeconds = a}); --- | A list of attributes that need to be returned along with each message. These attributes include:------ -   'All' - returns all values.------ -   'ApproximateFirstReceiveTimestamp' - returns the time when the message was first received from the queue (epoch time in milliseconds).------ -   'ApproximateReceiveCount' - returns the number of times a message has been received from the queue but not deleted.------ -   'SenderId' - returns the AWS account number (or the IP address, if anonymous access is allowed) of the sender.------ -   'SentTimestamp' - returns the time when the message was sent to the queue (epoch time in milliseconds).------ Any other valid special request parameters that are specified (such as 'ApproximateNumberOfMessages', 'ApproximateNumberOfMessagesDelayed', 'ApproximateNumberOfMessagesNotVisible', 'CreatedTimestamp', 'DelaySeconds', 'LastModifiedTimestamp', 'MaximumMessageSize', 'MessageRetentionPeriod', 'Policy', 'QueueArn', 'ReceiveMessageWaitTimeSeconds', 'RedrivePolicy', and 'VisibilityTimeout') will be ignored.+-- | A list of attributes that need to be returned along with each message. These attributes include:     * @All@ - Returns all values.     * @ApproximateFirstReceiveTimestamp@ - Returns the time the message was first received from the queue (epoch time in milliseconds).     * @ApproximateReceiveCount@ - Returns the number of times a message has been received from the queue but not deleted.     * @SenderId@      * For an IAM user, returns the IAM user ID, for example @ABCDEFGHI1JKLMNOPQ23R@ .     * For an IAM role, returns the IAM role ID, for example @ABCDE1F2GH3I4JK5LMNOP:i-a123b456@ .     * @SentTimestamp@ - Returns the time the message was sent to the queue (epoch time in milliseconds).     * @MessageDeduplicationId@ - Returns the value provided by the sender that calls the @'SendMessage' @ action.     * @MessageGroupId@ - Returns the value provided by the sender that calls the @'SendMessage' @ action. Messages with the same @MessageGroupId@ are returned in sequence.     * @SequenceNumber@ - Returns the value provided by Amazon SQS. Any other valid special request parameters (such as the following) that are specified are ignored:     * @ApproximateNumberOfMessages@      * @ApproximateNumberOfMessagesDelayed@      * @ApproximateNumberOfMessagesNotVisible@      * @CreatedTimestamp@      * @ContentBasedDeduplication@      * @DelaySeconds@      * @LastModifiedTimestamp@      * @MaximumMessageSize@      * @MessageRetentionPeriod@      * @Policy@      * @QueueArn@ ,      * @ReceiveMessageWaitTimeSeconds@      * @RedrivePolicy@      * @FifoQueue@      * @VisibilityTimeout@ rmAttributeNames :: Lens' ReceiveMessage [MessageAttribute] rmAttributeNames = lens _rmAttributeNames (\ s a -> s{_rmAttributeNames = a}) . _Default . _Coerce; --- | The maximum number of messages to return. Amazon SQS never returns more messages than this value but may return fewer. Values can be from 1 to 10. Default is 1.------ All of the messages are not necessarily returned.+-- | The maximum number of messages to return. Amazon SQS never returns more messages than this value but might return fewer. Values can be from 1 to 10. Default is 1. All of the messages are not necessarily returned. rmMaxNumberOfMessages :: Lens' ReceiveMessage (Maybe Int) rmMaxNumberOfMessages = lens _rmMaxNumberOfMessages (\ s a -> s{_rmMaxNumberOfMessages = a}); --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. rmQueueURL :: Lens' ReceiveMessage Text rmQueueURL = lens _rmQueueURL (\ s a -> s{_rmQueueURL = a}); @@ -176,6 +173,8 @@           = mconcat               ["Action" =: ("ReceiveMessage" :: ByteString),                "Version" =: ("2012-11-05" :: ByteString),+               "ReceiveRequestAttemptId" =:+                 _rmReceiveRequestAttemptId,                "VisibilityTimeout" =: _rmVisibilityTimeout,                toQuery                  (toQueryList "MessageAttributeName" <$>@@ -188,6 +187,8 @@  -- | A list of received messages. --+--+-- -- /See:/ 'receiveMessageResponse' smart constructor. data ReceiveMessageResponse = ReceiveMessageResponse'     { _rmrsMessages       :: !(Maybe [Message])@@ -198,9 +199,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rmrsMessages'+-- * 'rmrsMessages' - A list of messages. ----- * 'rmrsResponseStatus'+-- * 'rmrsResponseStatus' - -- | The response status code. receiveMessageResponse     :: Int -- ^ 'rmrsResponseStatus'     -> ReceiveMessageResponse@@ -214,7 +215,7 @@ rmrsMessages :: Lens' ReceiveMessageResponse [Message] rmrsMessages = lens _rmrsMessages (\ s a -> s{_rmrsMessages = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. rmrsResponseStatus :: Lens' ReceiveMessageResponse Int rmrsResponseStatus = lens _rmrsResponseStatus (\ s a -> s{_rmrsResponseStatus = a}); 
gen/Network/AWS/SQS/RemovePermission.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Revokes any permissions in the queue policy that matches the specified 'Label' parameter. Only the owner of the queue can remove permissions.+-- Revokes any permissions in the queue policy that matches the specified @Label@ parameter. Only the owner of the queue can remove permissions.+--+-- module Network.AWS.SQS.RemovePermission     (     -- * Creating a Request@@ -42,6 +44,8 @@  -- | --+--+-- -- /See:/ 'removePermission' smart constructor. data RemovePermission = RemovePermission'     { _rpQueueURL :: !Text@@ -52,9 +56,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rpQueueURL'+-- * 'rpQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. ----- * 'rpLabel'+-- * 'rpLabel' - The identification of the permission to remove. This is the label added with the 'AddPermission' action. removePermission     :: Text -- ^ 'rpQueueURL'     -> Text -- ^ 'rpLabel'@@ -65,13 +69,11 @@     , _rpLabel = pLabel_     } --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. rpQueueURL :: Lens' RemovePermission Text rpQueueURL = lens _rpQueueURL (\ s a -> s{_rpQueueURL = a}); --- | The identification of the permission to remove. This is the label added with the < AddPermission> action.+-- | The identification of the permission to remove. This is the label added with the 'AddPermission' action. rpLabel :: Lens' RemovePermission Text rpLabel = lens _rpLabel (\ s a -> s{_rpLabel = a}); 
gen/Network/AWS/SQS/SendMessage.hs view
@@ -18,11 +18,15 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Delivers a message to the specified queue. With Amazon SQS, you now have the ability to send large payload messages that are up to 256KB (262,144 bytes) in size. To send large payloads, you must use an AWS SDK that supports SigV4 signing. To verify whether SigV4 is supported for an AWS SDK, check the SDK release notes.+-- Delivers a message to the specified queue. ----- The following list shows the characters (in Unicode) allowed in your message, according to the W3C XML specification. For more information, go to <http://www.w3.org/TR/REC-xml/#charsets> If you send any characters not included in the list, your request will be rejected. ----- #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]+-- /Important:/ The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification:+--+-- @#x9@ | @#xA@ | @#xD@ | [@#x20@ to @#xD7FF@ ] | [@#xE000@ to @#xFFFD@ ] | [@#x10000@ to @#x10FFFF@ ]+--+-- For more information, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . If you send any characters that aren't included in this list, your request will be rejected.+-- module Network.AWS.SQS.SendMessage     (     -- * Creating a Request@@ -31,6 +35,8 @@     -- * Request Lenses     , smMessageAttributes     , smDelaySeconds+    , smMessageDeduplicationId+    , smMessageGroupId     , smQueueURL     , smMessageBody @@ -38,6 +44,7 @@     , sendMessageResponse     , SendMessageResponse     -- * Response Lenses+    , smrsSequenceNumber     , smrsMessageId     , smrsMD5OfMessageBody     , smrsMD5OfMessageAttributes@@ -53,25 +60,33 @@  -- | --+--+-- -- /See:/ 'sendMessage' smart constructor. data SendMessage = SendMessage'-    { _smMessageAttributes :: !(Maybe (Map Text MessageAttributeValue))-    , _smDelaySeconds      :: !(Maybe Int)-    , _smQueueURL          :: !Text-    , _smMessageBody       :: !Text+    { _smMessageAttributes      :: !(Maybe (Map Text MessageAttributeValue))+    , _smDelaySeconds           :: !(Maybe Int)+    , _smMessageDeduplicationId :: !(Maybe Text)+    , _smMessageGroupId         :: !(Maybe Text)+    , _smQueueURL               :: !Text+    , _smMessageBody            :: !Text     } deriving (Eq,Read,Show,Data,Typeable,Generic)  -- | Creates a value of 'SendMessage' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'smMessageAttributes'+-- * 'smMessageAttributes' - Each message attribute consists of a Name, Type, and Value. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV Message Attribute Items> in the /Amazon SQS Developer Guide/ . ----- * 'smDelaySeconds'+-- * 'smDelaySeconds' - The number of seconds (0 to 900 - 15 minutes) to delay a specific message. Messages with a positive @DelaySeconds@ value become available for processing after the delay time is finished. If you don't specify a value, the default value for the queue applies. ----- * 'smQueueURL'+-- * 'smMessageDeduplicationId' - This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of sent messages. If a message with a particular @MessageDeduplicationId@ is sent successfully, any messages sent with the same @MessageDeduplicationId@ are accepted successfully but aren't delivered during the 5-minute deduplication interval. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ .     * Every message must have a unique @MessageDeduplicationId@ ,     * You may provide a @MessageDeduplicationId@ explicitly.     * If you aren't able to provide a @MessageDeduplicationId@ and you enable @ContentBasedDeduplication@ for your queue, Amazon SQS uses a SHA-256 hash to generate the @MessageDeduplicationId@ using the body of the message (but not the attributes of the message).      * If you don't provide a @MessageDeduplicationId@ and the queue doesn't have @ContentBasedDeduplication@ set, the action fails with an error.     * If the queue has @ContentBasedDeduplication@ set, your @MessageDeduplicationId@ overrides the generated one.     * When @ContentBasedDeduplication@ is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.     * You can also use @ContentBasedDeduplication@ for messages with identical content to be treated as duplicates.     * If you send one message with @ContentBasedDeduplication@ enabled and then another message with a @MessageDeduplicationId@ that is the same as the one generated for the first @MessageDeduplicationId@ , the two messages are treated as duplicates and only one copy of the message is delivered.  The length of @MessageDeduplicationId@ is 128 characters. @MessageDeduplicationId@ can contain alphanumeric characters (@a-z@ , @A-Z@ , @0-9@ ) and punctuation (@!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~@ ). For best practices of using @MessageDeduplicationId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagededuplicationid-property Using the MessageDeduplicationId Property> in the /Amazon Simple Queue Service Developer Guide/ . ----- * 'smMessageBody'+-- * 'smMessageGroupId' - This parameter applies only to FIFO (first-in-first-out) queues. The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use @MessageGroupId@ values (for example, session data for multiple users). In this scenario, multiple readers can process the queue, but the session data of each user is processed in a FIFO fashion.     * You must associate a non-empty @MessageGroupId@ with a message. If you don't provide a @MessageGroupId@ , the action fails.     * @ReceiveMessage@ might return messages with multiple @MessageGroupId@ values. For each @MessageGroupId@ , the messages are sorted by time sent. The caller can't specify a @MessageGroupId@ . The length of @MessageGroupId@ is 128 characters. Valid values are alphanumeric characters and punctuation @(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)@ . For best practices of using @MessageGroupId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagegroupid-property Using the MessageGroupId Property> in the /Amazon Simple Queue Service Developer Guide/ .+--+-- * 'smQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive.+--+-- * 'smMessageBody' - The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding note. sendMessage     :: Text -- ^ 'smQueueURL'     -> Text -- ^ 'smMessageBody'@@ -80,25 +95,33 @@     SendMessage'     { _smMessageAttributes = Nothing     , _smDelaySeconds = Nothing+    , _smMessageDeduplicationId = Nothing+    , _smMessageGroupId = Nothing     , _smQueueURL = pQueueURL_     , _smMessageBody = pMessageBody_     } --- | Each message attribute consists of a Name, Type, and Value. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV Message Attribute Items>.+-- | Each message attribute consists of a Name, Type, and Value. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV Message Attribute Items> in the /Amazon SQS Developer Guide/ . smMessageAttributes :: Lens' SendMessage (HashMap Text MessageAttributeValue) smMessageAttributes = lens _smMessageAttributes (\ s a -> s{_smMessageAttributes = a}) . _Default . _Map; --- | The number of seconds (0 to 900 - 15 minutes) to delay a specific message. Messages with a positive 'DelaySeconds' value become available for processing after the delay time is finished. If you don\'t specify a value, the default value for the queue applies.+-- | The number of seconds (0 to 900 - 15 minutes) to delay a specific message. Messages with a positive @DelaySeconds@ value become available for processing after the delay time is finished. If you don't specify a value, the default value for the queue applies. smDelaySeconds :: Lens' SendMessage (Maybe Int) smDelaySeconds = lens _smDelaySeconds (\ s a -> s{_smDelaySeconds = a}); --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of sent messages. If a message with a particular @MessageDeduplicationId@ is sent successfully, any messages sent with the same @MessageDeduplicationId@ are accepted successfully but aren't delivered during the 5-minute deduplication interval. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ .     * Every message must have a unique @MessageDeduplicationId@ ,     * You may provide a @MessageDeduplicationId@ explicitly.     * If you aren't able to provide a @MessageDeduplicationId@ and you enable @ContentBasedDeduplication@ for your queue, Amazon SQS uses a SHA-256 hash to generate the @MessageDeduplicationId@ using the body of the message (but not the attributes of the message).      * If you don't provide a @MessageDeduplicationId@ and the queue doesn't have @ContentBasedDeduplication@ set, the action fails with an error.     * If the queue has @ContentBasedDeduplication@ set, your @MessageDeduplicationId@ overrides the generated one.     * When @ContentBasedDeduplication@ is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.     * You can also use @ContentBasedDeduplication@ for messages with identical content to be treated as duplicates.     * If you send one message with @ContentBasedDeduplication@ enabled and then another message with a @MessageDeduplicationId@ that is the same as the one generated for the first @MessageDeduplicationId@ , the two messages are treated as duplicates and only one copy of the message is delivered.  The length of @MessageDeduplicationId@ is 128 characters. @MessageDeduplicationId@ can contain alphanumeric characters (@a-z@ , @A-Z@ , @0-9@ ) and punctuation (@!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~@ ). For best practices of using @MessageDeduplicationId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagededuplicationid-property Using the MessageDeduplicationId Property> in the /Amazon Simple Queue Service Developer Guide/ .+smMessageDeduplicationId :: Lens' SendMessage (Maybe Text)+smMessageDeduplicationId = lens _smMessageDeduplicationId (\ s a -> s{_smMessageDeduplicationId = a});++-- | This parameter applies only to FIFO (first-in-first-out) queues. The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use @MessageGroupId@ values (for example, session data for multiple users). In this scenario, multiple readers can process the queue, but the session data of each user is processed in a FIFO fashion.     * You must associate a non-empty @MessageGroupId@ with a message. If you don't provide a @MessageGroupId@ , the action fails.     * @ReceiveMessage@ might return messages with multiple @MessageGroupId@ values. For each @MessageGroupId@ , the messages are sorted by time sent. The caller can't specify a @MessageGroupId@ . The length of @MessageGroupId@ is 128 characters. Valid values are alphanumeric characters and punctuation @(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)@ . For best practices of using @MessageGroupId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagegroupid-property Using the MessageGroupId Property> in the /Amazon Simple Queue Service Developer Guide/ .+smMessageGroupId :: Lens' SendMessage (Maybe Text)+smMessageGroupId = lens _smMessageGroupId (\ s a -> s{_smMessageGroupId = a});++-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. smQueueURL :: Lens' SendMessage Text smQueueURL = lens _smQueueURL (\ s a -> s{_smQueueURL = a}); --- | The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.+-- | The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding note. smMessageBody :: Lens' SendMessage Text smMessageBody = lens _smMessageBody (\ s a -> s{_smMessageBody = a}); @@ -109,7 +132,8 @@           = receiveXMLWrapper "SendMessageResult"               (\ s h x ->                  SendMessageResponse' <$>-                   (x .@? "MessageId") <*> (x .@? "MD5OfMessageBody")+                   (x .@? "SequenceNumber") <*> (x .@? "MessageId") <*>+                     (x .@? "MD5OfMessageBody")                      <*> (x .@? "MD5OfMessageAttributes")                      <*> (pure (fromEnum s))) @@ -132,14 +156,20 @@                  (toQueryMap "MessageAttribute" "Name" "Value" <$>                     _smMessageAttributes),                "DelaySeconds" =: _smDelaySeconds,+               "MessageDeduplicationId" =:+                 _smMessageDeduplicationId,+               "MessageGroupId" =: _smMessageGroupId,                "QueueUrl" =: _smQueueURL,                "MessageBody" =: _smMessageBody]  -- | The MD5OfMessageBody and MessageId elements. --+--+-- -- /See:/ 'sendMessageResponse' smart constructor. data SendMessageResponse = SendMessageResponse'-    { _smrsMessageId              :: !(Maybe Text)+    { _smrsSequenceNumber         :: !(Maybe Text)+    , _smrsMessageId              :: !(Maybe Text)     , _smrsMD5OfMessageBody       :: !(Maybe Text)     , _smrsMD5OfMessageAttributes :: !(Maybe Text)     , _smrsResponseStatus         :: !Int@@ -149,37 +179,44 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'smrsMessageId'+-- * 'smrsSequenceNumber' - /This element applies only to FIFO (first-in-first-out) queues./  A large, non-consecutive number that Amazon SQS assigns to each message. The length of @SequenceNumber@ is 128 bits. @SequenceNumber@ continues to increase for a particular @MessageGroupId@ . ----- * 'smrsMD5OfMessageBody'+-- * 'smrsMessageId' - An element containing the message ID of the message sent to the queue. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html Queue and Message Identifiers> in the /Amazon SQS Developer Guide/ . ----- * 'smrsMD5OfMessageAttributes'+-- * 'smrsMD5OfMessageBody' - An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . ----- * 'smrsResponseStatus'+-- * 'smrsMD5OfMessageAttributes' - An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> .+--+-- * 'smrsResponseStatus' - -- | The response status code. sendMessageResponse     :: Int -- ^ 'smrsResponseStatus'     -> SendMessageResponse sendMessageResponse pResponseStatus_ =     SendMessageResponse'-    { _smrsMessageId = Nothing+    { _smrsSequenceNumber = Nothing+    , _smrsMessageId = Nothing     , _smrsMD5OfMessageBody = Nothing     , _smrsMD5OfMessageAttributes = Nothing     , _smrsResponseStatus = pResponseStatus_     } --- | An element containing the message ID of the message sent to the queue. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html Queue and Message Identifiers> in the /Amazon SQS Developer Guide/.+-- | /This element applies only to FIFO (first-in-first-out) queues./  A large, non-consecutive number that Amazon SQS assigns to each message. The length of @SequenceNumber@ is 128 bits. @SequenceNumber@ continues to increase for a particular @MessageGroupId@ .+smrsSequenceNumber :: Lens' SendMessageResponse (Maybe Text)+smrsSequenceNumber = lens _smrsSequenceNumber (\ s a -> s{_smrsSequenceNumber = a});++-- | An element containing the message ID of the message sent to the queue. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html Queue and Message Identifiers> in the /Amazon SQS Developer Guide/ . smrsMessageId :: Lens' SendMessageResponse (Maybe Text) smrsMessageId = lens _smrsMessageId (\ s a -> s{_smrsMessageId = a}); --- | An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to <http://www.faqs.org/rfcs/rfc1321.html>.+-- | An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . smrsMD5OfMessageBody :: Lens' SendMessageResponse (Maybe Text) smrsMD5OfMessageBody = lens _smrsMD5OfMessageBody (\ s a -> s{_smrsMD5OfMessageBody = a}); --- | An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to <http://www.faqs.org/rfcs/rfc1321.html>.+-- | An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . smrsMD5OfMessageAttributes :: Lens' SendMessageResponse (Maybe Text) smrsMD5OfMessageAttributes = lens _smrsMD5OfMessageAttributes (\ s a -> s{_smrsMD5OfMessageAttributes = a}); --- | The response status code.+-- | -- | The response status code. smrsResponseStatus :: Lens' SendMessageResponse Int smrsResponseStatus = lens _smrsResponseStatus (\ s a -> s{_smrsResponseStatus = a}); 
gen/Network/AWS/SQS/SendMessageBatch.hs view
@@ -18,23 +18,25 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Delivers up to ten messages to the specified queue. This is a batch version of < SendMessage>. The result of the send action on each message is reported individually in the response. The maximum allowed individual message size is 256 KB (262,144 bytes).+-- 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 maximum total payload size (i.e., the sum of all a batch\'s individual message lengths) is also 256 KB (262,144 bytes). ----- If the 'DelaySeconds' parameter is not specified for an entry, the default for the queue is used.+-- 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 following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification. For more information, go to <http://www.faqs.org/rfcs/rfc1321.html>. If you send any characters that are not included in the list, your request will be rejected.+-- 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). ----- #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]+-- /Important:/ The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification: ----- 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.+-- @#x9@ | @#xA@ | @#xD@ | [@#x20@ to @#xD7FF@ ] | [@#xE000@ to @#xFFFD@ ] | [@#x10000@ to @#x10FFFF@ ] ----- Some API 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:+-- For more information, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . If you send any characters that aren't included in this list, your request will be rejected. ----- '&amp;Attribute.1=this'+-- If you don't specify the @DelaySeconds@ parameter for an entry, Amazon SQS uses the default for the queue. ----- '&amp;Attribute.2=that'+-- @&amp;Attribute.1=this@+--+-- @&amp;Attribute.2=that@+-- module Network.AWS.SQS.SendMessageBatch     (     -- * Creating a Request@@ -62,6 +64,8 @@  -- | --+--+-- -- /See:/ 'sendMessageBatch' smart constructor. data SendMessageBatch = SendMessageBatch'     { _smbQueueURL :: !Text@@ -72,9 +76,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'smbQueueURL'+-- * 'smbQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. ----- * 'smbEntries'+-- * 'smbEntries' - A list of 'SendMessageBatchRequestEntry' items. sendMessageBatch     :: Text -- ^ 'smbQueueURL'     -> SendMessageBatch@@ -84,13 +88,11 @@     , _smbEntries = mempty     } --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. smbQueueURL :: Lens' SendMessageBatch Text smbQueueURL = lens _smbQueueURL (\ s a -> s{_smbQueueURL = a}); --- | A list of < SendMessageBatchRequestEntry> items.+-- | A list of 'SendMessageBatchRequestEntry' items. smbEntries :: Lens' SendMessageBatch [SendMessageBatchRequestEntry] smbEntries = lens _smbEntries (\ s a -> s{_smbEntries = a}) . _Coerce; @@ -124,8 +126,10 @@                toQueryList "SendMessageBatchRequestEntry"                  _smbEntries] --- | For each message in the batch, the response contains a < SendMessageBatchResultEntry> tag if the message succeeds or a < BatchResultErrorEntry> tag if the message fails.+-- | 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. data SendMessageBatchResponse = SendMessageBatchResponse'     { _smbrsResponseStatus :: !Int@@ -137,11 +141,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'smbrsResponseStatus'+-- * 'smbrsResponseStatus' - -- | The response status code. ----- * 'smbrsSuccessful'+-- * 'smbrsSuccessful' - A list of 'SendMessageBatchResultEntry' items. ----- * 'smbrsFailed'+-- * 'smbrsFailed' - A list of 'BatchResultErrorEntry' items with the error detail about each message that could not be enqueued. sendMessageBatchResponse     :: Int -- ^ 'smbrsResponseStatus'     -> SendMessageBatchResponse@@ -152,15 +156,15 @@     , _smbrsFailed = mempty     } --- | The response status code.+-- | -- | The response status code. smbrsResponseStatus :: Lens' SendMessageBatchResponse Int smbrsResponseStatus = lens _smbrsResponseStatus (\ s a -> s{_smbrsResponseStatus = a}); --- | A list of < SendMessageBatchResultEntry> items.+-- | A list of 'SendMessageBatchResultEntry' items. smbrsSuccessful :: Lens' SendMessageBatchResponse [SendMessageBatchResultEntry] smbrsSuccessful = lens _smbrsSuccessful (\ s a -> s{_smbrsSuccessful = a}) . _Coerce; --- | A list of < BatchResultErrorEntry> items with the error detail about each message that could not be enqueued.+-- | A list of 'BatchResultErrorEntry' items with the error detail about each message that could not be enqueued. smbrsFailed :: Lens' SendMessageBatchResponse [BatchResultErrorEntry] smbrsFailed = lens _smbrsFailed (\ s a -> s{_smbrsFailed = a}) . _Coerce; 
gen/Network/AWS/SQS/SetQueueAttributes.hs view
@@ -18,9 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Sets the value of one or more queue attributes. When you change a queue\'s attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the SQS system. Changes made to the 'MessageRetentionPeriod' attribute can take up to 15 minutes.+-- Sets the value of one or more queue attributes. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the SQS system. Changes made to the @MessageRetentionPeriod@ attribute can take up to 15 minutes. ----- Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.+-- module Network.AWS.SQS.SetQueueAttributes     (     -- * Creating a Request@@ -44,6 +44,8 @@  -- | --+--+-- -- /See:/ 'setQueueAttributes' smart constructor. data SetQueueAttributes = SetQueueAttributes'     { _sqaQueueURL   :: !Text@@ -54,9 +56,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'sqaQueueURL'+-- * 'sqaQueueURL' - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. ----- * 'sqaAttributes'+-- * 'sqaAttributes' - A map of attributes to set. The following lists the names, descriptions, and values of the special request parameters that the @SetQueueAttributes@ action uses:     * @DelaySeconds@ - The number of seconds for which the delivery of all messages in the queue is delayed. An integer from 0 to 900 (15 minutes). The default is 0 (zero).      * @MaximumMessageSize@ - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB).      * @MessageRetentionPeriod@ - The number of seconds for which Amazon SQS retains a message. An integer representing seconds, from 60 (1 minute) to 120,9600 (14 days). The default is 345,600 (4 days).      * @Policy@ - The queue's policy. A valid AWS policy. For more information about policy structure, see <http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html Overview of AWS IAM Policies> in the /Amazon IAM User Guide/ .      * @ReceiveMessageWaitTimeSeconds@ - The number of seconds for which a 'ReceiveMessage' action will wait for a message to arrive. An integer from 0 to 20 (seconds). The default is 0.      * @RedrivePolicy@ - The parameters for the dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> in the /Amazon SQS Developer Guide/ .      * @VisibilityTimeout@ - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default is 30. For more information about the visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/ . The following attribute applies only to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html FIFO (first-in-first-out) queues> :     * @ContentBasedDeduplication@ - Enables content-based deduplication. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ .      * Every message must have a unique @MessageDeduplicationId@ ,     * You may provide a @MessageDeduplicationId@ explicitly.     * If you aren't able to provide a @MessageDeduplicationId@ and you enable @ContentBasedDeduplication@ for your queue, Amazon SQS uses a SHA-256 hash to generate the @MessageDeduplicationId@ using the body of the message (but not the attributes of the message).      * If you don't provide a @MessageDeduplicationId@ and the queue doesn't have @ContentBasedDeduplication@ set, the action fails with an error.     * If the queue has @ContentBasedDeduplication@ set, your @MessageDeduplicationId@ overrides the generated one.     * When @ContentBasedDeduplication@ is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.     * You can also use @ContentBasedDeduplication@ for messages with identical content to be treated as duplicates.     * If you send one message with @ContentBasedDeduplication@ enabled and then another message with a @MessageDeduplicationId@ that is the same as the one generated for the first @MessageDeduplicationId@ , the two messages are treated as duplicates and only one copy of the message is delivered.  Any other valid special request parameters that are specified (such as @ApproximateNumberOfMessages@ , @ApproximateNumberOfMessagesDelayed@ , @ApproximateNumberOfMessagesNotVisible@ , @CreatedTimestamp@ , @LastModifiedTimestamp@ , and @QueueArn@ ) will be ignored. setQueueAttributes     :: Text -- ^ 'sqaQueueURL'     -> SetQueueAttributes@@ -66,31 +68,11 @@     , _sqaAttributes = mempty     } --- | The URL of the Amazon SQS queue to take action on.------ Queue URLs are case-sensitive.+-- | The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive. sqaQueueURL :: Lens' SetQueueAttributes Text sqaQueueURL = lens _sqaQueueURL (\ s a -> s{_sqaQueueURL = a}); --- | A map of attributes to set.------ The following lists the names, descriptions, and values of the special request parameters the 'SetQueueAttributes' action uses:------ -   'DelaySeconds' - The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 (zero).------ -   'MaximumMessageSize' - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).------ -   'MessageRetentionPeriod' - The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).------ -   'Policy' - The queue\'s policy. A valid AWS policy. For more information about policy structure, see <http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html Overview of AWS IAM Policies> in the /Amazon IAM User Guide/.------ -   'ReceiveMessageWaitTimeSeconds' - The time for which a ReceiveMessage call will wait for a message to arrive. An integer from 0 to 20 (seconds). The default for this attribute is 0.------ -   'VisibilityTimeout' - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see Visibility Timeout in the /Amazon SQS Developer Guide/.------ -   'RedrivePolicy' - The parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the /Amazon SQS Developer Guide/.------ Any other valid special request parameters that are specified (such as 'ApproximateNumberOfMessages', 'ApproximateNumberOfMessagesDelayed', 'ApproximateNumberOfMessagesNotVisible', 'CreatedTimestamp', 'LastModifiedTimestamp', and 'QueueArn') will be ignored.+-- | A map of attributes to set. The following lists the names, descriptions, and values of the special request parameters that the @SetQueueAttributes@ action uses:     * @DelaySeconds@ - The number of seconds for which the delivery of all messages in the queue is delayed. An integer from 0 to 900 (15 minutes). The default is 0 (zero).      * @MaximumMessageSize@ - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB).      * @MessageRetentionPeriod@ - The number of seconds for which Amazon SQS retains a message. An integer representing seconds, from 60 (1 minute) to 120,9600 (14 days). The default is 345,600 (4 days).      * @Policy@ - The queue's policy. A valid AWS policy. For more information about policy structure, see <http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html Overview of AWS IAM Policies> in the /Amazon IAM User Guide/ .      * @ReceiveMessageWaitTimeSeconds@ - The number of seconds for which a 'ReceiveMessage' action will wait for a message to arrive. An integer from 0 to 20 (seconds). The default is 0.      * @RedrivePolicy@ - The parameters for the dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html Using Amazon SQS Dead Letter Queues> in the /Amazon SQS Developer Guide/ .      * @VisibilityTimeout@ - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default is 30. For more information about the visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html Visibility Timeout> in the /Amazon SQS Developer Guide/ . The following attribute applies only to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html FIFO (first-in-first-out) queues> :     * @ContentBasedDeduplication@ - Enables content-based deduplication. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ .      * Every message must have a unique @MessageDeduplicationId@ ,     * You may provide a @MessageDeduplicationId@ explicitly.     * If you aren't able to provide a @MessageDeduplicationId@ and you enable @ContentBasedDeduplication@ for your queue, Amazon SQS uses a SHA-256 hash to generate the @MessageDeduplicationId@ using the body of the message (but not the attributes of the message).      * If you don't provide a @MessageDeduplicationId@ and the queue doesn't have @ContentBasedDeduplication@ set, the action fails with an error.     * If the queue has @ContentBasedDeduplication@ set, your @MessageDeduplicationId@ overrides the generated one.     * When @ContentBasedDeduplication@ is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.     * You can also use @ContentBasedDeduplication@ for messages with identical content to be treated as duplicates.     * If you send one message with @ContentBasedDeduplication@ enabled and then another message with a @MessageDeduplicationId@ that is the same as the one generated for the first @MessageDeduplicationId@ , the two messages are treated as duplicates and only one copy of the message is delivered.  Any other valid special request parameters that are specified (such as @ApproximateNumberOfMessages@ , @ApproximateNumberOfMessagesDelayed@ , @ApproximateNumberOfMessagesNotVisible@ , @CreatedTimestamp@ , @LastModifiedTimestamp@ , and @QueueArn@ ) will be ignored. sqaAttributes :: Lens' SetQueueAttributes (HashMap QueueAttributeName Text) sqaAttributes = lens _sqaAttributes (\ s a -> s{_sqaAttributes = a}) . _Map; 
gen/Network/AWS/SQS/Types.hs view
@@ -95,12 +95,15 @@     , sendMessageBatchRequestEntry     , sMessageAttributes     , sDelaySeconds+    , sMessageDeduplicationId+    , sMessageGroupId     , sId     , sMessageBody      -- * SendMessageBatchResultEntry     , SendMessageBatchResultEntry     , sendMessageBatchResultEntry+    , smbreSequenceNumber     , smbreMD5OfMessageAttributes     , smbreId     , smbreMessageId@@ -113,7 +116,7 @@ import           Network.AWS.SQS.Types.Product import           Network.AWS.SQS.Types.Sum --- | API version '2012-11-05' of the Amazon Simple Queue Service SDK configuration.+-- | API version @2012-11-05@ of the Amazon Simple Queue Service SDK configuration. sqs :: Service sqs =     Service@@ -149,13 +152,17 @@       | has (hasStatus 509) e = Just "limit_exceeded"       | otherwise = Nothing --- | The 'Id' of a batch entry in a batch request does not abide by the specification.+-- | The @Id@ of a batch entry in a batch request doesn't abide by the specification.+--+-- _InvalidBatchEntryId :: AsError a => Getting (First ServiceError) a ServiceError _InvalidBatchEntryId =     _ServiceError .     hasStatus 400 . hasCode "AWS.SimpleQueueService.InvalidBatchEntryId"  -- | Batch request contains more number of entries than permissible.+--+-- _TooManyEntriesInBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError _TooManyEntriesInBatchRequest =     _ServiceError .@@ -163,72 +170,100 @@     hasCode "AWS.SimpleQueueService.TooManyEntriesInBatchRequest"  -- | You must wait 60 seconds after deleting a queue before you can create another with the same name.+--+-- _QueueDeletedRecently :: AsError a => Getting (First ServiceError) a ServiceError _QueueDeletedRecently =     _ServiceError .     hasStatus 400 . hasCode "AWS.SimpleQueueService.QueueDeletedRecently" --- | The queue referred to does not exist.+-- | The queue referred to doesn't exist.+--+-- _QueueDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError _QueueDoesNotExist =     _ServiceError .     hasStatus 400 . hasCode "AWS.SimpleQueueService.NonExistentQueue" --- | The attribute referred to does not exist.+-- | The attribute referred to doesn't exist.+--+-- _InvalidAttributeName :: AsError a => Getting (First ServiceError) a ServiceError _InvalidAttributeName = _ServiceError . hasCode "InvalidAttributeName"  -- | Error code 400. Unsupported operation.+--+-- _UnsupportedOperation :: AsError a => Getting (First ServiceError) a ServiceError _UnsupportedOperation =     _ServiceError .     hasStatus 400 . hasCode "AWS.SimpleQueueService.UnsupportedOperation"  -- | The message contains characters outside the allowed set.+--+-- _InvalidMessageContents :: AsError a => Getting (First ServiceError) a ServiceError _InvalidMessageContents = _ServiceError . hasCode "InvalidMessageContents"  -- | The length of all the messages put together is more than the limit.+--+-- _BatchRequestTooLong :: AsError a => Getting (First ServiceError) a ServiceError _BatchRequestTooLong =     _ServiceError .     hasStatus 400 . hasCode "AWS.SimpleQueueService.BatchRequestTooLong" --- | The action that you requested would violate a limit. For example, ReceiveMessage returns this error if the maximum number of messages inflight has already been reached. < AddPermission> returns this error if the maximum number of permissions for the queue has already been reached.+-- | The action that you requested would violate a limit. For example, ReceiveMessage returns this error if the maximum number of messages inflight has already been reached. 'AddPermission' returns this error if the maximum number of permissions for the queue has already been reached.+--+-- _OverLimit :: AsError a => Getting (First ServiceError) a ServiceError _OverLimit = _ServiceError . hasStatus 403 . hasCode "OverLimit"  -- | A queue already exists with this name. Amazon SQS returns this error only if the request includes attributes whose values differ from those of the existing queue.+--+-- _QueueNameExists :: AsError a => Getting (First ServiceError) a ServiceError _QueueNameExists = _ServiceError . hasStatus 400 . hasCode "QueueAlreadyExists" --- | Indicates that the specified queue previously received a 'PurgeQueue' request within the last 60 seconds, the time it can take to delete the messages in the queue.+-- | Indicates that the specified queue previously received a @PurgeQueue@ request within the last 60 seconds, the time it can take to delete the messages in the queue.+--+-- _PurgeQueueInProgress :: AsError a => Getting (First ServiceError) a ServiceError _PurgeQueueInProgress =     _ServiceError .     hasStatus 403 . hasCode "AWS.SimpleQueueService.PurgeQueueInProgress"  -- | The receipt handle is not valid for the current version.+--+-- _InvalidIdFormat :: AsError a => Getting (First ServiceError) a ServiceError _InvalidIdFormat = _ServiceError . hasCode "InvalidIdFormat"  -- | The receipt handle provided is not valid.+--+-- _ReceiptHandleIsInvalid :: AsError a => Getting (First ServiceError) a ServiceError _ReceiptHandleIsInvalid = _ServiceError . hasCode "ReceiptHandleIsInvalid" --- | Batch request does not contain an entry.+-- | Batch request doesn't contain an entry.+--+-- _EmptyBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError _EmptyBatchRequest =     _ServiceError .     hasStatus 400 . hasCode "AWS.SimpleQueueService.EmptyBatchRequest" --- | Two or more batch entries have the same 'Id' in the request.+-- | Two or more batch entries have the same @Id@ in the request.+--+-- _BatchEntryIdsNotDistinct :: AsError a => Getting (First ServiceError) a ServiceError _BatchEntryIdsNotDistinct =     _ServiceError .     hasStatus 400 . hasCode "AWS.SimpleQueueService.BatchEntryIdsNotDistinct"  -- | The message referred to is not in flight.+--+-- _MessageNotInflight :: AsError a => Getting (First ServiceError) a ServiceError _MessageNotInflight =     _ServiceError .
gen/Network/AWS/SQS/Types/Product.hs view
@@ -23,6 +23,8 @@  -- | This is used in the responses of batch API to give a detailed description of the result of an action on each entry in the request. --+--+-- -- /See:/ 'batchResultErrorEntry' smart constructor. data BatchResultErrorEntry = BatchResultErrorEntry'     { _breeMessage     :: !(Maybe Text)@@ -35,13 +37,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'breeMessage'+-- * 'breeMessage' - A message explaining why the action failed on this entry. ----- * 'breeId'+-- * 'breeId' - The id of an entry in a batch request. ----- * 'breeSenderFault'+-- * 'breeSenderFault' - Whether the error happened due to the sender's fault. ----- * 'breeCode'+-- * 'breeCode' - An error code representing why the action failed on this entry. batchResultErrorEntry     :: Text -- ^ 'breeId'     -> Bool -- ^ 'breeSenderFault'@@ -63,7 +65,7 @@ breeId :: Lens' BatchResultErrorEntry Text breeId = lens _breeId (\ s a -> s{_breeId = a}); --- | Whether the error happened due to the sender\'s fault.+-- | Whether the error happened due to the sender's fault. breeSenderFault :: Lens' BatchResultErrorEntry Bool breeSenderFault = lens _breeSenderFault (\ s a -> s{_breeSenderFault = a}); @@ -82,16 +84,18 @@  instance NFData BatchResultErrorEntry --- | Encloses a receipt handle and an entry id for each message in < ChangeMessageVisibilityBatch>.+-- | Encloses a receipt handle and an entry id for each message in 'ChangeMessageVisibilityBatch' . ----- All of the following parameters are list parameters that must be prefixed with 'ChangeMessageVisibilityBatchRequestEntry.n', where 'n' is an integer value starting with 1. For example, a parameter list for this action might look like this: ----- '&amp;ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2'+-- /Important:/ All of the following parameters are list parameters that must be prefixed with @ChangeMessageVisibilityBatchRequestEntry.n@ , where @n@ is an integer value starting with 1. For example, a parameter list for this action might look like this: ----- '&amp;ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=\<replaceable>Your_Receipt_Handle\<\/replaceable>'+-- @&amp;ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2@ ----- '&amp;ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45'+-- @&amp;ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=<replaceable>Your_Receipt_Handle</replaceable>@ --+-- @&amp;ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45@+--+-- -- /See:/ 'changeMessageVisibilityBatchRequestEntry' smart constructor. data ChangeMessageVisibilityBatchRequestEntry = ChangeMessageVisibilityBatchRequestEntry'     { _cVisibilityTimeout :: !(Maybe Int)@@ -103,11 +107,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cVisibilityTimeout'+-- * 'cVisibilityTimeout' - The new value (in seconds) for the message's visibility timeout. ----- * 'cId'+-- * 'cId' - An identifier for this particular receipt handle. This is used to communicate the result. Note that the @Id@ s of a batch request need to be unique within the request. ----- * 'cReceiptHandle'+-- * 'cReceiptHandle' - A receipt handle. changeMessageVisibilityBatchRequestEntry     :: Text -- ^ 'cId'     -> Text -- ^ 'cReceiptHandle'@@ -119,11 +123,11 @@     , _cReceiptHandle = pReceiptHandle_     } --- | The new value (in seconds) for the message\'s visibility timeout.+-- | The new value (in seconds) for the message's visibility timeout. cVisibilityTimeout :: Lens' ChangeMessageVisibilityBatchRequestEntry (Maybe Int) cVisibilityTimeout = lens _cVisibilityTimeout (\ s a -> s{_cVisibilityTimeout = a}); --- | An identifier for this particular receipt handle. This is used to communicate the result. Note that the 'Id's of a batch request need to be unique within the request.+-- | An identifier for this particular receipt handle. This is used to communicate the result. Note that the @Id@ s of a batch request need to be unique within the request. cId :: Lens' ChangeMessageVisibilityBatchRequestEntry Text cId = lens _cId (\ s a -> s{_cId = a}); @@ -144,8 +148,10 @@               ["VisibilityTimeout" =: _cVisibilityTimeout,                "Id" =: _cId, "ReceiptHandle" =: _cReceiptHandle] --- | Encloses the id of an entry in < ChangeMessageVisibilityBatch>.+-- | Encloses the id of an entry in 'ChangeMessageVisibilityBatch' . --+--+-- -- /See:/ 'changeMessageVisibilityBatchResultEntry' smart constructor. newtype ChangeMessageVisibilityBatchResultEntry = ChangeMessageVisibilityBatchResultEntry'     { _cmvbreId :: Text@@ -155,7 +161,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cmvbreId'+-- * 'cmvbreId' - Represents a message whose visibility timeout has been changed successfully. changeMessageVisibilityBatchResultEntry     :: Text -- ^ 'cmvbreId'     -> ChangeMessageVisibilityBatchResultEntry@@ -182,6 +188,8 @@  -- | Encloses a receipt handle and an identifier for it. --+--+-- -- /See:/ 'deleteMessageBatchRequestEntry' smart constructor. data DeleteMessageBatchRequestEntry = DeleteMessageBatchRequestEntry'     { _dmbreId            :: !Text@@ -192,9 +200,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dmbreId'+-- * 'dmbreId' - An identifier for this particular receipt handle. This is used to communicate the result. Note that the @Id@ s of a batch request need to be unique within the request. ----- * 'dmbreReceiptHandle'+-- * 'dmbreReceiptHandle' - A receipt handle. deleteMessageBatchRequestEntry     :: Text -- ^ 'dmbreId'     -> Text -- ^ 'dmbreReceiptHandle'@@ -205,7 +213,7 @@     , _dmbreReceiptHandle = pReceiptHandle_     } --- | An identifier for this particular receipt handle. This is used to communicate the result. Note that the 'Id's of a batch request need to be unique within the request.+-- | An identifier for this particular receipt handle. This is used to communicate the result. Note that the @Id@ s of a batch request need to be unique within the request. dmbreId :: Lens' DeleteMessageBatchRequestEntry Text dmbreId = lens _dmbreId (\ s a -> s{_dmbreId = a}); @@ -223,8 +231,10 @@               ["Id" =: _dmbreId,                "ReceiptHandle" =: _dmbreReceiptHandle] --- | Encloses the id an entry in < DeleteMessageBatch>.+-- | Encloses the id an entry in 'DeleteMessageBatch' . --+--+-- -- /See:/ 'deleteMessageBatchResultEntry' smart constructor. newtype DeleteMessageBatchResultEntry = DeleteMessageBatchResultEntry'     { _dId :: Text@@ -234,7 +244,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dId'+-- * 'dId' - Represents a successfully deleted message. deleteMessageBatchResultEntry     :: Text -- ^ 'dId'     -> DeleteMessageBatchResultEntry@@ -257,6 +267,8 @@  -- | An Amazon SQS message. --+--+-- -- /See:/ 'message' smart constructor. data Message = Message'     { _mMessageAttributes      :: !(Maybe (Map Text MessageAttributeValue))@@ -272,19 +284,19 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'mMessageAttributes'+-- * 'mMessageAttributes' - Each message attribute consists of a Name, Type, and Value. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV Message Attribute Items> in the /Amazon SQS Developer Guide/ . ----- * 'mMD5OfBody'+-- * 'mMD5OfBody' - An MD5 digest of the non-URL-encoded message body string. ----- * 'mBody'+-- * 'mBody' - The message's contents (not URL-encoded). ----- * 'mAttributes'+-- * 'mAttributes' - @SenderId@ , @SentTimestamp@ , @ApproximateReceiveCount@ , and/or @ApproximateFirstReceiveTimestamp@ . @SentTimestamp@ and @ApproximateFirstReceiveTimestamp@ are each returned as an integer representing the <http://en.wikipedia.org/wiki/Unix_time epoch time> in milliseconds. ----- * 'mReceiptHandle'+-- * 'mReceiptHandle' - An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message. ----- * 'mMessageId'+-- * 'mMessageId' - A unique identifier for the message. Message IDs are considered unique across all AWS accounts for an extended period of time. ----- * 'mMD5OfMessageAttributes'+-- * 'mMD5OfMessageAttributes' - An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . message     :: Message message =@@ -298,7 +310,7 @@     , _mMD5OfMessageAttributes = Nothing     } --- | Each message attribute consists of a Name, Type, and Value. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV Message Attribute Items>.+-- | Each message attribute consists of a Name, Type, and Value. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV Message Attribute Items> in the /Amazon SQS Developer Guide/ . mMessageAttributes :: Lens' Message (HashMap Text MessageAttributeValue) mMessageAttributes = lens _mMessageAttributes (\ s a -> s{_mMessageAttributes = a}) . _Default . _Map; @@ -306,11 +318,11 @@ mMD5OfBody :: Lens' Message (Maybe Text) mMD5OfBody = lens _mMD5OfBody (\ s a -> s{_mMD5OfBody = a}); --- | The message\'s contents (not URL-encoded).+-- | The message's contents (not URL-encoded). mBody :: Lens' Message (Maybe Text) mBody = lens _mBody (\ s a -> s{_mBody = a}); --- | 'SenderId', 'SentTimestamp', 'ApproximateReceiveCount', and\/or 'ApproximateFirstReceiveTimestamp'. 'SentTimestamp' and 'ApproximateFirstReceiveTimestamp' are each returned as an integer representing the <http://en.wikipedia.org/wiki/Unix_time epoch time> in milliseconds.+-- | @SenderId@ , @SentTimestamp@ , @ApproximateReceiveCount@ , and/or @ApproximateFirstReceiveTimestamp@ . @SentTimestamp@ and @ApproximateFirstReceiveTimestamp@ are each returned as an integer representing the <http://en.wikipedia.org/wiki/Unix_time epoch time> in milliseconds. mAttributes :: Lens' Message (HashMap MessageAttribute Text) mAttributes = lens _mAttributes (\ s a -> s{_mAttributes = a}) . _Default . _Map; @@ -322,7 +334,7 @@ mMessageId :: Lens' Message (Maybe Text) mMessageId = lens _mMessageId (\ s a -> s{_mMessageId = a}); --- | An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to <http://www.faqs.org/rfcs/rfc1321.html>.+-- | An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . mMD5OfMessageAttributes :: Lens' Message (Maybe Text) mMD5OfMessageAttributes = lens _mMD5OfMessageAttributes (\ s a -> s{_mMD5OfMessageAttributes = a}); @@ -342,10 +354,12 @@  instance NFData Message --- | The user-specified message attribute value. For string data types, the value attribute has the same restrictions on the content as the message body. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html SendMessage>.+-- | The user-specified message attribute value. For string data types, the value attribute has the same restrictions on the content as the message body. For more information, see 'SendMessage' . --+-- -- Name, type, and value must not be empty or null. In addition, the message body should not be empty or null. All parts of the message attribute, including name, type, and value, are included in the message size restriction, which is currently 256 KB (262,144 bytes). --+-- -- /See:/ 'messageAttributeValue' smart constructor. data MessageAttributeValue = MessageAttributeValue'     { _mavBinaryValue      :: !(Maybe Base64)@@ -359,15 +373,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'mavBinaryValue'+-- * 'mavBinaryValue' - Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data. ----- * 'mavStringListValues'+-- * 'mavStringListValues' - Not implemented. Reserved for future use. ----- * 'mavStringValue'+-- * 'mavStringValue' - Strings are Unicode with UTF8 binary encoding. For a list of code values, see <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters ASCII Printable Characters> . ----- * 'mavBinaryListValues'+-- * 'mavBinaryListValues' - Not implemented. Reserved for future use. ----- * 'mavDataType'+-- * 'mavDataType' - Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue. You can also append custom labels. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes Message Attribute Data Types> in the /Amazon SQS Developer Guide/ . messageAttributeValue     :: Text -- ^ 'mavDataType'     -> MessageAttributeValue@@ -380,13 +394,7 @@     , _mavDataType = pDataType_     } --- | Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.------ /Note:/ This 'Lens' automatically encodes and decodes Base64 data,--- despite what the AWS documentation might say.--- The underlying isomorphism will encode to Base64 representation during--- serialisation, and decode from Base64 representation during deserialisation.--- This 'Lens' accepts and returns only raw unencoded data.+-- | Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data. mavBinaryValue :: Lens' MessageAttributeValue (Maybe ByteString) mavBinaryValue = lens _mavBinaryValue (\ s a -> s{_mavBinaryValue = a}) . mapping _Base64; @@ -394,7 +402,7 @@ mavStringListValues :: Lens' MessageAttributeValue [Text] mavStringListValues = lens _mavStringListValues (\ s a -> s{_mavStringListValues = a}) . _Default . _Coerce; --- | Strings are Unicode with UTF8 binary encoding. For a list of code values, see <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters>.+-- | Strings are Unicode with UTF8 binary encoding. For a list of code values, see <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters ASCII Printable Characters> . mavStringValue :: Lens' MessageAttributeValue (Maybe Text) mavStringValue = lens _mavStringValue (\ s a -> s{_mavStringValue = a}); @@ -402,9 +410,7 @@ mavBinaryListValues :: Lens' MessageAttributeValue [ByteString] mavBinaryListValues = lens _mavBinaryListValues (\ s a -> s{_mavBinaryListValues = a}) . _Default . _Coerce; --- | Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue.------ You can also append custom labels. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes Message Attribute Data Types>.+-- | Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue. You can also append custom labels. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes Message Attribute Data Types> in the /Amazon SQS Developer Guide/ . mavDataType :: Lens' MessageAttributeValue Text mavDataType = lens _mavDataType (\ s a -> s{_mavDataType = a}); @@ -439,27 +445,35 @@                       _mavBinaryListValues),                "DataType" =: _mavDataType] --- | Contains the details of a single Amazon SQS message along with a 'Id'.+-- | Contains the details of a single Amazon SQS message along with a @Id@ . --+--+-- -- /See:/ 'sendMessageBatchRequestEntry' smart constructor. data SendMessageBatchRequestEntry = SendMessageBatchRequestEntry'-    { _sMessageAttributes :: !(Maybe (Map Text MessageAttributeValue))-    , _sDelaySeconds      :: !(Maybe Int)-    , _sId                :: !Text-    , _sMessageBody       :: !Text+    { _sMessageAttributes      :: !(Maybe (Map Text MessageAttributeValue))+    , _sDelaySeconds           :: !(Maybe Int)+    , _sMessageDeduplicationId :: !(Maybe Text)+    , _sMessageGroupId         :: !(Maybe Text)+    , _sId                     :: !Text+    , _sMessageBody            :: !Text     } deriving (Eq,Read,Show,Data,Typeable,Generic)  -- | Creates a value of 'SendMessageBatchRequestEntry' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'sMessageAttributes'+-- * 'sMessageAttributes' - Each message attribute consists of a Name, Type, and Value. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV Message Attribute Items> in the /Amazon SQS Developer Guide/ . ----- * 'sDelaySeconds'+-- * 'sDelaySeconds' - The number of seconds (0 to 900 - 15 minutes) to delay a specific message. Messages with a positive @DelaySeconds@ value become available for processing after the delay time is finished. If you don't specify a value, the default value for the queue applies. ----- * 'sId'+-- * 'sMessageDeduplicationId' - This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular @MessageDeduplicationId@ is sent successfully, subsequent messages with the same @MessageDeduplicationId@ are accepted successfully but aren't delivered. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ .     * Every message must have a unique @MessageDeduplicationId@ ,     * You may provide a @MessageDeduplicationId@ explicitly.     * If you aren't able to provide a @MessageDeduplicationId@ and you enable @ContentBasedDeduplication@ for your queue, Amazon SQS uses a SHA-256 hash to generate the @MessageDeduplicationId@ using the body of the message (but not the attributes of the message).      * If you don't provide a @MessageDeduplicationId@ and the queue doesn't have @ContentBasedDeduplication@ set, the action fails with an error.     * If the queue has @ContentBasedDeduplication@ set, your @MessageDeduplicationId@ overrides the generated one.     * When @ContentBasedDeduplication@ is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.     * You can also use @ContentBasedDeduplication@ for messages with identical content to be treated as duplicates.     * If you send one message with @ContentBasedDeduplication@ enabled and then another message with a @MessageDeduplicationId@ that is the same as the one generated for the first @MessageDeduplicationId@ , the two messages are treated as duplicates and only one copy of the message is delivered.  The length of @MessageDeduplicationId@ is 128 characters. @MessageDeduplicationId@ can contain alphanumeric characters (@a-z@ , @A-Z@ , @0-9@ ) and punctuation (@!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~@ ). For best practices of using @MessageDeduplicationId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagededuplicationid-property Using the MessageDeduplicationId Property> in the /Amazon Simple Queue Service Developer Guide/ . ----- * 'sMessageBody'+-- * 'sMessageGroupId' - This parameter applies only to FIFO (first-in-first-out) queues. The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use @MessageGroupId@ values (for example, session data for multiple users). In this scenario, multiple readers can process the queue, but the session data of each user is processed in a FIFO fashion.     * You must associate a non-empty @MessageGroupId@ with a message. If you don't provide a @MessageGroupId@ , the action fails.     * @ReceiveMessage@ might return messages with multiple @MessageGroupId@ values. For each @MessageGroupId@ , the messages are sorted by time sent. The caller can't specify a @MessageGroupId@ . The length of @MessageGroupId@ is 128 characters. Valid values are alphanumeric characters and punctuation @(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)@ . For best practices of using @MessageGroupId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagegroupid-property Using the MessageGroupId Property> in the /Amazon Simple Queue Service Developer Guide/ .+--+-- * 'sId' - An identifier for the message in this batch. This is used to communicate the result. Note that the @Id@ s of a batch request need to be unique within the request.+--+-- * 'sMessageBody' - Body of the message. sendMessageBatchRequestEntry     :: Text -- ^ 'sId'     -> Text -- ^ 'sMessageBody'@@ -468,19 +482,29 @@     SendMessageBatchRequestEntry'     { _sMessageAttributes = Nothing     , _sDelaySeconds = Nothing+    , _sMessageDeduplicationId = Nothing+    , _sMessageGroupId = Nothing     , _sId = pId_     , _sMessageBody = pMessageBody_     } --- | Each message attribute consists of a Name, Type, and Value. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV Message Attribute Items>.+-- | Each message attribute consists of a Name, Type, and Value. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributesNTV Message Attribute Items> in the /Amazon SQS Developer Guide/ . sMessageAttributes :: Lens' SendMessageBatchRequestEntry (HashMap Text MessageAttributeValue) sMessageAttributes = lens _sMessageAttributes (\ s a -> s{_sMessageAttributes = a}) . _Default . _Map; --- | The number of seconds for which the message has to be delayed.+-- | The number of seconds (0 to 900 - 15 minutes) to delay a specific message. Messages with a positive @DelaySeconds@ value become available for processing after the delay time is finished. If you don't specify a value, the default value for the queue applies. sDelaySeconds :: Lens' SendMessageBatchRequestEntry (Maybe Int) sDelaySeconds = lens _sDelaySeconds (\ s a -> s{_sDelaySeconds = a}); --- | An identifier for the message in this batch. This is used to communicate the result. Note that the 'Id's of a batch request need to be unique within the request.+-- | This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular @MessageDeduplicationId@ is sent successfully, subsequent messages with the same @MessageDeduplicationId@ are accepted successfully but aren't delivered. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing Exactly-Once Processing> in the /Amazon SQS Developer Guide/ .     * Every message must have a unique @MessageDeduplicationId@ ,     * You may provide a @MessageDeduplicationId@ explicitly.     * If you aren't able to provide a @MessageDeduplicationId@ and you enable @ContentBasedDeduplication@ for your queue, Amazon SQS uses a SHA-256 hash to generate the @MessageDeduplicationId@ using the body of the message (but not the attributes of the message).      * If you don't provide a @MessageDeduplicationId@ and the queue doesn't have @ContentBasedDeduplication@ set, the action fails with an error.     * If the queue has @ContentBasedDeduplication@ set, your @MessageDeduplicationId@ overrides the generated one.     * When @ContentBasedDeduplication@ is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.     * You can also use @ContentBasedDeduplication@ for messages with identical content to be treated as duplicates.     * If you send one message with @ContentBasedDeduplication@ enabled and then another message with a @MessageDeduplicationId@ that is the same as the one generated for the first @MessageDeduplicationId@ , the two messages are treated as duplicates and only one copy of the message is delivered.  The length of @MessageDeduplicationId@ is 128 characters. @MessageDeduplicationId@ can contain alphanumeric characters (@a-z@ , @A-Z@ , @0-9@ ) and punctuation (@!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~@ ). For best practices of using @MessageDeduplicationId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagededuplicationid-property Using the MessageDeduplicationId Property> in the /Amazon Simple Queue Service Developer Guide/ .+sMessageDeduplicationId :: Lens' SendMessageBatchRequestEntry (Maybe Text)+sMessageDeduplicationId = lens _sMessageDeduplicationId (\ s a -> s{_sMessageDeduplicationId = a});++-- | This parameter applies only to FIFO (first-in-first-out) queues. The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use @MessageGroupId@ values (for example, session data for multiple users). In this scenario, multiple readers can process the queue, but the session data of each user is processed in a FIFO fashion.     * You must associate a non-empty @MessageGroupId@ with a message. If you don't provide a @MessageGroupId@ , the action fails.     * @ReceiveMessage@ might return messages with multiple @MessageGroupId@ values. For each @MessageGroupId@ , the messages are sorted by time sent. The caller can't specify a @MessageGroupId@ . The length of @MessageGroupId@ is 128 characters. Valid values are alphanumeric characters and punctuation @(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)@ . For best practices of using @MessageGroupId@ , see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queue-recommendations.html#using-messagegroupid-property Using the MessageGroupId Property> in the /Amazon Simple Queue Service Developer Guide/ .+sMessageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text)+sMessageGroupId = lens _sMessageGroupId (\ s a -> s{_sMessageGroupId = a});++-- | An identifier for the message in this batch. This is used to communicate the result. Note that the @Id@ s of a batch request need to be unique within the request. sId :: Lens' SendMessageBatchRequestEntry Text sId = lens _sId (\ s a -> s{_sId = a}); @@ -498,14 +522,19 @@               [toQuery                  (toQueryMap "MessageAttribute" "Name" "Value" <$>                     _sMessageAttributes),-               "DelaySeconds" =: _sDelaySeconds, "Id" =: _sId,+               "DelaySeconds" =: _sDelaySeconds,+               "MessageDeduplicationId" =: _sMessageDeduplicationId,+               "MessageGroupId" =: _sMessageGroupId, "Id" =: _sId,                "MessageBody" =: _sMessageBody] --- | Encloses a message ID for successfully enqueued message of a < SendMessageBatch>.+-- | Encloses a message ID for successfully enqueued message of a 'SendMessageBatch' . --+--+-- -- /See:/ 'sendMessageBatchResultEntry' smart constructor. data SendMessageBatchResultEntry = SendMessageBatchResultEntry'-    { _smbreMD5OfMessageAttributes :: !(Maybe Text)+    { _smbreSequenceNumber         :: !(Maybe Text)+    , _smbreMD5OfMessageAttributes :: !(Maybe Text)     , _smbreId                     :: !Text     , _smbreMessageId              :: !Text     , _smbreMD5OfMessageBody       :: !Text@@ -515,13 +544,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'smbreMD5OfMessageAttributes'+-- * 'smbreSequenceNumber' - /This element applies only to FIFO (first-in-first-out) queues./  A large, non-consecutive number that Amazon SQS assigns to each message. The length of @SequenceNumber@ is 128 bits. As @SequenceNumber@ continues to increase for a particular @MessageGroupId@ . ----- * 'smbreId'+-- * 'smbreMD5OfMessageAttributes' - An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message batch correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . ----- * 'smbreMessageId'+-- * 'smbreId' - An identifier for the message in this batch. ----- * 'smbreMD5OfMessageBody'+-- * 'smbreMessageId' - An identifier for the message.+--+-- * 'smbreMD5OfMessageBody' - An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . sendMessageBatchResultEntry     :: Text -- ^ 'smbreId'     -> Text -- ^ 'smbreMessageId'@@ -529,13 +560,18 @@     -> SendMessageBatchResultEntry sendMessageBatchResultEntry pId_ pMessageId_ pMD5OfMessageBody_ =     SendMessageBatchResultEntry'-    { _smbreMD5OfMessageAttributes = Nothing+    { _smbreSequenceNumber = Nothing+    , _smbreMD5OfMessageAttributes = Nothing     , _smbreId = pId_     , _smbreMessageId = pMessageId_     , _smbreMD5OfMessageBody = pMD5OfMessageBody_     } --- | An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message batch correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to <http://www.faqs.org/rfcs/rfc1321.html>.+-- | /This element applies only to FIFO (first-in-first-out) queues./  A large, non-consecutive number that Amazon SQS assigns to each message. The length of @SequenceNumber@ is 128 bits. As @SequenceNumber@ continues to increase for a particular @MessageGroupId@ .+smbreSequenceNumber :: Lens' SendMessageBatchResultEntry (Maybe Text)+smbreSequenceNumber = lens _smbreSequenceNumber (\ s a -> s{_smbreSequenceNumber = a});++-- | An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message batch correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . smbreMD5OfMessageAttributes :: Lens' SendMessageBatchResultEntry (Maybe Text) smbreMD5OfMessageAttributes = lens _smbreMD5OfMessageAttributes (\ s a -> s{_smbreMD5OfMessageAttributes = a}); @@ -547,15 +583,17 @@ smbreMessageId :: Lens' SendMessageBatchResultEntry Text smbreMessageId = lens _smbreMessageId (\ s a -> s{_smbreMessageId = a}); --- | An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to <http://www.faqs.org/rfcs/rfc1321.html>.+-- | An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, see <https://www.ietf.org/rfc/rfc1321.txt RFC1321> . smbreMD5OfMessageBody :: Lens' SendMessageBatchResultEntry Text smbreMD5OfMessageBody = lens _smbreMD5OfMessageBody (\ s a -> s{_smbreMD5OfMessageBody = a});  instance FromXML SendMessageBatchResultEntry where         parseXML x           = SendMessageBatchResultEntry' <$>-              (x .@? "MD5OfMessageAttributes") <*> (x .@ "Id") <*>-                (x .@ "MessageId")+              (x .@? "SequenceNumber") <*>+                (x .@? "MD5OfMessageAttributes")+                <*> (x .@ "Id")+                <*> (x .@ "MessageId")                 <*> (x .@ "MD5OfMessageBody")  instance Hashable SendMessageBatchResultEntry
gen/Network/AWS/SQS/Types/Sum.hs view
@@ -55,54 +55,63 @@     parseXML = parseXMLText "MessageAttribute"  data QueueAttributeName-    = ApproximateNumberOfMessages-    | ApproximateNumberOfMessagesDelayed-    | ApproximateNumberOfMessagesNotVisible-    | CreatedTimestamp-    | DelaySeconds-    | LastModifiedTimestamp-    | MaximumMessageSize-    | MessageRetentionPeriod-    | Policy-    | QueueARN-    | ReceiveMessageWaitTimeSeconds-    | RedrivePolicy-    | VisibilityTimeout+    = QANAll+    | QANApproximateNumberOfMessages+    | QANApproximateNumberOfMessagesDelayed+    | QANApproximateNumberOfMessagesNotVisible+    | QANContentBasedDeduplication+    | QANCreatedTimestamp+    | QANDelaySeconds+    | QANFifoQueue+    | QANLastModifiedTimestamp+    | QANMaximumMessageSize+    | QANMessageRetentionPeriod+    | QANPolicy+    | QANQueueARN+    | QANReceiveMessageWaitTimeSeconds+    | QANRedrivePolicy+    | QANVisibilityTimeout     deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)  instance FromText QueueAttributeName where     parser = takeLowerText >>= \case-        "approximatenumberofmessages" -> pure ApproximateNumberOfMessages-        "approximatenumberofmessagesdelayed" -> pure ApproximateNumberOfMessagesDelayed-        "approximatenumberofmessagesnotvisible" -> pure ApproximateNumberOfMessagesNotVisible-        "createdtimestamp" -> pure CreatedTimestamp-        "delayseconds" -> pure DelaySeconds-        "lastmodifiedtimestamp" -> pure LastModifiedTimestamp-        "maximummessagesize" -> pure MaximumMessageSize-        "messageretentionperiod" -> pure MessageRetentionPeriod-        "policy" -> pure Policy-        "queuearn" -> pure QueueARN-        "receivemessagewaittimeseconds" -> pure ReceiveMessageWaitTimeSeconds-        "redrivepolicy" -> pure RedrivePolicy-        "visibilitytimeout" -> pure VisibilityTimeout+        "all" -> pure QANAll+        "approximatenumberofmessages" -> pure QANApproximateNumberOfMessages+        "approximatenumberofmessagesdelayed" -> pure QANApproximateNumberOfMessagesDelayed+        "approximatenumberofmessagesnotvisible" -> pure QANApproximateNumberOfMessagesNotVisible+        "contentbaseddeduplication" -> pure QANContentBasedDeduplication+        "createdtimestamp" -> pure QANCreatedTimestamp+        "delayseconds" -> pure QANDelaySeconds+        "fifoqueue" -> pure QANFifoQueue+        "lastmodifiedtimestamp" -> pure QANLastModifiedTimestamp+        "maximummessagesize" -> pure QANMaximumMessageSize+        "messageretentionperiod" -> pure QANMessageRetentionPeriod+        "policy" -> pure QANPolicy+        "queuearn" -> pure QANQueueARN+        "receivemessagewaittimeseconds" -> pure QANReceiveMessageWaitTimeSeconds+        "redrivepolicy" -> pure QANRedrivePolicy+        "visibilitytimeout" -> pure QANVisibilityTimeout         e -> fromTextError $ "Failure parsing QueueAttributeName from value: '" <> e-           <> "'. Accepted values: approximatenumberofmessages, approximatenumberofmessagesdelayed, approximatenumberofmessagesnotvisible, createdtimestamp, delayseconds, lastmodifiedtimestamp, maximummessagesize, messageretentionperiod, policy, queuearn, receivemessagewaittimeseconds, redrivepolicy, visibilitytimeout"+           <> "'. Accepted values: all, approximatenumberofmessages, approximatenumberofmessagesdelayed, approximatenumberofmessagesnotvisible, contentbaseddeduplication, createdtimestamp, delayseconds, fifoqueue, lastmodifiedtimestamp, maximummessagesize, messageretentionperiod, policy, queuearn, receivemessagewaittimeseconds, redrivepolicy, visibilitytimeout"  instance ToText QueueAttributeName where     toText = \case-        ApproximateNumberOfMessages -> "ApproximateNumberOfMessages"-        ApproximateNumberOfMessagesDelayed -> "ApproximateNumberOfMessagesDelayed"-        ApproximateNumberOfMessagesNotVisible -> "ApproximateNumberOfMessagesNotVisible"-        CreatedTimestamp -> "CreatedTimestamp"-        DelaySeconds -> "DelaySeconds"-        LastModifiedTimestamp -> "LastModifiedTimestamp"-        MaximumMessageSize -> "MaximumMessageSize"-        MessageRetentionPeriod -> "MessageRetentionPeriod"-        Policy -> "Policy"-        QueueARN -> "QueueArn"-        ReceiveMessageWaitTimeSeconds -> "ReceiveMessageWaitTimeSeconds"-        RedrivePolicy -> "RedrivePolicy"-        VisibilityTimeout -> "VisibilityTimeout"+        QANAll -> "All"+        QANApproximateNumberOfMessages -> "ApproximateNumberOfMessages"+        QANApproximateNumberOfMessagesDelayed -> "ApproximateNumberOfMessagesDelayed"+        QANApproximateNumberOfMessagesNotVisible -> "ApproximateNumberOfMessagesNotVisible"+        QANContentBasedDeduplication -> "ContentBasedDeduplication"+        QANCreatedTimestamp -> "CreatedTimestamp"+        QANDelaySeconds -> "DelaySeconds"+        QANFifoQueue -> "FifoQueue"+        QANLastModifiedTimestamp -> "LastModifiedTimestamp"+        QANMaximumMessageSize -> "MaximumMessageSize"+        QANMessageRetentionPeriod -> "MessageRetentionPeriod"+        QANPolicy -> "Policy"+        QANQueueARN -> "QueueArn"+        QANReceiveMessageWaitTimeSeconds -> "ReceiveMessageWaitTimeSeconds"+        QANRedrivePolicy -> "RedrivePolicy"+        QANVisibilityTimeout -> "VisibilityTimeout"  instance Hashable     QueueAttributeName instance NFData       QueueAttributeName