amazonka-sqs 1.5.0 → 1.6.0
raw patch · 31 files changed
+249/−247 lines, 31 filesdep ~amazonka-coredep ~amazonka-testPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-core, amazonka-test
API changes (from Hackage documentation)
Files
- README.md +1/−1
- amazonka-sqs.cabal +5/−5
- gen/Network/AWS/SQS.hs +1/−1
- gen/Network/AWS/SQS/AddPermission.hs +10/−10
- gen/Network/AWS/SQS/ChangeMessageVisibility.hs +8/−8
- gen/Network/AWS/SQS/ChangeMessageVisibilityBatch.hs +11/−11
- gen/Network/AWS/SQS/CreateQueue.hs +6/−6
- gen/Network/AWS/SQS/DeleteMessage.hs +3/−3
- gen/Network/AWS/SQS/DeleteMessageBatch.hs +10/−10
- gen/Network/AWS/SQS/DeleteQueue.hs +2/−2
- gen/Network/AWS/SQS/GetQueueAttributes.hs +6/−6
- gen/Network/AWS/SQS/GetQueueURL.hs +7/−7
- gen/Network/AWS/SQS/ListDeadLetterSourceQueues.hs +5/−5
- gen/Network/AWS/SQS/ListQueueTags.hs +5/−5
- gen/Network/AWS/SQS/ListQueues.hs +5/−5
- gen/Network/AWS/SQS/PurgeQueue.hs +2/−2
- gen/Network/AWS/SQS/ReceiveMessage.hs +19/−19
- gen/Network/AWS/SQS/RemovePermission.hs +3/−3
- gen/Network/AWS/SQS/SendMessage.hs +25/−25
- gen/Network/AWS/SQS/SendMessageBatch.hs +10/−10
- gen/Network/AWS/SQS/SetQueueAttributes.hs +3/−3
- gen/Network/AWS/SQS/TagQueue.hs +3/−3
- gen/Network/AWS/SQS/Types.hs +18/−16
- gen/Network/AWS/SQS/Types/Product.hs +72/−72
- gen/Network/AWS/SQS/Types/Sum.hs +1/−1
- gen/Network/AWS/SQS/UntagQueue.hs +3/−3
- gen/Network/AWS/SQS/Waiters.hs +1/−1
- test/Main.hs +1/−1
- test/Test/AWS/Gen/SQS.hs +1/−1
- test/Test/AWS/SQS.hs +1/−1
- test/Test/AWS/SQS/Internal.hs +1/−1
README.md view
@@ -8,7 +8,7 @@ ## Version -`1.5.0`+`1.6.0` ## Description
amazonka-sqs.cabal view
@@ -1,5 +1,5 @@ name: amazonka-sqs-version: 1.5.0+version: 1.6.0 synopsis: Amazon Simple Queue Service SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -7,7 +7,7 @@ license-file: LICENSE author: Brendan Hay maintainer: Brendan Hay <brendan.g.hay+amazonka@gmail.com>-copyright: Copyright (c) 2013-2017 Brendan Hay+copyright: Copyright (c) 2013-2018 Brendan Hay category: Network, AWS, Cloud, Distributed Computing build-type: Simple cabal-version: >= 1.10@@ -73,7 +73,7 @@ , Network.AWS.SQS.Types.Sum build-depends:- amazonka-core == 1.5.0.*+ amazonka-core == 1.6.0.* , base >= 4.7 && < 5 test-suite amazonka-sqs-test@@ -93,8 +93,8 @@ , Test.AWS.SQS.Internal build-depends:- amazonka-core == 1.5.0.*- , amazonka-test == 1.5.0.*+ amazonka-core == 1.6.0.*+ , amazonka-test == 1.6.0.* , amazonka-sqs , base , bytestring
gen/Network/AWS/SQS.hs view
@@ -5,7 +5,7 @@ -- | -- Module : Network.AWS.SQS--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated
gen/Network/AWS/SQS/AddPermission.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.AddPermission--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -76,28 +76,28 @@ -> AddPermission addPermission pQueueURL_ pLabel_ = AddPermission'- { _apQueueURL = pQueueURL_- , _apLabel = pLabel_- , _apAWSAccountIds = mempty- , _apActions = mempty- }+ { _apQueueURL = pQueueURL_+ , _apLabel = pLabel_+ , _apAWSAccountIds = mempty+ , _apActions = mempty+ } -- | The URL of the Amazon SQS queue to which permissions are added. Queue URLs are case-sensitive. apQueueURL :: Lens' AddPermission Text-apQueueURL = lens _apQueueURL (\ s a -> s{_apQueueURL = a});+apQueueURL = lens _apQueueURL (\ s a -> s{_apQueueURL = a}) -- | The unique identification of the permission you're setting (for example, @AliceSendMessage@ ). Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (@-@ ), and underscores (@_@ ). apLabel :: Lens' AddPermission Text-apLabel = lens _apLabel (\ s a -> s{_apLabel = a});+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 is 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 Simple Queue Service Developer Guide/ . apAWSAccountIds :: Lens' AddPermission [Text]-apAWSAccountIds = lens _apAWSAccountIds (\ s a -> s{_apAWSAccountIds = a}) . _Coerce;+apAWSAccountIds = lens _apAWSAccountIds (\ s a -> s{_apAWSAccountIds = a}) . _Coerce -- | The action the client wants to allow for the specified principal. The following values are valid: * @*@ * @ChangeMessageVisibility@ * @DeleteMessage@ * @GetQueueAttributes@ * @GetQueueUrl@ * @ReceiveMessage@ * @SendMessage@ For more information about these actions, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes Understanding Permissions> in the /Amazon Simple Queue Service Developer Guide/ . Specifying @SendMessage@ , @DeleteMessage@ , or @ChangeMessageVisibility@ for @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;+apActions = lens _apActions (\ s a -> s{_apActions = a}) . _Coerce instance AWSRequest AddPermission where type Rs AddPermission = AddPermissionResponse
gen/Network/AWS/SQS/ChangeMessageVisibility.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.ChangeMessageVisibility--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -79,23 +79,23 @@ -> ChangeMessageVisibility changeMessageVisibility pQueueURL_ pReceiptHandle_ pVisibilityTimeout_ = ChangeMessageVisibility'- { _cmvQueueURL = pQueueURL_- , _cmvReceiptHandle = pReceiptHandle_- , _cmvVisibilityTimeout = pVisibilityTimeout_- }+ { _cmvQueueURL = pQueueURL_+ , _cmvReceiptHandle = pReceiptHandle_+ , _cmvVisibilityTimeout = pVisibilityTimeout_+ } -- | The URL of the Amazon SQS queue whose message's visibility is changed. Queue URLs are case-sensitive. cmvQueueURL :: Lens' ChangeMessageVisibility Text-cmvQueueURL = lens _cmvQueueURL (\ s a -> s{_cmvQueueURL = a});+cmvQueueURL = lens _cmvQueueURL (\ s a -> s{_cmvQueueURL = a}) -- | The receipt handle associated with the message whose visibility timeout is changed. This parameter is returned by the @'ReceiveMessage' @ action. cmvReceiptHandle :: Lens' ChangeMessageVisibility Text-cmvReceiptHandle = lens _cmvReceiptHandle (\ s a -> s{_cmvReceiptHandle = a});+cmvReceiptHandle = lens _cmvReceiptHandle (\ s a -> s{_cmvReceiptHandle = a}) -- | The new value for the message's visibility timeout (in seconds). Values values: @0@ to @43200@ . Maximum: 12 hours. cmvVisibilityTimeout :: Lens' ChangeMessageVisibility Int-cmvVisibilityTimeout = lens _cmvVisibilityTimeout (\ s a -> s{_cmvVisibilityTimeout = a});+cmvVisibilityTimeout = lens _cmvVisibilityTimeout (\ s a -> s{_cmvVisibilityTimeout = a}) instance AWSRequest ChangeMessageVisibility where type Rs ChangeMessageVisibility =
gen/Network/AWS/SQS/ChangeMessageVisibilityBatch.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.ChangeMessageVisibilityBatch--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -71,16 +71,16 @@ -> ChangeMessageVisibilityBatch changeMessageVisibilityBatch pQueueURL_ = ChangeMessageVisibilityBatch'- {_cmvbQueueURL = pQueueURL_, _cmvbEntries = mempty}+ {_cmvbQueueURL = pQueueURL_, _cmvbEntries = mempty} -- | The URL of the Amazon SQS queue whose messages' visibility is changed. Queue URLs are case-sensitive. cmvbQueueURL :: Lens' ChangeMessageVisibilityBatch Text-cmvbQueueURL = lens _cmvbQueueURL (\ s a -> s{_cmvbQueueURL = a});+cmvbQueueURL = lens _cmvbQueueURL (\ s a -> s{_cmvbQueueURL = a}) -- | A list of receipt handles of the messages for which the visibility timeout must be changed. cmvbEntries :: Lens' ChangeMessageVisibilityBatch [ChangeMessageVisibilityBatchRequestEntry]-cmvbEntries = lens _cmvbEntries (\ s a -> s{_cmvbEntries = a}) . _Coerce;+cmvbEntries = lens _cmvbEntries (\ s a -> s{_cmvbEntries = a}) . _Coerce instance AWSRequest ChangeMessageVisibilityBatch where@@ -145,23 +145,23 @@ -> ChangeMessageVisibilityBatchResponse changeMessageVisibilityBatchResponse pResponseStatus_ = ChangeMessageVisibilityBatchResponse'- { _cmvbrsResponseStatus = pResponseStatus_- , _cmvbrsSuccessful = mempty- , _cmvbrsFailed = mempty- }+ { _cmvbrsResponseStatus = pResponseStatus_+ , _cmvbrsSuccessful = mempty+ , _cmvbrsFailed = mempty+ } -- | -- | The response status code. cmvbrsResponseStatus :: Lens' ChangeMessageVisibilityBatchResponse Int-cmvbrsResponseStatus = lens _cmvbrsResponseStatus (\ s a -> s{_cmvbrsResponseStatus = a});+cmvbrsResponseStatus = lens _cmvbrsResponseStatus (\ s a -> s{_cmvbrsResponseStatus = a}) -- | A list of @'ChangeMessageVisibilityBatchResultEntry' @ items. cmvbrsSuccessful :: Lens' ChangeMessageVisibilityBatchResponse [ChangeMessageVisibilityBatchResultEntry]-cmvbrsSuccessful = lens _cmvbrsSuccessful (\ s a -> s{_cmvbrsSuccessful = a}) . _Coerce;+cmvbrsSuccessful = lens _cmvbrsSuccessful (\ s a -> s{_cmvbrsSuccessful = a}) . _Coerce -- | A list of @'BatchResultErrorEntry' @ items. cmvbrsFailed :: Lens' ChangeMessageVisibilityBatchResponse [BatchResultErrorEntry]-cmvbrsFailed = lens _cmvbrsFailed (\ s a -> s{_cmvbrsFailed = a}) . _Coerce;+cmvbrsFailed = lens _cmvbrsFailed (\ s a -> s{_cmvbrsFailed = a}) . _Coerce instance NFData ChangeMessageVisibilityBatchResponse where
gen/Network/AWS/SQS/CreateQueue.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.CreateQueue--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -90,11 +90,11 @@ -- | 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 length of time, in seconds, for which the delivery of all messages in the queue is delayed. Valid values: An integer from 0 to 900 seconds (15 minutes). The default is 0 (zero). * @MaximumMessageSize@ - The limit of how many bytes a message can contain before Amazon SQS rejects it. Valid values: An integer from 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB). * @MessageRetentionPeriod@ - The length of time, in seconds, for which Amazon SQS retains a message. Valid values: An integer from 60 seconds (1 minute) to 1,209,600 seconds (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 length of time, in seconds, for which a @'ReceiveMessage' @ action waits for a message to arrive. Valid values: An integer from 0 to 20 (seconds). The default is 0 (zero). * @RedrivePolicy@ - The string that includes 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/sqs-dead-letter-queues.html Using Amazon SQS Dead-Letter Queues> in the /Amazon Simple Queue Service Developer Guide/ . * @deadLetterTargetArn@ - The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of @maxReceiveCount@ is exceeded. * @maxReceiveCount@ - The number of times a message is delivered to the source queue before being moved to the dead-letter queue. * @VisibilityTimeout@ - The visibility timeout for the queue. Valid values: An integer from 0 to 43,200 (12 hours). The default is 30. For more information about the visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html Visibility Timeout> in the /Amazon Simple Queue Service Developer Guide/ . The following attributes apply only to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html server-side-encryption> : * @KmsMasterKeyId@ - The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms Key Terms> . While the alias of the AWS-managed CMK for Amazon SQS is always @alias/aws/sqs@ , the alias of a custom CMK can, for example, be @alias//MyAlias/ @ . For more examples, see <http://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters KeyId> in the /AWS Key Management Service API Reference/ . * @KmsDataKeyReusePeriodSeconds@ - The length of time, in seconds, for which Amazon SQS can reuse a <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys data key> to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). A shorter time period provides better security but results in more calls to KMS which might incur charges after Free Tier. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work How Does the Data Key Reuse Period Work?> . 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. Valid values: @true@ , @false@ . 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 also provide the @MessageGroupId@ for your messages 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 Simple Queue Service Developer Guide/ . * @ContentBasedDeduplication@ - Enables content-based deduplication. Valid values: @true@ , @false@ . 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 Simple Queue Service 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. * 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 (such as the following) are ignored: * @ApproximateNumberOfMessages@ * @ApproximateNumberOfMessagesDelayed@ * @ApproximateNumberOfMessagesNotVisible@ * @CreatedTimestamp@ * @LastModifiedTimestamp@ * @QueueArn@ cqAttributes :: Lens' CreateQueue (HashMap QueueAttributeName Text)-cqAttributes = lens _cqAttributes (\ s a -> s{_cqAttributes = a}) . _Default . _Map;+cqAttributes = lens _cqAttributes (\ s a -> s{_cqAttributes = a}) . _Default . _Map -- | The name of the new queue. The following limits apply to this name: * A queue name can have up to 80 characters. * Valid values: alphanumeric characters, 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});+cqQueueName = lens _cqQueueName (\ s a -> s{_cqQueueName = a}) instance AWSRequest CreateQueue where type Rs CreateQueue = CreateQueueResponse@@ -148,15 +148,15 @@ -> CreateQueueResponse createQueueResponse pResponseStatus_ = CreateQueueResponse'- {_cqrsQueueURL = Nothing, _cqrsResponseStatus = pResponseStatus_}+ {_cqrsQueueURL = Nothing, _cqrsResponseStatus = pResponseStatus_} -- | The URL of the created Amazon SQS queue. cqrsQueueURL :: Lens' CreateQueueResponse (Maybe Text)-cqrsQueueURL = lens _cqrsQueueURL (\ s a -> s{_cqrsQueueURL = a});+cqrsQueueURL = lens _cqrsQueueURL (\ s a -> s{_cqrsQueueURL = a}) -- | -- | The response status code. cqrsResponseStatus :: Lens' CreateQueueResponse Int-cqrsResponseStatus = lens _cqrsResponseStatus (\ s a -> s{_cqrsResponseStatus = a});+cqrsResponseStatus = lens _cqrsResponseStatus (\ s a -> s{_cqrsResponseStatus = a}) instance NFData CreateQueueResponse where
gen/Network/AWS/SQS/DeleteMessage.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.DeleteMessage--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -70,11 +70,11 @@ -- | The URL of the Amazon SQS queue from which messages are deleted. Queue URLs are case-sensitive. dmQueueURL :: Lens' DeleteMessage Text-dmQueueURL = lens _dmQueueURL (\ s a -> s{_dmQueueURL = a});+dmQueueURL = lens _dmQueueURL (\ s a -> s{_dmQueueURL = a}) -- | The receipt handle associated with the message to delete. dmReceiptHandle :: Lens' DeleteMessage Text-dmReceiptHandle = lens _dmReceiptHandle (\ s a -> s{_dmReceiptHandle = a});+dmReceiptHandle = lens _dmReceiptHandle (\ s a -> s{_dmReceiptHandle = a}) instance AWSRequest DeleteMessage where type Rs DeleteMessage = DeleteMessageResponse
gen/Network/AWS/SQS/DeleteMessageBatch.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.DeleteMessageBatch--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -75,11 +75,11 @@ -- | The URL of the Amazon SQS queue from which messages are deleted. Queue URLs are case-sensitive. dmbQueueURL :: Lens' DeleteMessageBatch Text-dmbQueueURL = lens _dmbQueueURL (\ s a -> s{_dmbQueueURL = a});+dmbQueueURL = lens _dmbQueueURL (\ s a -> s{_dmbQueueURL = a}) -- | A list of receipt handles for the messages to be deleted. dmbEntries :: Lens' DeleteMessageBatch [DeleteMessageBatchRequestEntry]-dmbEntries = lens _dmbEntries (\ s a -> s{_dmbEntries = a}) . _Coerce;+dmbEntries = lens _dmbEntries (\ s a -> s{_dmbEntries = a}) . _Coerce instance AWSRequest DeleteMessageBatch where type Rs DeleteMessageBatch =@@ -138,22 +138,22 @@ -> DeleteMessageBatchResponse deleteMessageBatchResponse pResponseStatus_ = DeleteMessageBatchResponse'- { _dmbrsResponseStatus = pResponseStatus_- , _dmbrsSuccessful = mempty- , _dmbrsFailed = mempty- }+ { _dmbrsResponseStatus = pResponseStatus_+ , _dmbrsSuccessful = mempty+ , _dmbrsFailed = mempty+ } -- | -- | The response status code. dmbrsResponseStatus :: Lens' DeleteMessageBatchResponse Int-dmbrsResponseStatus = lens _dmbrsResponseStatus (\ s a -> s{_dmbrsResponseStatus = a});+dmbrsResponseStatus = lens _dmbrsResponseStatus (\ s a -> s{_dmbrsResponseStatus = a}) -- | A list of @'DeleteMessageBatchResultEntry' @ items. dmbrsSuccessful :: Lens' DeleteMessageBatchResponse [DeleteMessageBatchResultEntry]-dmbrsSuccessful = lens _dmbrsSuccessful (\ s a -> s{_dmbrsSuccessful = a}) . _Coerce;+dmbrsSuccessful = lens _dmbrsSuccessful (\ s a -> s{_dmbrsSuccessful = a}) . _Coerce -- | A list of @'BatchResultErrorEntry' @ items. dmbrsFailed :: Lens' DeleteMessageBatchResponse [BatchResultErrorEntry]-dmbrsFailed = lens _dmbrsFailed (\ s a -> s{_dmbrsFailed = a}) . _Coerce;+dmbrsFailed = lens _dmbrsFailed (\ s a -> s{_dmbrsFailed = a}) . _Coerce instance NFData DeleteMessageBatchResponse where
gen/Network/AWS/SQS/DeleteQueue.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.DeleteQueue--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -70,7 +70,7 @@ -- | The URL of the Amazon SQS queue to delete. Queue URLs are case-sensitive. dqQueueURL :: Lens' DeleteQueue Text-dqQueueURL = lens _dqQueueURL (\ s a -> s{_dqQueueURL = a});+dqQueueURL = lens _dqQueueURL (\ s a -> s{_dqQueueURL = a}) instance AWSRequest DeleteQueue where type Rs DeleteQueue = DeleteQueueResponse
gen/Network/AWS/SQS/GetQueueAttributes.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.GetQueueAttributes--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -72,11 +72,11 @@ -- | 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/sqs-resources-required-process-messages.html Resources Required to Process Messages> in the /Amazon Simple Queue Service 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 aren't deleted. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-resources-required-process-messages.html Resources Required to Process Messages> in the /Amazon Simple Queue Service Developer Guide/ . * @CreatedTimestamp@ - Returns the time when the queue was created in seconds (<http://en.wikipedia.org/wiki/Unix_time epoch time> ). * @DelaySeconds@ - Returns the default delay on the queue in seconds. * @LastModifiedTimestamp@ - Returns the time when the queue was last changed in seconds (<http://en.wikipedia.org/wiki/Unix_time epoch time> ). * @MaximumMessageSize@ - Returns the limit of how many bytes a message can contain before Amazon SQS rejects it. * @MessageRetentionPeriod@ - Returns the length of time, in 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 length of time, in seconds, for which the @ReceiveMessage@ action waits for a message to arrive. * @RedrivePolicy@ - Returns the string that includes 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/sqs-dead-letter-queues.html Using Amazon SQS Dead-Letter Queues> in the /Amazon Simple Queue Service Developer Guide/ . * @deadLetterTargetArn@ - The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of @maxReceiveCount@ is exceeded. * @maxReceiveCount@ - The number of times a message is delivered to the source queue before being moved to the dead-letter queue. * @VisibilityTimeout@ - Returns the visibility timeout for the queue. For more information about the visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html Visibility Timeout> in the /Amazon Simple Queue Service Developer Guide/ . The following attributes apply only to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html server-side-encryption> : * @KmsMasterKeyId@ - Returns the ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms Key Terms> . * @KmsDataKeyReusePeriodSeconds@ - Returns the length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work How Does the Data Key Reuse Period Work?> . 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 Simple Queue Service 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 Simple Queue Service Developer Guide/ . gqaAttributeNames :: Lens' GetQueueAttributes [QueueAttributeName]-gqaAttributeNames = lens _gqaAttributeNames (\ s a -> s{_gqaAttributeNames = a}) . _Default . _Coerce;+gqaAttributeNames = lens _gqaAttributeNames (\ s a -> s{_gqaAttributeNames = a}) . _Default . _Coerce -- | The URL of the Amazon SQS queue whose attribute information is retrieved. Queue URLs are case-sensitive. gqaQueueURL :: Lens' GetQueueAttributes Text-gqaQueueURL = lens _gqaQueueURL (\ s a -> s{_gqaQueueURL = a});+gqaQueueURL = lens _gqaQueueURL (\ s a -> s{_gqaQueueURL = a}) instance AWSRequest GetQueueAttributes where type Rs GetQueueAttributes =@@ -131,15 +131,15 @@ -> GetQueueAttributesResponse getQueueAttributesResponse pResponseStatus_ = GetQueueAttributesResponse'- {_gqarsAttributes = Nothing, _gqarsResponseStatus = pResponseStatus_}+ {_gqarsAttributes = Nothing, _gqarsResponseStatus = pResponseStatus_} -- | A map of attributes to their respective values. gqarsAttributes :: Lens' GetQueueAttributesResponse (HashMap QueueAttributeName Text)-gqarsAttributes = lens _gqarsAttributes (\ s a -> s{_gqarsAttributes = a}) . _Default . _Map;+gqarsAttributes = lens _gqarsAttributes (\ s a -> s{_gqarsAttributes = a}) . _Default . _Map -- | -- | The response status code. gqarsResponseStatus :: Lens' GetQueueAttributesResponse Int-gqarsResponseStatus = lens _gqarsResponseStatus (\ s a -> s{_gqarsResponseStatus = a});+gqarsResponseStatus = lens _gqarsResponseStatus (\ s a -> s{_gqarsResponseStatus = a}) instance NFData GetQueueAttributesResponse where
gen/Network/AWS/SQS/GetQueueURL.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.GetQueueURL--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -70,16 +70,16 @@ -> GetQueueURL getQueueURL pQueueName_ = GetQueueURL'- {_gquQueueOwnerAWSAccountId = Nothing, _gquQueueName = pQueueName_}+ {_gquQueueOwnerAWSAccountId = Nothing, _gquQueueName = pQueueName_} -- | The AWS account ID of the account that created the queue. gquQueueOwnerAWSAccountId :: Lens' GetQueueURL (Maybe Text)-gquQueueOwnerAWSAccountId = lens _gquQueueOwnerAWSAccountId (\ s a -> s{_gquQueueOwnerAWSAccountId = a});+gquQueueOwnerAWSAccountId = lens _gquQueueOwnerAWSAccountId (\ s a -> s{_gquQueueOwnerAWSAccountId = a}) -- | The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, hyphens (@-@ ), and underscores (@_@ ). Queue names are case-sensitive. gquQueueName :: Lens' GetQueueURL Text-gquQueueName = lens _gquQueueName (\ s a -> s{_gquQueueName = a});+gquQueueName = lens _gquQueueName (\ s a -> s{_gquQueueName = a}) instance AWSRequest GetQueueURL where type Rs GetQueueURL = GetQueueURLResponse@@ -133,15 +133,15 @@ -> GetQueueURLResponse getQueueURLResponse pResponseStatus_ pQueueURL_ = GetQueueURLResponse'- {_gqursResponseStatus = pResponseStatus_, _gqursQueueURL = pQueueURL_}+ {_gqursResponseStatus = pResponseStatus_, _gqursQueueURL = pQueueURL_} -- | -- | The response status code. gqursResponseStatus :: Lens' GetQueueURLResponse Int-gqursResponseStatus = lens _gqursResponseStatus (\ s a -> s{_gqursResponseStatus = a});+gqursResponseStatus = lens _gqursResponseStatus (\ s a -> s{_gqursResponseStatus = a}) -- | The URL of the queue. gqursQueueURL :: Lens' GetQueueURLResponse Text-gqursQueueURL = lens _gqursQueueURL (\ s a -> s{_gqursQueueURL = a});+gqursQueueURL = lens _gqursQueueURL (\ s a -> s{_gqursQueueURL = a}) instance NFData GetQueueURLResponse where
gen/Network/AWS/SQS/ListDeadLetterSourceQueues.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.ListDeadLetterSourceQueues--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -70,7 +70,7 @@ -- | The URL of a dead-letter queue. Queue URLs are case-sensitive. ldlsqQueueURL :: Lens' ListDeadLetterSourceQueues Text-ldlsqQueueURL = lens _ldlsqQueueURL (\ s a -> s{_ldlsqQueueURL = a});+ldlsqQueueURL = lens _ldlsqQueueURL (\ s a -> s{_ldlsqQueueURL = a}) instance AWSRequest ListDeadLetterSourceQueues where type Rs ListDeadLetterSourceQueues =@@ -124,16 +124,16 @@ -> ListDeadLetterSourceQueuesResponse listDeadLetterSourceQueuesResponse pResponseStatus_ = ListDeadLetterSourceQueuesResponse'- {_ldlsqrsResponseStatus = pResponseStatus_, _ldlsqrsQueueURLs = mempty}+ {_ldlsqrsResponseStatus = pResponseStatus_, _ldlsqrsQueueURLs = mempty} -- | -- | The response status code. ldlsqrsResponseStatus :: Lens' ListDeadLetterSourceQueuesResponse Int-ldlsqrsResponseStatus = lens _ldlsqrsResponseStatus (\ s a -> s{_ldlsqrsResponseStatus = a});+ldlsqrsResponseStatus = lens _ldlsqrsResponseStatus (\ s a -> s{_ldlsqrsResponseStatus = a}) -- | A list of source queue URLs that have the @RedrivePolicy@ queue attribute configured with a dead-letter queue. ldlsqrsQueueURLs :: Lens' ListDeadLetterSourceQueuesResponse [Text]-ldlsqrsQueueURLs = lens _ldlsqrsQueueURLs (\ s a -> s{_ldlsqrsQueueURLs = a}) . _Coerce;+ldlsqrsQueueURLs = lens _ldlsqrsQueueURLs (\ s a -> s{_ldlsqrsQueueURLs = a}) . _Coerce instance NFData ListDeadLetterSourceQueuesResponse where
gen/Network/AWS/SQS/ListQueueTags.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.ListQueueTags--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -79,7 +79,7 @@ -- | The URL of the queue. lqtQueueURL :: Lens' ListQueueTags Text-lqtQueueURL = lens _lqtQueueURL (\ s a -> s{_lqtQueueURL = a});+lqtQueueURL = lens _lqtQueueURL (\ s a -> s{_lqtQueueURL = a}) instance AWSRequest ListQueueTags where type Rs ListQueueTags = ListQueueTagsResponse@@ -127,15 +127,15 @@ -> ListQueueTagsResponse listQueueTagsResponse pResponseStatus_ = ListQueueTagsResponse'- {_lqtrsTags = Nothing, _lqtrsResponseStatus = pResponseStatus_}+ {_lqtrsTags = Nothing, _lqtrsResponseStatus = pResponseStatus_} -- | The list of all tags added to the specified queue. lqtrsTags :: Lens' ListQueueTagsResponse (HashMap Text Text)-lqtrsTags = lens _lqtrsTags (\ s a -> s{_lqtrsTags = a}) . _Default . _Map;+lqtrsTags = lens _lqtrsTags (\ s a -> s{_lqtrsTags = a}) . _Default . _Map -- | -- | The response status code. lqtrsResponseStatus :: Lens' ListQueueTagsResponse Int-lqtrsResponseStatus = lens _lqtrsResponseStatus (\ s a -> s{_lqtrsResponseStatus = a});+lqtrsResponseStatus = lens _lqtrsResponseStatus (\ s a -> s{_lqtrsResponseStatus = a}) instance NFData ListQueueTagsResponse where
gen/Network/AWS/SQS/ListQueues.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.ListQueues--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -66,7 +66,7 @@ -- | 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});+lqQueueNamePrefix = lens _lqQueueNamePrefix (\ s a -> s{_lqQueueNamePrefix = a}) instance AWSRequest ListQueues where type Rs ListQueues = ListQueuesResponse@@ -118,15 +118,15 @@ -> ListQueuesResponse listQueuesResponse pResponseStatus_ = ListQueuesResponse'- {_lqrsQueueURLs = Nothing, _lqrsResponseStatus = pResponseStatus_}+ {_lqrsQueueURLs = Nothing, _lqrsResponseStatus = pResponseStatus_} -- | A list of queue URLs, up to 1,000 entries. lqrsQueueURLs :: Lens' ListQueuesResponse [Text]-lqrsQueueURLs = lens _lqrsQueueURLs (\ s a -> s{_lqrsQueueURLs = a}) . _Default . _Coerce;+lqrsQueueURLs = lens _lqrsQueueURLs (\ s a -> s{_lqrsQueueURLs = a}) . _Default . _Coerce -- | -- | The response status code. lqrsResponseStatus :: Lens' ListQueuesResponse Int-lqrsResponseStatus = lens _lqrsResponseStatus (\ s a -> s{_lqrsResponseStatus = a});+lqrsResponseStatus = lens _lqrsResponseStatus (\ s a -> s{_lqrsResponseStatus = a}) instance NFData ListQueuesResponse where
gen/Network/AWS/SQS/PurgeQueue.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.PurgeQueue--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -68,7 +68,7 @@ -- | The URL of the queue from which the @PurgeQueue@ action deletes messages. Queue URLs are case-sensitive. pqQueueURL :: Lens' PurgeQueue Text-pqQueueURL = lens _pqQueueURL (\ s a -> s{_pqQueueURL = a});+pqQueueURL = lens _pqQueueURL (\ s a -> s{_pqQueueURL = a}) instance AWSRequest PurgeQueue where type Rs PurgeQueue = PurgeQueueResponse
gen/Network/AWS/SQS/ReceiveMessage.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.ReceiveMessage--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -112,43 +112,43 @@ -> ReceiveMessage receiveMessage pQueueURL_ = ReceiveMessage'- { _rmReceiveRequestAttemptId = Nothing- , _rmVisibilityTimeout = Nothing- , _rmMessageAttributeNames = Nothing- , _rmWaitTimeSeconds = Nothing- , _rmAttributeNames = Nothing- , _rmMaxNumberOfMessages = Nothing- , _rmQueueURL = pQueueURL_- }+ { _rmReceiveRequestAttemptId = Nothing+ , _rmVisibilityTimeout = Nothing+ , _rmMessageAttributeNames = Nothing+ , _rmWaitTimeSeconds = Nothing+ , _rmAttributeNames = Nothing+ , _rmMaxNumberOfMessages = Nothing+ , _rmQueueURL = pQueueURL_+ } -- | 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/sqs-visibility-timeout.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 work until the original visibility timeout expires. As a result, delays might occur but the messages in the queue 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});+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});+rmVisibilityTimeout = lens _rmVisibilityTimeout (\ s a -> s{_rmVisibilityTimeout = a}) -- | The name of the message attribute, where /N/ is the index. * The name can contain alphanumeric characters and the underscore (@_@ ), hyphen (@-@ ), and period (@.@ ). * The name is case-sensitive and must be unique among all attribute names for the message. * The name must not start with AWS-reserved prefixes such as @AWS.@ or @Amazon.@ (or any casing variants). * The name must not start or end with a period (@.@ ), and it should not have periods in succession (@..@ ). * The name can be up to 256 characters long. 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 all message attributes starting with a prefix, for example @bar.*@ . rmMessageAttributeNames :: Lens' ReceiveMessage [Text]-rmMessageAttributeNames = lens _rmMessageAttributeNames (\ s a -> s{_rmMessageAttributeNames = a}) . _Default . _Coerce;+rmMessageAttributeNames = lens _rmMessageAttributeNames (\ s a -> s{_rmMessageAttributeNames = a}) . _Default . _Coerce -- | The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than @WaitTimeSeconds@ . If no messages are available and the wait time expires, the call returns successfully with an empty list of messages. rmWaitTimeSeconds :: Lens' ReceiveMessage (Maybe Int)-rmWaitTimeSeconds = lens _rmWaitTimeSeconds (\ s a -> s{_rmWaitTimeSeconds = a});+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 the message was first received from the queue (<http://en.wikipedia.org/wiki/Unix_time 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 (<http://en.wikipedia.org/wiki/Unix_time 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) are ignored: * @ApproximateNumberOfMessages@ * @ApproximateNumberOfMessagesDelayed@ * @ApproximateNumberOfMessagesNotVisible@ * @CreatedTimestamp@ * @ContentBasedDeduplication@ * @DelaySeconds@ * @FifoQueue@ * @LastModifiedTimestamp@ * @MaximumMessageSize@ * @MessageRetentionPeriod@ * @Policy@ * @QueueArn@ , * @ReceiveMessageWaitTimeSeconds@ * @RedrivePolicy@ * @VisibilityTimeout@ rmAttributeNames :: Lens' ReceiveMessage [MessageAttribute]-rmAttributeNames = lens _rmAttributeNames (\ s a -> s{_rmAttributeNames = a}) . _Default . _Coerce;+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 (however, fewer messages might be returned). Valid values are 1 to 10. Default is 1. rmMaxNumberOfMessages :: Lens' ReceiveMessage (Maybe Int)-rmMaxNumberOfMessages = lens _rmMaxNumberOfMessages (\ s a -> s{_rmMaxNumberOfMessages = a});+rmMaxNumberOfMessages = lens _rmMaxNumberOfMessages (\ s a -> s{_rmMaxNumberOfMessages = a}) -- | The URL of the Amazon SQS queue from which messages are received. Queue URLs are case-sensitive. rmQueueURL :: Lens' ReceiveMessage Text-rmQueueURL = lens _rmQueueURL (\ s a -> s{_rmQueueURL = a});+rmQueueURL = lens _rmQueueURL (\ s a -> s{_rmQueueURL = a}) instance AWSRequest ReceiveMessage where type Rs ReceiveMessage = ReceiveMessageResponse@@ -210,15 +210,15 @@ -> ReceiveMessageResponse receiveMessageResponse pResponseStatus_ = ReceiveMessageResponse'- {_rmrsMessages = Nothing, _rmrsResponseStatus = pResponseStatus_}+ {_rmrsMessages = Nothing, _rmrsResponseStatus = pResponseStatus_} -- | A list of messages. rmrsMessages :: Lens' ReceiveMessageResponse [Message]-rmrsMessages = lens _rmrsMessages (\ s a -> s{_rmrsMessages = a}) . _Default . _Coerce;+rmrsMessages = lens _rmrsMessages (\ s a -> s{_rmrsMessages = a}) . _Default . _Coerce -- | -- | The response status code. rmrsResponseStatus :: Lens' ReceiveMessageResponse Int-rmrsResponseStatus = lens _rmrsResponseStatus (\ s a -> s{_rmrsResponseStatus = a});+rmrsResponseStatus = lens _rmrsResponseStatus (\ s a -> s{_rmrsResponseStatus = a}) instance NFData ReceiveMessageResponse where
gen/Network/AWS/SQS/RemovePermission.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.RemovePermission--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -70,11 +70,11 @@ -- | The URL of the Amazon SQS queue from which permissions are removed. Queue URLs are case-sensitive. rpQueueURL :: Lens' RemovePermission Text-rpQueueURL = lens _rpQueueURL (\ s a -> s{_rpQueueURL = a});+rpQueueURL = lens _rpQueueURL (\ s a -> s{_rpQueueURL = a}) -- | The identification of the permission to remove. This is the label added using the @'AddPermission' @ action. rpLabel :: Lens' RemovePermission Text-rpLabel = lens _rpLabel (\ s a -> s{_rpLabel = a});+rpLabel = lens _rpLabel (\ s a -> s{_rpLabel = a}) instance AWSRequest RemovePermission where type Rs RemovePermission = RemovePermissionResponse
gen/Network/AWS/SQS/SendMessage.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.SendMessage--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -94,38 +94,38 @@ -> SendMessage sendMessage pQueueURL_ pMessageBody_ = SendMessage'- { _smMessageAttributes = Nothing- , _smDelaySeconds = Nothing- , _smMessageDeduplicationId = Nothing- , _smMessageGroupId = Nothing- , _smQueueURL = pQueueURL_- , _smMessageBody = pMessageBody_- }+ { _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/sqs-message-attributes.html#message-attributes-items-validation Message Attribute Items and Validation> in the /Amazon Simple Queue Service Developer Guide/ . smMessageAttributes :: Lens' SendMessage (HashMap Text MessageAttributeValue)-smMessageAttributes = lens _smMessageAttributes (\ s a -> s{_smMessageAttributes = a}) . _Default . _Map;+smMessageAttributes = lens _smMessageAttributes (\ s a -> s{_smMessageAttributes = a}) . _Default . _Map -- | The length of time, in seconds, for which to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive @DelaySeconds@ value become available for processing after the delay period 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});+smDelaySeconds = lens _smDelaySeconds (\ s a -> s{_smDelaySeconds = a}) -- | 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 Simple Queue Service 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. * 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});+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/ . /Important:/ @MessageGroupId@ is required for FIFO queues. You can't use it for Standard queues. smMessageGroupId :: Lens' SendMessage (Maybe Text)-smMessageGroupId = lens _smMessageGroupId (\ s a -> s{_smMessageGroupId = a});+smMessageGroupId = lens _smMessageGroupId (\ s a -> s{_smMessageGroupId = a}) -- | The URL of the Amazon SQS queue to which a message is sent. Queue URLs are case-sensitive. smQueueURL :: Lens' SendMessage Text-smQueueURL = lens _smQueueURL (\ s a -> s{_smQueueURL = a});+smQueueURL = lens _smQueueURL (\ s a -> s{_smQueueURL = a}) -- | The message to send. The maximum string size is 256 KB. /Important:/ A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed: @#x9@ | @#xA@ | @#xD@ | @#x20@ to @#xD7FF@ | @#xE000@ to @#xFFFD@ | @#x10000@ to @#x10FFFF@ Any characters not included in this list will be rejected. For more information, see the <http://www.w3.org/TR/REC-xml/#charsets W3C specification for characters> . smMessageBody :: Lens' SendMessage Text-smMessageBody = lens _smMessageBody (\ s a -> s{_smMessageBody = a});+smMessageBody = lens _smMessageBody (\ s a -> s{_smMessageBody = a}) instance AWSRequest SendMessage where type Rs SendMessage = SendMessageResponse@@ -196,32 +196,32 @@ -> SendMessageResponse sendMessageResponse pResponseStatus_ = SendMessageResponse'- { _smrsSequenceNumber = Nothing- , _smrsMessageId = Nothing- , _smrsMD5OfMessageBody = Nothing- , _smrsMD5OfMessageAttributes = Nothing- , _smrsResponseStatus = pResponseStatus_- }+ { _smrsSequenceNumber = Nothing+ , _smrsMessageId = Nothing+ , _smrsMD5OfMessageBody = Nothing+ , _smrsMD5OfMessageAttributes = Nothing+ , _smrsResponseStatus = pResponseStatus_+ } -- | This parameter applies only to FIFO (first-in-first-out) queues. The 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});+smrsSequenceNumber = lens _smrsSequenceNumber (\ s a -> s{_smrsSequenceNumber = a}) -- | An attribute containing the @MessageId@ of the message sent to the queue. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html Queue and Message Identifiers> in the /Amazon Simple Queue Service Developer Guide/ . smrsMessageId :: Lens' SendMessageResponse (Maybe Text)-smrsMessageId = lens _smrsMessageId (\ s a -> s{_smrsMessageId = a});+smrsMessageId = lens _smrsMessageId (\ s a -> s{_smrsMessageId = a}) -- | An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS 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});+smrsMD5OfMessageBody = lens _smrsMD5OfMessageBody (\ s a -> s{_smrsMD5OfMessageBody = a}) -- | An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS 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});+smrsMD5OfMessageAttributes = lens _smrsMD5OfMessageAttributes (\ s a -> s{_smrsMD5OfMessageAttributes = a}) -- | -- | The response status code. smrsResponseStatus :: Lens' SendMessageResponse Int-smrsResponseStatus = lens _smrsResponseStatus (\ s a -> s{_smrsResponseStatus = a});+smrsResponseStatus = lens _smrsResponseStatus (\ s a -> s{_smrsResponseStatus = a}) instance NFData SendMessageResponse where
gen/Network/AWS/SQS/SendMessageBatch.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.SendMessageBatch--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -85,11 +85,11 @@ -- | The URL of the Amazon SQS queue to which batched messages are sent. Queue URLs are case-sensitive. smbQueueURL :: Lens' SendMessageBatch Text-smbQueueURL = lens _smbQueueURL (\ s a -> s{_smbQueueURL = a});+smbQueueURL = lens _smbQueueURL (\ s a -> s{_smbQueueURL = a}) -- | A list of @'SendMessageBatchRequestEntry' @ items. smbEntries :: Lens' SendMessageBatch [SendMessageBatchRequestEntry]-smbEntries = lens _smbEntries (\ s a -> s{_smbEntries = a}) . _Coerce;+smbEntries = lens _smbEntries (\ s a -> s{_smbEntries = a}) . _Coerce instance AWSRequest SendMessageBatch where type Rs SendMessageBatch = SendMessageBatchResponse@@ -147,22 +147,22 @@ -> SendMessageBatchResponse sendMessageBatchResponse pResponseStatus_ = SendMessageBatchResponse'- { _smbrsResponseStatus = pResponseStatus_- , _smbrsSuccessful = mempty- , _smbrsFailed = mempty- }+ { _smbrsResponseStatus = pResponseStatus_+ , _smbrsSuccessful = mempty+ , _smbrsFailed = mempty+ } -- | -- | The response status code. smbrsResponseStatus :: Lens' SendMessageBatchResponse Int-smbrsResponseStatus = lens _smbrsResponseStatus (\ s a -> s{_smbrsResponseStatus = a});+smbrsResponseStatus = lens _smbrsResponseStatus (\ s a -> s{_smbrsResponseStatus = a}) -- | A list of @'SendMessageBatchResultEntry' @ items. smbrsSuccessful :: Lens' SendMessageBatchResponse [SendMessageBatchResultEntry]-smbrsSuccessful = lens _smbrsSuccessful (\ s a -> s{_smbrsSuccessful = a}) . _Coerce;+smbrsSuccessful = lens _smbrsSuccessful (\ s a -> s{_smbrsSuccessful = a}) . _Coerce -- | A list of @'BatchResultErrorEntry' @ items with error details about each message that can't be enqueued. smbrsFailed :: Lens' SendMessageBatchResponse [BatchResultErrorEntry]-smbrsFailed = lens _smbrsFailed (\ s a -> s{_smbrsFailed = a}) . _Coerce;+smbrsFailed = lens _smbrsFailed (\ s a -> s{_smbrsFailed = a}) . _Coerce instance NFData SendMessageBatchResponse where
gen/Network/AWS/SQS/SetQueueAttributes.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.SetQueueAttributes--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -69,11 +69,11 @@ -- | The URL of the Amazon SQS queue whose attributes are set. Queue URLs are case-sensitive. sqaQueueURL :: Lens' SetQueueAttributes Text-sqaQueueURL = lens _sqaQueueURL (\ s a -> s{_sqaQueueURL = a});+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 that the @SetQueueAttributes@ action uses: * @DelaySeconds@ - The length of time, in seconds, for which the delivery of all messages in the queue is delayed. Valid values: 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. Valid values: An integer from 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). The default is 262,144 (256 KiB). * @MessageRetentionPeriod@ - The length of time, in seconds, for which Amazon SQS retains a message. Valid values: An integer representing seconds, from 60 (1 minute) to 1,209,600 (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 length of time, in seconds, for which a @'ReceiveMessage' @ action waits for a message to arrive. Valid values: an integer from 0 to 20 (seconds). The default is 0. * @RedrivePolicy@ - The string that includes 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/sqs-dead-letter-queues.html Using Amazon SQS Dead-Letter Queues> in the /Amazon Simple Queue Service Developer Guide/ . * @deadLetterTargetArn@ - The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of @maxReceiveCount@ is exceeded. * @maxReceiveCount@ - The number of times a message is delivered to the source queue before being moved to the dead-letter queue. * @VisibilityTimeout@ - The visibility timeout for the queue. Valid values: an integer from 0 to 43,200 (12 hours). The default is 30. For more information about the visibility timeout, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html Visibility Timeout> in the /Amazon Simple Queue Service Developer Guide/ . The following attributes apply only to <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html server-side-encryption> : * @KmsMasterKeyId@ - The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms Key Terms> . While the alias of the AWS-managed CMK for Amazon SQS is always @alias/aws/sqs@ , the alias of a custom CMK can, for example, be @alias//MyAlias/ @ . For more examples, see <http://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters KeyId> in the /AWS Key Management Service API Reference/ . * @KmsDataKeyReusePeriodSeconds@ - The length of time, in seconds, for which Amazon SQS can reuse a <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys data key> to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). A shorter time period provides better security but results in more calls to KMS which might incur charges after Free Tier. For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work How Does the Data Key Reuse Period Work?> . 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 Simple Queue Service 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. * 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 (such as the following) are ignored: * @ApproximateNumberOfMessages@ * @ApproximateNumberOfMessagesDelayed@ * @ApproximateNumberOfMessagesNotVisible@ * @CreatedTimestamp@ * @LastModifiedTimestamp@ * @QueueArn@ sqaAttributes :: Lens' SetQueueAttributes (HashMap QueueAttributeName Text)-sqaAttributes = lens _sqaAttributes (\ s a -> s{_sqaAttributes = a}) . _Map;+sqaAttributes = lens _sqaAttributes (\ s a -> s{_sqaAttributes = a}) . _Map instance AWSRequest SetQueueAttributes where type Rs SetQueueAttributes =
gen/Network/AWS/SQS/TagQueue.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.TagQueue--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -80,11 +80,11 @@ -- | The URL of the queue. tqQueueURL :: Lens' TagQueue Text-tqQueueURL = lens _tqQueueURL (\ s a -> s{_tqQueueURL = a});+tqQueueURL = lens _tqQueueURL (\ s a -> s{_tqQueueURL = a}) -- | The list of tags to be added to the specified queue. tqTags :: Lens' TagQueue (HashMap Text Text)-tqTags = lens _tqTags (\ s a -> s{_tqTags = a}) . _Map;+tqTags = lens _tqTags (\ s a -> s{_tqTags = a}) . _Map instance AWSRequest TagQueue where type Rs TagQueue = TagQueueResponse
gen/Network/AWS/SQS/Types.hs view
@@ -4,7 +4,7 @@ -- | -- Module : Network.AWS.SQS.Types--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -120,24 +120,24 @@ sqs :: Service sqs = Service- { _svcAbbrev = "SQS"- , _svcSigner = v4- , _svcPrefix = "sqs"- , _svcVersion = "2012-11-05"- , _svcEndpoint = defaultEndpoint sqs- , _svcTimeout = Just 70- , _svcCheck = statusSuccess- , _svcError = parseXMLError "SQS"- , _svcRetry = retry- }+ { _svcAbbrev = "SQS"+ , _svcSigner = v4+ , _svcPrefix = "sqs"+ , _svcVersion = "2012-11-05"+ , _svcEndpoint = defaultEndpoint sqs+ , _svcTimeout = Just 70+ , _svcCheck = statusSuccess+ , _svcError = parseXMLError "SQS"+ , _svcRetry = retry+ } where retry = Exponential- { _retryBase = 5.0e-2- , _retryGrowth = 2- , _retryAttempts = 5- , _retryCheck = check- }+ { _retryBase = 5.0e-2+ , _retryGrowth = 2+ , _retryAttempts = 5+ , _retryCheck = check+ } check e | has (hasCode "ThrottledException" . hasStatus 400) e = Just "throttled_exception"@@ -148,6 +148,8 @@ Just "throttling_exception" | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling" | has (hasStatus 504) e = Just "gateway_timeout"+ | has (hasCode "RequestThrottledException" . hasStatus 400) e =+ Just "request_throttled_exception" | has (hasStatus 502) e = Just "bad_gateway" | has (hasStatus 503) e = Just "service_unavailable" | has (hasStatus 500) e = Just "general_server_error"
gen/Network/AWS/SQS/Types/Product.hs view
@@ -9,7 +9,7 @@ -- | -- Module : Network.AWS.SQS.Types.Product--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -52,28 +52,28 @@ -> BatchResultErrorEntry batchResultErrorEntry pId_ pSenderFault_ pCode_ = BatchResultErrorEntry'- { _breeMessage = Nothing- , _breeId = pId_- , _breeSenderFault = pSenderFault_- , _breeCode = pCode_- }+ { _breeMessage = Nothing+ , _breeId = pId_+ , _breeSenderFault = pSenderFault_+ , _breeCode = pCode_+ } -- | A message explaining why the action failed on this entry. breeMessage :: Lens' BatchResultErrorEntry (Maybe Text)-breeMessage = lens _breeMessage (\ s a -> s{_breeMessage = a});+breeMessage = lens _breeMessage (\ s a -> s{_breeMessage = a}) -- | The @Id@ of an entry in a batch request. breeId :: Lens' BatchResultErrorEntry Text-breeId = lens _breeId (\ s a -> s{_breeId = a});+breeId = lens _breeId (\ s a -> s{_breeId = a}) -- | Specifies whether the error happened due to the sender's fault. breeSenderFault :: Lens' BatchResultErrorEntry Bool-breeSenderFault = lens _breeSenderFault (\ s a -> s{_breeSenderFault = a});+breeSenderFault = lens _breeSenderFault (\ s a -> s{_breeSenderFault = a}) -- | An error code representing why the action failed on this entry. breeCode :: Lens' BatchResultErrorEntry Text-breeCode = lens _breeCode (\ s a -> s{_breeCode = a});+breeCode = lens _breeCode (\ s a -> s{_breeCode = a}) instance FromXML BatchResultErrorEntry where parseXML x@@ -121,23 +121,23 @@ -> ChangeMessageVisibilityBatchRequestEntry changeMessageVisibilityBatchRequestEntry pId_ pReceiptHandle_ = ChangeMessageVisibilityBatchRequestEntry'- { _cVisibilityTimeout = Nothing- , _cId = pId_- , _cReceiptHandle = pReceiptHandle_- }+ { _cVisibilityTimeout = Nothing+ , _cId = pId_+ , _cReceiptHandle = pReceiptHandle_+ } -- | The new value (in seconds) for the message's visibility timeout. cVisibilityTimeout :: Lens' ChangeMessageVisibilityBatchRequestEntry (Maybe Int)-cVisibilityTimeout = lens _cVisibilityTimeout (\ s a -> s{_cVisibilityTimeout = a});+cVisibilityTimeout = lens _cVisibilityTimeout (\ s a -> s{_cVisibilityTimeout = a}) -- | An identifier for this particular receipt handle used to communicate the result. cId :: Lens' ChangeMessageVisibilityBatchRequestEntry Text-cId = lens _cId (\ s a -> s{_cId = a});+cId = lens _cId (\ s a -> s{_cId = a}) -- | A receipt handle. cReceiptHandle :: Lens' ChangeMessageVisibilityBatchRequestEntry Text-cReceiptHandle = lens _cReceiptHandle (\ s a -> s{_cReceiptHandle = a});+cReceiptHandle = lens _cReceiptHandle (\ s a -> s{_cReceiptHandle = a}) instance Hashable ChangeMessageVisibilityBatchRequestEntry@@ -179,7 +179,7 @@ -- | Represents a message whose visibility timeout has been changed successfully. cmvbreId :: Lens' ChangeMessageVisibilityBatchResultEntry Text-cmvbreId = lens _cmvbreId (\ s a -> s{_cmvbreId = a});+cmvbreId = lens _cmvbreId (\ s a -> s{_cmvbreId = a}) instance FromXML ChangeMessageVisibilityBatchResultEntry@@ -220,16 +220,16 @@ -> DeleteMessageBatchRequestEntry deleteMessageBatchRequestEntry pId_ pReceiptHandle_ = DeleteMessageBatchRequestEntry'- {_dmbreId = pId_, _dmbreReceiptHandle = pReceiptHandle_}+ {_dmbreId = pId_, _dmbreReceiptHandle = pReceiptHandle_} -- | An identifier for this particular receipt handle. This is used to communicate the result. dmbreId :: Lens' DeleteMessageBatchRequestEntry Text-dmbreId = lens _dmbreId (\ s a -> s{_dmbreId = a});+dmbreId = lens _dmbreId (\ s a -> s{_dmbreId = a}) -- | A receipt handle. dmbreReceiptHandle :: Lens' DeleteMessageBatchRequestEntry Text-dmbreReceiptHandle = lens _dmbreReceiptHandle (\ s a -> s{_dmbreReceiptHandle = a});+dmbreReceiptHandle = lens _dmbreReceiptHandle (\ s a -> s{_dmbreReceiptHandle = a}) instance Hashable DeleteMessageBatchRequestEntry where@@ -266,7 +266,7 @@ -- | Represents a successfully deleted message. dId :: Lens' DeleteMessageBatchResultEntry Text-dId = lens _dId (\ s a -> s{_dId = a});+dId = lens _dId (\ s a -> s{_dId = a}) instance FromXML DeleteMessageBatchResultEntry where parseXML x@@ -313,43 +313,43 @@ :: Message message = Message'- { _mMessageAttributes = Nothing- , _mMD5OfBody = Nothing- , _mBody = Nothing- , _mAttributes = Nothing- , _mReceiptHandle = Nothing- , _mMessageId = Nothing- , _mMD5OfMessageAttributes = Nothing- }+ { _mMessageAttributes = Nothing+ , _mMD5OfBody = Nothing+ , _mBody = Nothing+ , _mAttributes = Nothing+ , _mReceiptHandle = Nothing+ , _mMessageId = Nothing+ , _mMD5OfMessageAttributes = Nothing+ } -- | Each message attribute consists of a @Name@ , @Type@ , and @Value@ . For more information, see <http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-items-validation Message Attribute Items and Validation> in the /Amazon Simple Queue Service Developer Guide/ . mMessageAttributes :: Lens' Message (HashMap Text MessageAttributeValue)-mMessageAttributes = lens _mMessageAttributes (\ s a -> s{_mMessageAttributes = a}) . _Default . _Map;+mMessageAttributes = lens _mMessageAttributes (\ s a -> s{_mMessageAttributes = a}) . _Default . _Map -- | An MD5 digest of the non-URL-encoded message body string. mMD5OfBody :: Lens' Message (Maybe Text)-mMD5OfBody = lens _mMD5OfBody (\ s a -> s{_mMD5OfBody = a});+mMD5OfBody = lens _mMD5OfBody (\ s a -> s{_mMD5OfBody = a}) -- | The message's contents (not URL-encoded). mBody :: Lens' Message (Maybe Text)-mBody = lens _mBody (\ s a -> s{_mBody = a});+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. mAttributes :: Lens' Message (HashMap MessageAttribute Text)-mAttributes = lens _mAttributes (\ s a -> s{_mAttributes = a}) . _Default . _Map;+mAttributes = lens _mAttributes (\ s a -> s{_mAttributes = a}) . _Default . _Map -- | 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. mReceiptHandle :: Lens' Message (Maybe Text)-mReceiptHandle = lens _mReceiptHandle (\ s a -> s{_mReceiptHandle = a});+mReceiptHandle = lens _mReceiptHandle (\ s a -> s{_mReceiptHandle = a}) -- | A unique identifier for the message. A @MessageId@ is considered unique across all AWS accounts for an extended period of time. mMessageId :: Lens' Message (Maybe Text)-mMessageId = lens _mMessageId (\ s a -> s{_mMessageId = a});+mMessageId = lens _mMessageId (\ s a -> s{_mMessageId = a}) -- | An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS 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});+mMD5OfMessageAttributes = lens _mMD5OfMessageAttributes (\ s a -> s{_mMD5OfMessageAttributes = a}) instance FromXML Message where parseXML x@@ -401,33 +401,33 @@ -> MessageAttributeValue messageAttributeValue pDataType_ = MessageAttributeValue'- { _mavBinaryValue = Nothing- , _mavStringListValues = Nothing- , _mavStringValue = Nothing- , _mavBinaryListValues = Nothing- , _mavDataType = pDataType_- }+ { _mavBinaryValue = Nothing+ , _mavStringListValues = Nothing+ , _mavStringValue = Nothing+ , _mavBinaryListValues = Nothing+ , _mavDataType = pDataType_+ } -- | Binary type attributes can store any binary data, such as 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;+mavBinaryValue = lens _mavBinaryValue (\ s a -> s{_mavBinaryValue = a}) . mapping _Base64 -- | Not implemented. Reserved for future use. mavStringListValues :: Lens' MessageAttributeValue [Text]-mavStringListValues = lens _mavStringListValues (\ s a -> s{_mavStringListValues = a}) . _Default . _Coerce;+mavStringListValues = lens _mavStringListValues (\ s a -> s{_mavStringListValues = a}) . _Default . _Coerce -- | Strings are Unicode with UTF-8 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});+mavStringValue = lens _mavStringValue (\ s a -> s{_mavStringValue = a}) -- | Not implemented. Reserved for future use. mavBinaryListValues :: Lens' MessageAttributeValue [ByteString]-mavBinaryListValues = lens _mavBinaryListValues (\ s a -> s{_mavBinaryListValues = a}) . _Default . _Coerce;+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/sqs-message-attributes.html#message-attributes-data-types-validation Message Attribute Data Types and Validation> in the /Amazon Simple Queue Service Developer Guide/ . mavDataType :: Lens' MessageAttributeValue Text-mavDataType = lens _mavDataType (\ s a -> s{_mavDataType = a});+mavDataType = lens _mavDataType (\ s a -> s{_mavDataType = a}) instance FromXML MessageAttributeValue where parseXML x@@ -496,38 +496,38 @@ -> SendMessageBatchRequestEntry sendMessageBatchRequestEntry pId_ pMessageBody_ = SendMessageBatchRequestEntry'- { _sMessageAttributes = Nothing- , _sDelaySeconds = Nothing- , _sMessageDeduplicationId = Nothing- , _sMessageGroupId = Nothing- , _sId = pId_- , _sMessageBody = pMessageBody_- }+ { _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/sqs-message-attributes.html#message-attributes-items-validation Message Attribute Items and Validation> in the /Amazon Simple Queue Service Developer Guide/ . sMessageAttributes :: Lens' SendMessageBatchRequestEntry (HashMap Text MessageAttributeValue)-sMessageAttributes = lens _sMessageAttributes (\ s a -> s{_sMessageAttributes = a}) . _Default . _Map;+sMessageAttributes = lens _sMessageAttributes (\ s a -> s{_sMessageAttributes = a}) . _Default . _Map -- | The length of time, in seconds, for which a specific message is delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive @DelaySeconds@ value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue is applied. sDelaySeconds :: Lens' SendMessageBatchRequestEntry (Maybe Int)-sDelaySeconds = lens _sDelaySeconds (\ s a -> s{_sDelaySeconds = a});+sDelaySeconds = lens _sDelaySeconds (\ s a -> s{_sDelaySeconds = a}) -- | 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 Simple Queue Service 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. * 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});+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/ . /Important:/ @MessageGroupId@ is required for FIFO queues. You can't use it for Standard queues. sMessageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text)-sMessageGroupId = lens _sMessageGroupId (\ s a -> s{_sMessageGroupId = a});+sMessageGroupId = lens _sMessageGroupId (\ s a -> s{_sMessageGroupId = a}) -- | An identifier for a message in this batch used to communicate the result. sId :: Lens' SendMessageBatchRequestEntry Text-sId = lens _sId (\ s a -> s{_sId = a});+sId = lens _sId (\ s a -> s{_sId = a}) -- | The body of the message. sMessageBody :: Lens' SendMessageBatchRequestEntry Text-sMessageBody = lens _sMessageBody (\ s a -> s{_sMessageBody = a});+sMessageBody = lens _sMessageBody (\ s a -> s{_sMessageBody = a}) instance Hashable SendMessageBatchRequestEntry where @@ -578,33 +578,33 @@ -> SendMessageBatchResultEntry sendMessageBatchResultEntry pId_ pMessageId_ pMD5OfMessageBody_ = SendMessageBatchResultEntry'- { _smbreSequenceNumber = Nothing- , _smbreMD5OfMessageAttributes = Nothing- , _smbreId = pId_- , _smbreMessageId = pMessageId_- , _smbreMD5OfMessageBody = pMD5OfMessageBody_- }+ { _smbreSequenceNumber = Nothing+ , _smbreMD5OfMessageAttributes = Nothing+ , _smbreId = pId_+ , _smbreMessageId = pMessageId_+ , _smbreMD5OfMessageBody = pMD5OfMessageBody_+ } -- | This parameter applies only to FIFO (first-in-first-out) queues. The 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});+smbreSequenceNumber = lens _smbreSequenceNumber (\ s a -> s{_smbreSequenceNumber = a}) -- | An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS 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});+smbreMD5OfMessageAttributes = lens _smbreMD5OfMessageAttributes (\ s a -> s{_smbreMD5OfMessageAttributes = a}) -- | An identifier for the message in this batch. smbreId :: Lens' SendMessageBatchResultEntry Text-smbreId = lens _smbreId (\ s a -> s{_smbreId = a});+smbreId = lens _smbreId (\ s a -> s{_smbreId = a}) -- | An identifier for the message. smbreMessageId :: Lens' SendMessageBatchResultEntry Text-smbreMessageId = lens _smbreMessageId (\ s a -> s{_smbreMessageId = a});+smbreMessageId = lens _smbreMessageId (\ s a -> s{_smbreMessageId = a}) -- | An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS 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});+smbreMD5OfMessageBody = lens _smbreMD5OfMessageBody (\ s a -> s{_smbreMD5OfMessageBody = a}) instance FromXML SendMessageBatchResultEntry where parseXML x
gen/Network/AWS/SQS/Types/Sum.hs view
@@ -9,7 +9,7 @@ -- | -- Module : Network.AWS.SQS.Types.Sum--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated
gen/Network/AWS/SQS/UntagQueue.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.SQS.UntagQueue--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -81,11 +81,11 @@ -- | The URL of the queue. uqQueueURL :: Lens' UntagQueue Text-uqQueueURL = lens _uqQueueURL (\ s a -> s{_uqQueueURL = a});+uqQueueURL = lens _uqQueueURL (\ s a -> s{_uqQueueURL = a}) -- | The list of tags to be removed from the specified queue. uqTagKeys :: Lens' UntagQueue [Text]-uqTagKeys = lens _uqTagKeys (\ s a -> s{_uqTagKeys = a}) . _Coerce;+uqTagKeys = lens _uqTagKeys (\ s a -> s{_uqTagKeys = a}) . _Coerce instance AWSRequest UntagQueue where type Rs UntagQueue = UntagQueueResponse
gen/Network/AWS/SQS/Waiters.hs view
@@ -7,7 +7,7 @@ -- | -- Module : Network.AWS.SQS.Waiters--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated
test/Main.hs view
@@ -2,7 +2,7 @@ -- | -- Module : Main--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated
test/Test/AWS/Gen/SQS.hs view
@@ -5,7 +5,7 @@ -- | -- Module : Test.AWS.Gen.SQS--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated
test/Test/AWS/SQS.hs view
@@ -2,7 +2,7 @@ -- | -- Module : Test.AWS.SQS--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : experimental
test/Test/AWS/SQS/Internal.hs view
@@ -2,7 +2,7 @@ {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- Module : Test.AWS.SQS.Internal--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : This Source Code Form is subject to the terms of -- the Mozilla Public License, v. 2.0. -- A copy of the MPL can be found in the LICENSE file or