-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Amazon Simple Queue Service SDK.
--   
--   The types from this library are intended to be used with
--   <a>amazonka</a>, which provides mechanisms for specifying AuthN/AuthZ
--   information, sending requests, and receiving responses.
--   
--   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 <a>lens</a> or <a>lens-family-core</a>.
--   
--   See <a>Network.AWS.SQS</a> or <a>the AWS documentation</a> to get
--   started.
@package amazonka-sqs
@version 1.4.5


module Network.AWS.SQS.Types

-- | API version <tt>2012-11-05</tt> of the Amazon Simple Queue Service SDK
--   configuration.
sqs :: Service

-- | The <tt>Id</tt> of a batch entry in a batch request doesn't abide by
--   the specification.
_InvalidBatchEntryId :: AsError a => Getting (First ServiceError) a ServiceError

-- | Batch request contains more number of entries than permissible.
_TooManyEntriesInBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError

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

-- | The queue referred to doesn't exist.
_QueueDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError

-- | The attribute referred to doesn't exist.
_InvalidAttributeName :: AsError a => Getting (First ServiceError) a ServiceError

-- | Error code 400. Unsupported operation.
_UnsupportedOperation :: AsError a => Getting (First ServiceError) a ServiceError

-- | The message contains characters outside the allowed set.
_InvalidMessageContents :: AsError a => Getting (First ServiceError) a ServiceError

-- | The length of all the messages put together is more than the limit.
_BatchRequestTooLong :: AsError a => Getting (First ServiceError) a ServiceError

-- | 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. <tt>AddPermission</tt> returns this
--   error if the maximum number of permissions for the queue has already
--   been reached.
_OverLimit :: AsError a => Getting (First ServiceError) a ServiceError

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

-- | Indicates that the specified queue previously received a
--   <tt>PurgeQueue</tt> 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

-- | The receipt handle is not valid for the current version.
_InvalidIdFormat :: AsError a => Getting (First ServiceError) a ServiceError

-- | The receipt handle provided is not valid.
_ReceiptHandleIsInvalid :: AsError a => Getting (First ServiceError) a ServiceError

-- | Batch request doesn't contain an entry.
_EmptyBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError

-- | Two or more batch entries have the same <tt>Id</tt> in the request.
_BatchEntryIdsNotDistinct :: AsError a => Getting (First ServiceError) a ServiceError

-- | The message referred to is not in flight.
_MessageNotInflight :: AsError a => Getting (First ServiceError) a ServiceError
data MessageAttribute
All :: MessageAttribute
ApproximateFirstReceiveTimestamp :: MessageAttribute
ApproximateReceiveCount :: MessageAttribute
SenderId :: MessageAttribute
SentTimestamp :: MessageAttribute
data QueueAttributeName
QANAll :: QueueAttributeName
QANApproximateNumberOfMessages :: QueueAttributeName
QANApproximateNumberOfMessagesDelayed :: QueueAttributeName
QANApproximateNumberOfMessagesNotVisible :: QueueAttributeName
QANContentBasedDeduplication :: QueueAttributeName
QANCreatedTimestamp :: QueueAttributeName
QANDelaySeconds :: QueueAttributeName
QANFifoQueue :: QueueAttributeName
QANLastModifiedTimestamp :: QueueAttributeName
QANMaximumMessageSize :: QueueAttributeName
QANMessageRetentionPeriod :: QueueAttributeName
QANPolicy :: QueueAttributeName
QANQueueARN :: QueueAttributeName
QANReceiveMessageWaitTimeSeconds :: QueueAttributeName
QANRedrivePolicy :: QueueAttributeName
QANVisibilityTimeout :: QueueAttributeName

-- | 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.
--   
--   <i>See:</i> <a>batchResultErrorEntry</a> smart constructor.
data BatchResultErrorEntry

-- | Creates a value of <a>BatchResultErrorEntry</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>breeMessage</a> - A message explaining why the action failed on
--   this entry.</li>
--   <li><a>breeId</a> - The id of an entry in a batch request.</li>
--   <li><a>breeSenderFault</a> - Whether the error happened due to the
--   sender's fault.</li>
--   <li><a>breeCode</a> - An error code representing why the action failed
--   on this entry.</li>
--   </ul>
batchResultErrorEntry :: Text -> Bool -> Text -> BatchResultErrorEntry

-- | A message explaining why the action failed on this entry.
breeMessage :: Lens' BatchResultErrorEntry (Maybe Text)

-- | The id of an entry in a batch request.
breeId :: Lens' BatchResultErrorEntry Text

-- | Whether the error happened due to the sender's fault.
breeSenderFault :: Lens' BatchResultErrorEntry Bool

-- | An error code representing why the action failed on this entry.
breeCode :: Lens' BatchResultErrorEntry Text

-- | Encloses a receipt handle and an entry id for each message in
--   <tt>ChangeMessageVisibilityBatch</tt> .
--   
--   <i>Important:</i> All of the following parameters are list parameters
--   that must be prefixed with
--   <tt>ChangeMessageVisibilityBatchRequestEntry.n</tt> , where <tt>n</tt>
--   is an integer value starting with 1. For example, a parameter list for
--   this action might look like this:
--   
--   <pre>
--   &amp;amp;ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2
--   </pre>
--   
--   <pre>
--   &amp;amp;ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=<a>replaceable</a>Your_Receipt_Handle<a>/replaceable</a>
--   </pre>
--   
--   <pre>
--   &amp;amp;ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45
--   </pre>
--   
--   <i>See:</i> <a>changeMessageVisibilityBatchRequestEntry</a> smart
--   constructor.
data ChangeMessageVisibilityBatchRequestEntry

-- | Creates a value of <a>ChangeMessageVisibilityBatchRequestEntry</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cVisibilityTimeout</a> - The new value (in seconds) for the
--   message's visibility timeout.</li>
--   <li><a>cId</a> - An identifier for this particular receipt handle.
--   This is used to communicate the result. Note that the <tt>Id</tt> s of
--   a batch request need to be unique within the request.</li>
--   <li><a>cReceiptHandle</a> - A receipt handle.</li>
--   </ul>
changeMessageVisibilityBatchRequestEntry :: Text -> Text -> ChangeMessageVisibilityBatchRequestEntry

-- | The new value (in seconds) for the message's visibility timeout.
cVisibilityTimeout :: Lens' ChangeMessageVisibilityBatchRequestEntry (Maybe Int)

-- | An identifier for this particular receipt handle. This is used to
--   communicate the result. Note that the <tt>Id</tt> s of a batch request
--   need to be unique within the request.
cId :: Lens' ChangeMessageVisibilityBatchRequestEntry Text

-- | A receipt handle.
cReceiptHandle :: Lens' ChangeMessageVisibilityBatchRequestEntry Text

-- | Encloses the id of an entry in <tt>ChangeMessageVisibilityBatch</tt> .
--   
--   <i>See:</i> <a>changeMessageVisibilityBatchResultEntry</a> smart
--   constructor.
data ChangeMessageVisibilityBatchResultEntry

-- | Creates a value of <a>ChangeMessageVisibilityBatchResultEntry</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cmvbreId</a> - Represents a message whose visibility timeout
--   has been changed successfully.</li>
--   </ul>
changeMessageVisibilityBatchResultEntry :: Text -> ChangeMessageVisibilityBatchResultEntry

-- | Represents a message whose visibility timeout has been changed
--   successfully.
cmvbreId :: Lens' ChangeMessageVisibilityBatchResultEntry Text

-- | Encloses a receipt handle and an identifier for it.
--   
--   <i>See:</i> <a>deleteMessageBatchRequestEntry</a> smart constructor.
data DeleteMessageBatchRequestEntry

-- | Creates a value of <a>DeleteMessageBatchRequestEntry</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dmbreId</a> - An identifier for this particular receipt handle.
--   This is used to communicate the result. Note that the <tt>Id</tt> s of
--   a batch request need to be unique within the request.</li>
--   <li><a>dmbreReceiptHandle</a> - A receipt handle.</li>
--   </ul>
deleteMessageBatchRequestEntry :: Text -> Text -> DeleteMessageBatchRequestEntry

-- | An identifier for this particular receipt handle. This is used to
--   communicate the result. Note that the <tt>Id</tt> s of a batch request
--   need to be unique within the request.
dmbreId :: Lens' DeleteMessageBatchRequestEntry Text

-- | A receipt handle.
dmbreReceiptHandle :: Lens' DeleteMessageBatchRequestEntry Text

-- | Encloses the id an entry in <tt>DeleteMessageBatch</tt> .
--   
--   <i>See:</i> <a>deleteMessageBatchResultEntry</a> smart constructor.
data DeleteMessageBatchResultEntry

-- | Creates a value of <a>DeleteMessageBatchResultEntry</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dId</a> - Represents a successfully deleted message.</li>
--   </ul>
deleteMessageBatchResultEntry :: Text -> DeleteMessageBatchResultEntry

-- | Represents a successfully deleted message.
dId :: Lens' DeleteMessageBatchResultEntry Text

-- | An Amazon SQS message.
--   
--   <i>See:</i> <a>message</a> smart constructor.
data Message

-- | Creates a value of <a>Message</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>mMessageAttributes</a> - Each message attribute consists of a
--   Name, Type, and Value. For more information, see <a>Message Attribute
--   Items</a> in the <i>Amazon SQS Developer Guide</i> .</li>
--   <li><a>mMD5OfBody</a> - An MD5 digest of the non-URL-encoded message
--   body string.</li>
--   <li><a>mBody</a> - The message's contents (not URL-encoded).</li>
--   <li><a>mAttributes</a> - <tt>SenderId</tt> , <tt>SentTimestamp</tt> ,
--   <tt>ApproximateReceiveCount</tt> , and<i>or
--   <tt>ApproximateFirstReceiveTimestamp</tt> . <tt>SentTimestamp</tt> and
--   <tt>ApproximateFirstReceiveTimestamp</tt> are each returned as an
--   integer representing the
--   &lt;http:</i><i>en.wikipedia.org</i>wiki/Unix_time epoch time&gt; in
--   milliseconds.</li>
--   <li><a>mReceiptHandle</a> - 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.</li>
--   <li><a>mMessageId</a> - A unique identifier for the message. Message
--   IDs are considered unique across all AWS accounts for an extended
--   period of time.</li>
--   <li><a>mMD5OfMessageAttributes</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, see <a>RFC1321</a> .</li>
--   </ul>
message :: Message

-- | Each message attribute consists of a Name, Type, and Value. For more
--   information, see <a>Message Attribute Items</a> in the <i>Amazon SQS
--   Developer Guide</i> .
mMessageAttributes :: Lens' Message (HashMap Text MessageAttributeValue)

-- | An MD5 digest of the non-URL-encoded message body string.
mMD5OfBody :: Lens' Message (Maybe Text)

-- | The message's contents (not URL-encoded).
mBody :: Lens' Message (Maybe Text)

-- | <tt>SenderId</tt> , <tt>SentTimestamp</tt> ,
--   <tt>ApproximateReceiveCount</tt> , and<i>or
--   <tt>ApproximateFirstReceiveTimestamp</tt> . <tt>SentTimestamp</tt> and
--   <tt>ApproximateFirstReceiveTimestamp</tt> are each returned as an
--   integer representing the
--   &lt;http:</i><i>en.wikipedia.org</i>wiki/Unix_time epoch time&gt; in
--   milliseconds.
mAttributes :: Lens' Message (HashMap MessageAttribute Text)

-- | 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)

-- | A unique identifier for the message. Message IDs are considered unique
--   across all AWS accounts for an extended period of time.
mMessageId :: Lens' Message (Maybe Text)

-- | 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 <a>RFC1321</a> .
mMD5OfMessageAttributes :: Lens' Message (Maybe Text)

-- | 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 <tt>SendMessage</tt> .
--   
--   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).
--   
--   <i>See:</i> <a>messageAttributeValue</a> smart constructor.
data MessageAttributeValue

-- | Creates a value of <a>MessageAttributeValue</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>mavBinaryValue</a> - Binary type attributes can store any
--   binary data, for example, compressed data, encrypted data, or
--   images.-- <i>Note:</i> This <tt>Lens</tt> automatically encodes and
--   decodes Base64 data. The underlying isomorphism will encode to Base64
--   representation during serialisation, and decode from Base64
--   representation during deserialisation. This <tt>Lens</tt> accepts and
--   returns only raw unencoded data.</li>
--   <li><a>mavStringListValues</a> - Not implemented. Reserved for future
--   use.</li>
--   <li><a>mavStringValue</a> - Strings are Unicode with UTF8 binary
--   encoding. For a list of code values, see <a>ASCII Printable
--   Characters</a> .</li>
--   <li><a>mavBinaryListValues</a> - Not implemented. Reserved for future
--   use.</li>
--   <li><a>mavDataType</a> - 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 <a>Message Attribute Data Types</a> in the <i>Amazon
--   SQS Developer Guide</i> .</li>
--   </ul>
messageAttributeValue :: Text -> MessageAttributeValue

-- | Binary type attributes can store any binary data, for example,
--   compressed data, encrypted data, or images.-- <i>Note:</i> This
--   <tt>Lens</tt> automatically encodes and decodes Base64 data. The
--   underlying isomorphism will encode to Base64 representation during
--   serialisation, and decode from Base64 representation during
--   deserialisation. This <tt>Lens</tt> accepts and returns only raw
--   unencoded data.
mavBinaryValue :: Lens' MessageAttributeValue (Maybe ByteString)

-- | Not implemented. Reserved for future use.
mavStringListValues :: Lens' MessageAttributeValue [Text]

-- | Strings are Unicode with UTF8 binary encoding. For a list of code
--   values, see <a>ASCII Printable Characters</a> .
mavStringValue :: Lens' MessageAttributeValue (Maybe Text)

-- | Not implemented. Reserved for future use.
mavBinaryListValues :: Lens' MessageAttributeValue [ByteString]

-- | 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 <a>Message
--   Attribute Data Types</a> in the <i>Amazon SQS Developer Guide</i> .
mavDataType :: Lens' MessageAttributeValue Text

-- | Contains the details of a single Amazon SQS message along with a
--   <tt>Id</tt> .
--   
--   <i>See:</i> <a>sendMessageBatchRequestEntry</a> smart constructor.
data SendMessageBatchRequestEntry

-- | Creates a value of <a>SendMessageBatchRequestEntry</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sMessageAttributes</a> - Each message attribute consists of a
--   Name, Type, and Value. For more information, see <a>Message Attribute
--   Items</a> in the <i>Amazon SQS Developer Guide</i> .</li>
--   <li><a>sDelaySeconds</a> - The number of seconds (0 to 900 - 15
--   minutes) to delay a specific message. Messages with a positive
--   <tt>DelaySeconds</tt> 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.</li>
--   <li><a>sMessageDeduplicationId</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 <tt>MessageDeduplicationId</tt> is sent
--   successfully, subsequent messages with the same
--   <tt>MessageDeduplicationId</tt> are accepted successfully but aren't
--   delivered. For more information, see <a>Exactly-Once Processing</a> in
--   the <i>Amazon SQS Developer Guide</i> . * Every message must have a
--   unique <tt>MessageDeduplicationId</tt> , * You may provide a
--   <tt>MessageDeduplicationId</tt> explicitly. * If you aren't able to
--   provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , the two messages are treated as
--   duplicates and only one copy of the message is delivered. The length
--   of <tt>MessageDeduplicationId</tt> is 128 characters.
--   <tt>MessageDeduplicationId</tt> can contain alphanumeric characters
--   (<tt>a-z</tt> , <tt>A-Z</tt> , <tt>0-9</tt> ) and punctuation
--   (<tt>!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~<tt> ). For best
--   practices of using </tt>MessageDeduplicationId@ , see <a>Using the
--   MessageDeduplicationId Property</a> in the <i>Amazon Simple Queue
--   Service Developer Guide</i> .</li>
--   <li><a>sMessageGroupId</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
--   <tt>MessageGroupId</tt> 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 <tt>MessageGroupId</tt> with a message. If
--   you don't provide a <tt>MessageGroupId</tt> , the action fails. *
--   <tt>ReceiveMessage</tt> might return messages with multiple
--   <tt>MessageGroupId</tt> values. For each <tt>MessageGroupId</tt> , the
--   messages are sorted by time sent. The caller can't specify a
--   <tt>MessageGroupId</tt> . The length of <tt>MessageGroupId</tt> is 128
--   characters. Valid values are alphanumeric characters and punctuation
--   <tt>(!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~)<tt> . For best
--   practices of using </tt>MessageGroupId@ , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> .</li>
--   <li><a>sId</a> - An identifier for the message in this batch. This is
--   used to communicate the result. Note that the <tt>Id</tt> s of a batch
--   request need to be unique within the request.</li>
--   <li><a>sMessageBody</a> - Body of the message.</li>
--   </ul>
sendMessageBatchRequestEntry :: Text -> Text -> SendMessageBatchRequestEntry

-- | Each message attribute consists of a Name, Type, and Value. For more
--   information, see <a>Message Attribute Items</a> in the <i>Amazon SQS
--   Developer Guide</i> .
sMessageAttributes :: Lens' SendMessageBatchRequestEntry (HashMap Text MessageAttributeValue)

-- | The number of seconds (0 to 900 - 15 minutes) to delay a specific
--   message. Messages with a positive <tt>DelaySeconds</tt> 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)

-- | 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
--   <tt>MessageDeduplicationId</tt> is sent successfully, subsequent
--   messages with the same <tt>MessageDeduplicationId</tt> are accepted
--   successfully but aren't delivered. For more information, see
--   <a>Exactly-Once Processing</a> in the <i>Amazon SQS Developer
--   Guide</i> . * Every message must have a unique
--   <tt>MessageDeduplicationId</tt> , * You may provide a
--   <tt>MessageDeduplicationId</tt> explicitly. * If you aren't able to
--   provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , the two messages are treated as
--   duplicates and only one copy of the message is delivered. The length
--   of <tt>MessageDeduplicationId</tt> is 128 characters.
--   <tt>MessageDeduplicationId</tt> can contain alphanumeric characters
--   (<tt>a-z</tt> , <tt>A-Z</tt> , <tt>0-9</tt> ) and punctuation
--   (<tt>!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~<tt> ). For best
--   practices of using </tt>MessageDeduplicationId@ , see <a>Using the
--   MessageDeduplicationId Property</a> in the <i>Amazon Simple Queue
--   Service Developer Guide</i> .
sMessageDeduplicationId :: Lens' SendMessageBatchRequestEntry (Maybe Text)

-- | 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 <tt>MessageGroupId</tt> 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
--   <tt>MessageGroupId</tt> with a message. If you don't provide a
--   <tt>MessageGroupId</tt> , the action fails. * <tt>ReceiveMessage</tt>
--   might return messages with multiple <tt>MessageGroupId</tt> values.
--   For each <tt>MessageGroupId</tt> , the messages are sorted by time
--   sent. The caller can't specify a <tt>MessageGroupId</tt> . The length
--   of <tt>MessageGroupId</tt> is 128 characters. Valid values are
--   alphanumeric characters and punctuation
--   <tt>(!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~)<tt> . For best
--   practices of using </tt>MessageGroupId@ , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> .
sMessageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text)

-- | An identifier for the message in this batch. This is used to
--   communicate the result. Note that the <tt>Id</tt> s of a batch request
--   need to be unique within the request.
sId :: Lens' SendMessageBatchRequestEntry Text

-- | Body of the message.
sMessageBody :: Lens' SendMessageBatchRequestEntry Text

-- | Encloses a message ID for successfully enqueued message of a
--   <tt>SendMessageBatch</tt> .
--   
--   <i>See:</i> <a>sendMessageBatchResultEntry</a> smart constructor.
data SendMessageBatchResultEntry

-- | Creates a value of <a>SendMessageBatchResultEntry</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>smbreSequenceNumber</a> - <i>This element applies only to FIFO
--   (first-in-first-out) queues.</i> A large, non-consecutive number that
--   Amazon SQS assigns to each message. The length of
--   <tt>SequenceNumber</tt> is 128 bits. As <tt>SequenceNumber</tt>
--   continues to increase for a particular <tt>MessageGroupId</tt> .</li>
--   <li><a>smbreMD5OfMessageAttributes</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 <a>RFC1321</a> .</li>
--   <li><a>smbreId</a> - An identifier for the message in this batch.</li>
--   <li><a>smbreMessageId</a> - An identifier for the message.</li>
--   <li><a>smbreMD5OfMessageBody</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, see <a>RFC1321</a> .</li>
--   </ul>
sendMessageBatchResultEntry :: Text -> Text -> Text -> SendMessageBatchResultEntry

-- | <i>This element applies only to FIFO (first-in-first-out) queues.</i>
--   A large, non-consecutive number that Amazon SQS assigns to each
--   message. The length of <tt>SequenceNumber</tt> is 128 bits. As
--   <tt>SequenceNumber</tt> continues to increase for a particular
--   <tt>MessageGroupId</tt> .
smbreSequenceNumber :: Lens' SendMessageBatchResultEntry (Maybe Text)

-- | 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 <a>RFC1321</a> .
smbreMD5OfMessageAttributes :: Lens' SendMessageBatchResultEntry (Maybe Text)

-- | An identifier for the message in this batch.
smbreId :: Lens' SendMessageBatchResultEntry Text

-- | An identifier for the message.
smbreMessageId :: Lens' SendMessageBatchResultEntry Text

-- | 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 <a>RFC1321</a> .
smbreMD5OfMessageBody :: Lens' SendMessageBatchResultEntry Text


module Network.AWS.SQS.Waiters


-- | 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 <tt>MessageRetentionPeriod</tt> attribute can take up to 15
--   minutes.
module Network.AWS.SQS.SetQueueAttributes

-- | Creates a value of <a>SetQueueAttributes</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sqaQueueURL</a> - The URL of the Amazon SQS queue to take
--   action on. Queue URLs are case-sensitive.</li>
--   <li><a>sqaAttributes</a> - A map of attributes to set. The following
--   lists the names, descriptions, and values of the special request
--   parameters that the <tt>SetQueueAttributes</tt> action uses: *
--   <tt>DelaySeconds</tt> - 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). * <tt>MaximumMessageSize</tt> - 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). *
--   <tt>MessageRetentionPeriod</tt> - 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). *
--   <tt>Policy</tt> - The queue's policy. A valid AWS policy. For more
--   information about policy structure, see <a>Overview of AWS IAM
--   Policies</a> in the <i>Amazon IAM User Guide</i> . *
--   <tt>ReceiveMessageWaitTimeSeconds</tt> - The number of seconds for
--   which a <tt>ReceiveMessage</tt> action will wait for a message to
--   arrive. An integer from 0 to 20 (seconds). The default is 0. *
--   <tt>RedrivePolicy</tt> - The parameters for the dead letter queue
--   functionality of the source queue. For more information about the
--   redrive policy and dead letter queues, see <a>Using Amazon SQS Dead
--   Letter Queues</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>VisibilityTimeout</tt> - 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 <a>Visibility
--   Timeout</a> in the <i>Amazon SQS Developer Guide</i> . The following
--   attribute applies only to <a>FIFO (first-in-first-out) queues</a> : *
--   <tt>ContentBasedDeduplication</tt> - Enables content-based
--   deduplication. For more information, see <a>Exactly-Once
--   Processing</a> in the <i>Amazon SQS Developer Guide</i> . * Every
--   message must have a unique <tt>MessageDeduplicationId</tt> , * You may
--   provide a <tt>MessageDeduplicationId</tt> explicitly. * If you aren't
--   able to provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , 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
--   <tt>ApproximateNumberOfMessages</tt> ,
--   <tt>ApproximateNumberOfMessagesDelayed</tt> ,
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> ,
--   <tt>CreatedTimestamp</tt> , <tt>LastModifiedTimestamp</tt> , and
--   <tt>QueueArn</tt> ) will be ignored.</li>
--   </ul>
setQueueAttributes :: Text -> SetQueueAttributes

-- | <i>See:</i> <a>setQueueAttributes</a> smart constructor.
data SetQueueAttributes

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
sqaQueueURL :: Lens' SetQueueAttributes Text

-- | A map of attributes to set. The following lists the names,
--   descriptions, and values of the special request parameters that the
--   <tt>SetQueueAttributes</tt> action uses: * <tt>DelaySeconds</tt> - 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). * <tt>MaximumMessageSize</tt> - 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). * <tt>MessageRetentionPeriod</tt> - 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). * <tt>Policy</tt> - The queue's policy. A
--   valid AWS policy. For more information about policy structure, see
--   <a>Overview of AWS IAM Policies</a> in the <i>Amazon IAM User
--   Guide</i> . * <tt>ReceiveMessageWaitTimeSeconds</tt> - The number of
--   seconds for which a <tt>ReceiveMessage</tt> action will wait for a
--   message to arrive. An integer from 0 to 20 (seconds). The default is
--   0. * <tt>RedrivePolicy</tt> - The parameters for the dead letter queue
--   functionality of the source queue. For more information about the
--   redrive policy and dead letter queues, see <a>Using Amazon SQS Dead
--   Letter Queues</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>VisibilityTimeout</tt> - 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 <a>Visibility
--   Timeout</a> in the <i>Amazon SQS Developer Guide</i> . The following
--   attribute applies only to <a>FIFO (first-in-first-out) queues</a> : *
--   <tt>ContentBasedDeduplication</tt> - Enables content-based
--   deduplication. For more information, see <a>Exactly-Once
--   Processing</a> in the <i>Amazon SQS Developer Guide</i> . * Every
--   message must have a unique <tt>MessageDeduplicationId</tt> , * You may
--   provide a <tt>MessageDeduplicationId</tt> explicitly. * If you aren't
--   able to provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , 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
--   <tt>ApproximateNumberOfMessages</tt> ,
--   <tt>ApproximateNumberOfMessagesDelayed</tt> ,
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> ,
--   <tt>CreatedTimestamp</tt> , <tt>LastModifiedTimestamp</tt> , and
--   <tt>QueueArn</tt> ) will be ignored.
sqaAttributes :: Lens' SetQueueAttributes (HashMap QueueAttributeName Text)

-- | Creates a value of <a>SetQueueAttributesResponse</a> with the minimum
--   fields required to make a request.
setQueueAttributesResponse :: SetQueueAttributesResponse

-- | <i>See:</i> <a>setQueueAttributesResponse</a> smart constructor.
data SetQueueAttributesResponse
instance GHC.Generics.Generic Network.AWS.SQS.SetQueueAttributes.SetQueueAttributesResponse
instance Data.Data.Data Network.AWS.SQS.SetQueueAttributes.SetQueueAttributesResponse
instance GHC.Show.Show Network.AWS.SQS.SetQueueAttributes.SetQueueAttributesResponse
instance GHC.Read.Read Network.AWS.SQS.SetQueueAttributes.SetQueueAttributesResponse
instance GHC.Classes.Eq Network.AWS.SQS.SetQueueAttributes.SetQueueAttributesResponse
instance GHC.Generics.Generic Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance Data.Data.Data Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance GHC.Show.Show Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance GHC.Read.Read Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance GHC.Classes.Eq Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance Data.Hashable.Class.Hashable Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance Control.DeepSeq.NFData Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.SetQueueAttributes.SetQueueAttributes
instance Control.DeepSeq.NFData Network.AWS.SQS.SetQueueAttributes.SetQueueAttributesResponse


-- | Delivers up to ten messages to the specified queue. This is a batch
--   version of <tt><tt>SendMessage</tt> </tt> . For a FIFO queue, multiple
--   messages within a single batch are enqueued in the order they are
--   sent.
--   
--   The result of sending each message is reported individually in the
--   response. Because the batch request can result in a combination of
--   successful and unsuccessful actions, you should check for batch errors
--   even when the call returns an HTTP status code of 200.
--   
--   The maximum allowed individual message size and the maximum total
--   payload size (the sum of the individual lengths of all of the batched
--   messages) are both 256 KB (262,144 bytes).
--   
--   <i>Important:</i> The following list shows the characters (in Unicode)
--   that are allowed in your message, according to the W3C XML
--   specification:
--   
--   <tt>#x9</tt> | <tt>#xA</tt> | <tt>#xD</tt> | [<tt>#x20</tt> to
--   <tt>#xD7FF</tt> ] | [<tt>#xE000</tt> to <tt>#xFFFD</tt> ] |
--   [<tt>#x10000</tt> to <tt>#x10FFFF</tt> ]
--   
--   For more information, see <a>RFC1321</a> . If you send any characters
--   that aren't included in this list, your request will be rejected.
--   
--   If you don't specify the <tt>DelaySeconds</tt> parameter for an entry,
--   Amazon SQS uses the default for the queue.
--   
--   <pre>
--   &amp;amp;Attribute.1=this
--   </pre>
--   
--   <pre>
--   &amp;amp;Attribute.2=that
--   </pre>
module Network.AWS.SQS.SendMessageBatch

-- | Creates a value of <a>SendMessageBatch</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>smbQueueURL</a> - The URL of the Amazon SQS queue to take
--   action on. Queue URLs are case-sensitive.</li>
--   <li><a>smbEntries</a> - A list of <a>SendMessageBatchRequestEntry</a>
--   items.</li>
--   </ul>
sendMessageBatch :: Text -> SendMessageBatch

-- | <i>See:</i> <a>sendMessageBatch</a> smart constructor.
data SendMessageBatch

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
smbQueueURL :: Lens' SendMessageBatch Text

-- | A list of <a>SendMessageBatchRequestEntry</a> items.
smbEntries :: Lens' SendMessageBatch [SendMessageBatchRequestEntry]

-- | Creates a value of <a>SendMessageBatchResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>smbrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>smbrsSuccessful</a> - A list of
--   <a>SendMessageBatchResultEntry</a> items.</li>
--   <li><a>smbrsFailed</a> - A list of <a>BatchResultErrorEntry</a> items
--   with the error detail about each message that could not be
--   enqueued.</li>
--   </ul>
sendMessageBatchResponse :: Int -> SendMessageBatchResponse

-- | For each message in the batch, the response contains a
--   <a>SendMessageBatchResultEntry</a> tag if the message succeeds or a
--   <a>BatchResultErrorEntry</a> tag if the message fails.
--   
--   <i>See:</i> <a>sendMessageBatchResponse</a> smart constructor.
data SendMessageBatchResponse

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
smbrsResponseStatus :: Lens' SendMessageBatchResponse Int

-- | A list of <a>SendMessageBatchResultEntry</a> items.
smbrsSuccessful :: Lens' SendMessageBatchResponse [SendMessageBatchResultEntry]

-- | A list of <a>BatchResultErrorEntry</a> items with the error detail
--   about each message that could not be enqueued.
smbrsFailed :: Lens' SendMessageBatchResponse [BatchResultErrorEntry]
instance GHC.Generics.Generic Network.AWS.SQS.SendMessageBatch.SendMessageBatchResponse
instance Data.Data.Data Network.AWS.SQS.SendMessageBatch.SendMessageBatchResponse
instance GHC.Show.Show Network.AWS.SQS.SendMessageBatch.SendMessageBatchResponse
instance GHC.Read.Read Network.AWS.SQS.SendMessageBatch.SendMessageBatchResponse
instance GHC.Classes.Eq Network.AWS.SQS.SendMessageBatch.SendMessageBatchResponse
instance GHC.Generics.Generic Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance Data.Data.Data Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance GHC.Show.Show Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance GHC.Read.Read Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance GHC.Classes.Eq Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance Data.Hashable.Class.Hashable Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance Control.DeepSeq.NFData Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.SendMessageBatch.SendMessageBatch
instance Control.DeepSeq.NFData Network.AWS.SQS.SendMessageBatch.SendMessageBatchResponse


-- | Delivers a message to the specified queue.
--   
--   <i>Important:</i> The following list shows the characters (in Unicode)
--   that are allowed in your message, according to the W3C XML
--   specification:
--   
--   <tt>#x9</tt> | <tt>#xA</tt> | <tt>#xD</tt> | [<tt>#x20</tt> to
--   <tt>#xD7FF</tt> ] | [<tt>#xE000</tt> to <tt>#xFFFD</tt> ] |
--   [<tt>#x10000</tt> to <tt>#x10FFFF</tt> ]
--   
--   For more information, see <a>RFC1321</a> . If you send any characters
--   that aren't included in this list, your request will be rejected.
module Network.AWS.SQS.SendMessage

-- | Creates a value of <a>SendMessage</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>smMessageAttributes</a> - Each message attribute consists of a
--   Name, Type, and Value. For more information, see <a>Message Attribute
--   Items</a> in the <i>Amazon SQS Developer Guide</i> .</li>
--   <li><a>smDelaySeconds</a> - The number of seconds (0 to 900 - 15
--   minutes) to delay a specific message. Messages with a positive
--   <tt>DelaySeconds</tt> 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.</li>
--   <li><a>smMessageDeduplicationId</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
--   <tt>MessageDeduplicationId</tt> is sent successfully, any messages
--   sent with the same <tt>MessageDeduplicationId</tt> are accepted
--   successfully but aren't delivered during the 5-minute deduplication
--   interval. For more information, see <a>Exactly-Once Processing</a> in
--   the <i>Amazon SQS Developer Guide</i> . * Every message must have a
--   unique <tt>MessageDeduplicationId</tt> , * You may provide a
--   <tt>MessageDeduplicationId</tt> explicitly. * If you aren't able to
--   provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , the two messages are treated as
--   duplicates and only one copy of the message is delivered. The length
--   of <tt>MessageDeduplicationId</tt> is 128 characters.
--   <tt>MessageDeduplicationId</tt> can contain alphanumeric characters
--   (<tt>a-z</tt> , <tt>A-Z</tt> , <tt>0-9</tt> ) and punctuation
--   (<tt>!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~<tt> ). For best
--   practices of using </tt>MessageDeduplicationId@ , see <a>Using the
--   MessageDeduplicationId Property</a> in the <i>Amazon Simple Queue
--   Service Developer Guide</i> .</li>
--   <li><a>smMessageGroupId</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
--   <tt>MessageGroupId</tt> 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 <tt>MessageGroupId</tt> with a message. If
--   you don't provide a <tt>MessageGroupId</tt> , the action fails. *
--   <tt>ReceiveMessage</tt> might return messages with multiple
--   <tt>MessageGroupId</tt> values. For each <tt>MessageGroupId</tt> , the
--   messages are sorted by time sent. The caller can't specify a
--   <tt>MessageGroupId</tt> . The length of <tt>MessageGroupId</tt> is 128
--   characters. Valid values are alphanumeric characters and punctuation
--   <tt>(!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~)<tt> . For best
--   practices of using </tt>MessageGroupId@ , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> .</li>
--   <li><a>smQueueURL</a> - The URL of the Amazon SQS queue to take action
--   on. Queue URLs are case-sensitive.</li>
--   <li><a>smMessageBody</a> - The message to send. String maximum 256 KB
--   in size. For a list of allowed characters, see the preceding
--   note.</li>
--   </ul>
sendMessage :: Text -> Text -> SendMessage

-- | <i>See:</i> <a>sendMessage</a> smart constructor.
data SendMessage

-- | Each message attribute consists of a Name, Type, and Value. For more
--   information, see <a>Message Attribute Items</a> in the <i>Amazon SQS
--   Developer Guide</i> .
smMessageAttributes :: Lens' SendMessage (HashMap Text MessageAttributeValue)

-- | The number of seconds (0 to 900 - 15 minutes) to delay a specific
--   message. Messages with a positive <tt>DelaySeconds</tt> 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)

-- | 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 <tt>MessageDeduplicationId</tt> is sent successfully, any
--   messages sent with the same <tt>MessageDeduplicationId</tt> are
--   accepted successfully but aren't delivered during the 5-minute
--   deduplication interval. For more information, see <a>Exactly-Once
--   Processing</a> in the <i>Amazon SQS Developer Guide</i> . * Every
--   message must have a unique <tt>MessageDeduplicationId</tt> , * You may
--   provide a <tt>MessageDeduplicationId</tt> explicitly. * If you aren't
--   able to provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , the two messages are treated as
--   duplicates and only one copy of the message is delivered. The length
--   of <tt>MessageDeduplicationId</tt> is 128 characters.
--   <tt>MessageDeduplicationId</tt> can contain alphanumeric characters
--   (<tt>a-z</tt> , <tt>A-Z</tt> , <tt>0-9</tt> ) and punctuation
--   (<tt>!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~<tt> ). For best
--   practices of using </tt>MessageDeduplicationId@ , see <a>Using the
--   MessageDeduplicationId Property</a> in the <i>Amazon Simple Queue
--   Service Developer Guide</i> .
smMessageDeduplicationId :: Lens' SendMessage (Maybe Text)

-- | 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 <tt>MessageGroupId</tt> 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
--   <tt>MessageGroupId</tt> with a message. If you don't provide a
--   <tt>MessageGroupId</tt> , the action fails. * <tt>ReceiveMessage</tt>
--   might return messages with multiple <tt>MessageGroupId</tt> values.
--   For each <tt>MessageGroupId</tt> , the messages are sorted by time
--   sent. The caller can't specify a <tt>MessageGroupId</tt> . The length
--   of <tt>MessageGroupId</tt> is 128 characters. Valid values are
--   alphanumeric characters and punctuation
--   <tt>(!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~)<tt> . For best
--   practices of using </tt>MessageGroupId@ , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> .
smMessageGroupId :: Lens' SendMessage (Maybe Text)

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
smQueueURL :: Lens' SendMessage Text

-- | The message to send. String maximum 256 KB in size. For a list of
--   allowed characters, see the preceding note.
smMessageBody :: Lens' SendMessage Text

-- | Creates a value of <a>SendMessageResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>smrsSequenceNumber</a> - <i>This element applies only to FIFO
--   (first-in-first-out) queues.</i> A large, non-consecutive number that
--   Amazon SQS assigns to each message. The length of
--   <tt>SequenceNumber</tt> is 128 bits. <tt>SequenceNumber</tt> continues
--   to increase for a particular <tt>MessageGroupId</tt> .</li>
--   <li><a>smrsMessageId</a> - An element containing the message ID of the
--   message sent to the queue. For more information, see <a>Queue and
--   Message Identifiers</a> in the <i>Amazon SQS Developer Guide</i>
--   .</li>
--   <li><a>smrsMD5OfMessageBody</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, see
--   <a>RFC1321</a> .</li>
--   <li><a>smrsMD5OfMessageAttributes</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, see <a>RFC1321</a> .</li>
--   <li><a>smrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
sendMessageResponse :: Int -> SendMessageResponse

-- | The MD5OfMessageBody and MessageId elements.
--   
--   <i>See:</i> <a>sendMessageResponse</a> smart constructor.
data SendMessageResponse

-- | <i>This element applies only to FIFO (first-in-first-out) queues.</i>
--   A large, non-consecutive number that Amazon SQS assigns to each
--   message. The length of <tt>SequenceNumber</tt> is 128 bits.
--   <tt>SequenceNumber</tt> continues to increase for a particular
--   <tt>MessageGroupId</tt> .
smrsSequenceNumber :: Lens' SendMessageResponse (Maybe Text)

-- | An element containing the message ID of the message sent to the queue.
--   For more information, see <a>Queue and Message Identifiers</a> in the
--   <i>Amazon SQS Developer Guide</i> .
smrsMessageId :: Lens' SendMessageResponse (Maybe Text)

-- | 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 <a>RFC1321</a> .
smrsMD5OfMessageBody :: Lens' SendMessageResponse (Maybe Text)

-- | 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 <a>RFC1321</a> .
smrsMD5OfMessageAttributes :: Lens' SendMessageResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
smrsResponseStatus :: Lens' SendMessageResponse Int
instance GHC.Generics.Generic Network.AWS.SQS.SendMessage.SendMessageResponse
instance Data.Data.Data Network.AWS.SQS.SendMessage.SendMessageResponse
instance GHC.Show.Show Network.AWS.SQS.SendMessage.SendMessageResponse
instance GHC.Read.Read Network.AWS.SQS.SendMessage.SendMessageResponse
instance GHC.Classes.Eq Network.AWS.SQS.SendMessage.SendMessageResponse
instance GHC.Generics.Generic Network.AWS.SQS.SendMessage.SendMessage
instance Data.Data.Data Network.AWS.SQS.SendMessage.SendMessage
instance GHC.Show.Show Network.AWS.SQS.SendMessage.SendMessage
instance GHC.Read.Read Network.AWS.SQS.SendMessage.SendMessage
instance GHC.Classes.Eq Network.AWS.SQS.SendMessage.SendMessage
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.SendMessage.SendMessage
instance Data.Hashable.Class.Hashable Network.AWS.SQS.SendMessage.SendMessage
instance Control.DeepSeq.NFData Network.AWS.SQS.SendMessage.SendMessage
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.SendMessage.SendMessage
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.SendMessage.SendMessage
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.SendMessage.SendMessage
instance Control.DeepSeq.NFData Network.AWS.SQS.SendMessage.SendMessageResponse


-- | Revokes any permissions in the queue policy that matches the specified
--   <tt>Label</tt> parameter. Only the owner of the queue can remove
--   permissions.
module Network.AWS.SQS.RemovePermission

-- | Creates a value of <a>RemovePermission</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rpQueueURL</a> - The URL of the Amazon SQS queue to take action
--   on. Queue URLs are case-sensitive.</li>
--   <li><a>rpLabel</a> - The identification of the permission to remove.
--   This is the label added with the <tt>AddPermission</tt> action.</li>
--   </ul>
removePermission :: Text -> Text -> RemovePermission

-- | <i>See:</i> <a>removePermission</a> smart constructor.
data RemovePermission

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
rpQueueURL :: Lens' RemovePermission Text

-- | The identification of the permission to remove. This is the label
--   added with the <tt>AddPermission</tt> action.
rpLabel :: Lens' RemovePermission Text

-- | Creates a value of <a>RemovePermissionResponse</a> with the minimum
--   fields required to make a request.
removePermissionResponse :: RemovePermissionResponse

-- | <i>See:</i> <a>removePermissionResponse</a> smart constructor.
data RemovePermissionResponse
instance GHC.Generics.Generic Network.AWS.SQS.RemovePermission.RemovePermissionResponse
instance Data.Data.Data Network.AWS.SQS.RemovePermission.RemovePermissionResponse
instance GHC.Show.Show Network.AWS.SQS.RemovePermission.RemovePermissionResponse
instance GHC.Read.Read Network.AWS.SQS.RemovePermission.RemovePermissionResponse
instance GHC.Classes.Eq Network.AWS.SQS.RemovePermission.RemovePermissionResponse
instance GHC.Generics.Generic Network.AWS.SQS.RemovePermission.RemovePermission
instance Data.Data.Data Network.AWS.SQS.RemovePermission.RemovePermission
instance GHC.Show.Show Network.AWS.SQS.RemovePermission.RemovePermission
instance GHC.Read.Read Network.AWS.SQS.RemovePermission.RemovePermission
instance GHC.Classes.Eq Network.AWS.SQS.RemovePermission.RemovePermission
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.RemovePermission.RemovePermission
instance Data.Hashable.Class.Hashable Network.AWS.SQS.RemovePermission.RemovePermission
instance Control.DeepSeq.NFData Network.AWS.SQS.RemovePermission.RemovePermission
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.RemovePermission.RemovePermission
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.RemovePermission.RemovePermission
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.RemovePermission.RemovePermission
instance Control.DeepSeq.NFData Network.AWS.SQS.RemovePermission.RemovePermissionResponse


-- | Retrieves one or more messages, with a maximum limit of 10 messages,
--   from the specified queue. Long poll support is enabled by using the
--   <tt>WaitTimeSeconds</tt> parameter. For more information, see
--   <a>Amazon SQS Long Poll</a> in the <i>Amazon SQS Developer Guide</i> .
--   
--   Short poll is the default behavior where a weighted random set of
--   machines is sampled on a <tt>ReceiveMessage</tt> 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 <tt>ReceiveMessage</tt>
--   call. If the number of messages in the queue is extremely small, you
--   might not receive any messages in a particular <tt>ReceiveMessage</tt>
--   response; in which case you should repeat the request.
--   
--   For each message returned, the response includes the following:
--   
--   <ul>
--   <li>Message body</li>
--   <li>MD5 digest of the message body. For information about MD5, see
--   <a>RFC1321</a> .</li>
--   <li>Message ID you received when you sent the message to the
--   queue.</li>
--   <li>Receipt handle.</li>
--   <li>Message attributes.</li>
--   <li>MD5 digest of the message attributes.</li>
--   </ul>
--   
--   The receipt handle is the identifier you must provide when deleting
--   the message. For more information, see <a>Queue and Message
--   Identifiers</a> in the <i>Amazon SQS Developer Guide</i> .
--   
--   You can provide the <tt>VisibilityTimeout</tt> 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 <a>Visibility Timeout</a> in the <i>Amazon
--   SQS Developer Guide</i> .
--   
--   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

-- | Creates a value of <a>ReceiveMessage</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rmReceiveRequestAttemptId</a> - This parameter applies only to
--   FIFO (first-in-first-out) queues. The token used for deduplication of
--   <tt>ReceiveMessage</tt> calls. If a networking issue occurs after a
--   <tt>ReceiveMessage</tt> action, and instead of a response you receive
--   a generic error, you can retry the same action with an identical
--   <tt>ReceiveRequestAttemptId</tt> to retrieve the same set of messages,
--   even if their visibility timeout has not yet expired. * You can use
--   <tt>ReceiveRequestAttemptId</tt> only for 5 minutes after a
--   <tt>ReceiveMessage</tt> action. * When you set <tt>FifoQueue</tt> , a
--   caller of the <tt>ReceiveMessage</tt> action can provide a
--   <tt>ReceiveRequestAttemptId</tt> explicitly. * If a caller of the
--   <tt>ReceiveMessage</tt> action doesn't provide a
--   <tt>ReceiveRequestAttemptId</tt> , Amazon SQS generates a
--   <tt>ReceiveRequestAttemptId</tt> . * You can retry the
--   <tt>ReceiveMessage</tt> action with the same
--   <tt>ReceiveRequestAttemptId</tt> if none of the messages have been
--   modified (deleted or had their visibility changes). * During a
--   visibility timeout, subsequent calls with the same
--   <tt>ReceiveRequestAttemptId</tt> return the same messages and receipt
--   handles. If a retry occurs within the deduplication interval, it
--   resets the visibility timeout. For more information, see <a>Visibility
--   Timeout</a> in the <i>Amazon Simple Queue Service Developer Guide</i>
--   . <i>Important:</i> If a caller of the <tt>ReceiveMessage</tt> 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 <tt>MessageGroupId</tt> are invisible, no
--   more messages belonging to the same <tt>MessageGroupId</tt> are
--   returned until the visibility timeout expires. You can still receive
--   messages with another <tt>MessageGroupId</tt> as long as it is also
--   visible. * If a caller of <tt>ReceiveMessage</tt> can't track the
--   <tt>ReceiveRequestAttemptId</tt> , 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 <tt>ReceiveRequestAttemptId</tt> is 128 characters.
--   <tt>ReceiveRequestAttemptId</tt> can contain alphanumeric characters
--   (<tt>a-z</tt> , <tt>A-Z</tt> , <tt>0-9</tt> ) and punctuation
--   (<tt>!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~<tt> ). For best
--   practices of using </tt>ReceiveRequestAttemptId@ , see <a>Using the
--   ReceiveRequestAttemptId Request Parameter</a> in the <i>Amazon Simple
--   Queue Service Developer Guide</i> .</li>
--   <li><a>rmVisibilityTimeout</a> - The duration (in seconds) that the
--   received messages are hidden from subsequent retrieve requests after
--   being retrieved by a <tt>ReceiveMessage</tt> request.</li>
--   <li><a>rmMessageAttributeNames</a> - The name of the message
--   attribute, where <i>N</i> 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
--   <tt>ReceiveMessage</tt> , you can send a list of attribute names to
--   receive, or you can return all of the attributes by specifying
--   <a>All</a> or ".*" in your request. You can also use "bar.*" to return
--   all message attributes starting with the "bar" prefix.</li>
--   <li><a>rmWaitTimeSeconds</a> - 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.</li>
--   <li><a>rmAttributeNames</a> - A list of attributes that need to be
--   returned along with each message. These attributes include: *
--   <tt>All</tt> - Returns all values. *
--   <tt>ApproximateFirstReceiveTimestamp</tt> - Returns the time the
--   message was first received from the queue (epoch time in
--   milliseconds). * <tt>ApproximateReceiveCount</tt> - Returns the number
--   of times a message has been received from the queue but not deleted. *
--   <tt>SenderId</tt> * For an IAM user, returns the IAM user ID, for
--   example <tt>ABCDEFGHI1JKLMNOPQ23R</tt> . * For an IAM role, returns
--   the IAM role ID, for example <tt>ABCDE1F2GH3I4JK5LMNOP:i-a123b456</tt>
--   . * <tt>SentTimestamp</tt> - Returns the time the message was sent to
--   the queue (epoch time in milliseconds). *
--   <tt>MessageDeduplicationId</tt> - Returns the value provided by the
--   sender that calls the <tt><tt>SendMessage</tt> </tt> action. *
--   <tt>MessageGroupId</tt> - Returns the value provided by the sender
--   that calls the <tt><tt>SendMessage</tt> </tt> action. Messages with
--   the same <tt>MessageGroupId</tt> are returned in sequence. *
--   <tt>SequenceNumber</tt> - Returns the value provided by Amazon SQS.
--   Any other valid special request parameters (such as the following)
--   that are specified are ignored: * <tt>ApproximateNumberOfMessages</tt>
--   * <tt>ApproximateNumberOfMessagesDelayed</tt> *
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> *
--   <tt>CreatedTimestamp</tt> * <tt>ContentBasedDeduplication</tt> *
--   <tt>DelaySeconds</tt> * <tt>LastModifiedTimestamp</tt> *
--   <tt>MaximumMessageSize</tt> * <tt>MessageRetentionPeriod</tt> *
--   <tt>Policy</tt> * <tt>QueueArn</tt> , *
--   <tt>ReceiveMessageWaitTimeSeconds</tt> * <tt>RedrivePolicy</tt> *
--   <tt>FifoQueue</tt> * <tt>VisibilityTimeout</tt></li>
--   <li><a>rmMaxNumberOfMessages</a> - 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.</li>
--   <li><a>rmQueueURL</a> - The URL of the Amazon SQS queue to take action
--   on. Queue URLs are case-sensitive.</li>
--   </ul>
receiveMessage :: Text -> ReceiveMessage

-- | <i>See:</i> <a>receiveMessage</a> smart constructor.
data ReceiveMessage

-- | This parameter applies only to FIFO (first-in-first-out) queues. The
--   token used for deduplication of <tt>ReceiveMessage</tt> calls. If a
--   networking issue occurs after a <tt>ReceiveMessage</tt> action, and
--   instead of a response you receive a generic error, you can retry the
--   same action with an identical <tt>ReceiveRequestAttemptId</tt> to
--   retrieve the same set of messages, even if their visibility timeout
--   has not yet expired. * You can use <tt>ReceiveRequestAttemptId</tt>
--   only for 5 minutes after a <tt>ReceiveMessage</tt> action. * When you
--   set <tt>FifoQueue</tt> , a caller of the <tt>ReceiveMessage</tt>
--   action can provide a <tt>ReceiveRequestAttemptId</tt> explicitly. * If
--   a caller of the <tt>ReceiveMessage</tt> action doesn't provide a
--   <tt>ReceiveRequestAttemptId</tt> , Amazon SQS generates a
--   <tt>ReceiveRequestAttemptId</tt> . * You can retry the
--   <tt>ReceiveMessage</tt> action with the same
--   <tt>ReceiveRequestAttemptId</tt> if none of the messages have been
--   modified (deleted or had their visibility changes). * During a
--   visibility timeout, subsequent calls with the same
--   <tt>ReceiveRequestAttemptId</tt> return the same messages and receipt
--   handles. If a retry occurs within the deduplication interval, it
--   resets the visibility timeout. For more information, see <a>Visibility
--   Timeout</a> in the <i>Amazon Simple Queue Service Developer Guide</i>
--   . <i>Important:</i> If a caller of the <tt>ReceiveMessage</tt> 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 <tt>MessageGroupId</tt> are invisible, no
--   more messages belonging to the same <tt>MessageGroupId</tt> are
--   returned until the visibility timeout expires. You can still receive
--   messages with another <tt>MessageGroupId</tt> as long as it is also
--   visible. * If a caller of <tt>ReceiveMessage</tt> can't track the
--   <tt>ReceiveRequestAttemptId</tt> , 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 <tt>ReceiveRequestAttemptId</tt> is 128 characters.
--   <tt>ReceiveRequestAttemptId</tt> can contain alphanumeric characters
--   (<tt>a-z</tt> , <tt>A-Z</tt> , <tt>0-9</tt> ) and punctuation
--   (<tt>!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~<tt> ). For best
--   practices of using </tt>ReceiveRequestAttemptId@ , see <a>Using the
--   ReceiveRequestAttemptId Request Parameter</a> in the <i>Amazon Simple
--   Queue Service Developer Guide</i> .
rmReceiveRequestAttemptId :: Lens' ReceiveMessage (Maybe Text)

-- | The duration (in seconds) that the received messages are hidden from
--   subsequent retrieve requests after being retrieved by a
--   <tt>ReceiveMessage</tt> request.
rmVisibilityTimeout :: Lens' ReceiveMessage (Maybe Int)

-- | The name of the message attribute, where <i>N</i> 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 <tt>ReceiveMessage</tt> , you can send a list of
--   attribute names to receive, or you can return all of the attributes by
--   specifying <a>All</a> or ".*" in your request. You can also use
--   "bar.*" to return all message attributes starting with the "bar"
--   prefix.
rmMessageAttributeNames :: Lens' ReceiveMessage [Text]

-- | 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.
rmWaitTimeSeconds :: Lens' ReceiveMessage (Maybe Int)

-- | A list of attributes that need to be returned along with each message.
--   These attributes include: * <tt>All</tt> - Returns all values. *
--   <tt>ApproximateFirstReceiveTimestamp</tt> - Returns the time the
--   message was first received from the queue (epoch time in
--   milliseconds). * <tt>ApproximateReceiveCount</tt> - Returns the number
--   of times a message has been received from the queue but not deleted. *
--   <tt>SenderId</tt> * For an IAM user, returns the IAM user ID, for
--   example <tt>ABCDEFGHI1JKLMNOPQ23R</tt> . * For an IAM role, returns
--   the IAM role ID, for example <tt>ABCDE1F2GH3I4JK5LMNOP:i-a123b456</tt>
--   . * <tt>SentTimestamp</tt> - Returns the time the message was sent to
--   the queue (epoch time in milliseconds). *
--   <tt>MessageDeduplicationId</tt> - Returns the value provided by the
--   sender that calls the <tt><tt>SendMessage</tt> </tt> action. *
--   <tt>MessageGroupId</tt> - Returns the value provided by the sender
--   that calls the <tt><tt>SendMessage</tt> </tt> action. Messages with
--   the same <tt>MessageGroupId</tt> are returned in sequence. *
--   <tt>SequenceNumber</tt> - Returns the value provided by Amazon SQS.
--   Any other valid special request parameters (such as the following)
--   that are specified are ignored: * <tt>ApproximateNumberOfMessages</tt>
--   * <tt>ApproximateNumberOfMessagesDelayed</tt> *
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> *
--   <tt>CreatedTimestamp</tt> * <tt>ContentBasedDeduplication</tt> *
--   <tt>DelaySeconds</tt> * <tt>LastModifiedTimestamp</tt> *
--   <tt>MaximumMessageSize</tt> * <tt>MessageRetentionPeriod</tt> *
--   <tt>Policy</tt> * <tt>QueueArn</tt> , *
--   <tt>ReceiveMessageWaitTimeSeconds</tt> * <tt>RedrivePolicy</tt> *
--   <tt>FifoQueue</tt> * <tt>VisibilityTimeout</tt>
rmAttributeNames :: Lens' ReceiveMessage [MessageAttribute]

-- | 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)

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
rmQueueURL :: Lens' ReceiveMessage Text

-- | Creates a value of <a>ReceiveMessageResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rmrsMessages</a> - A list of messages.</li>
--   <li><a>rmrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
receiveMessageResponse :: Int -> ReceiveMessageResponse

-- | A list of received messages.
--   
--   <i>See:</i> <a>receiveMessageResponse</a> smart constructor.
data ReceiveMessageResponse

-- | A list of messages.
rmrsMessages :: Lens' ReceiveMessageResponse [Message]

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
rmrsResponseStatus :: Lens' ReceiveMessageResponse Int
instance GHC.Generics.Generic Network.AWS.SQS.ReceiveMessage.ReceiveMessageResponse
instance Data.Data.Data Network.AWS.SQS.ReceiveMessage.ReceiveMessageResponse
instance GHC.Show.Show Network.AWS.SQS.ReceiveMessage.ReceiveMessageResponse
instance GHC.Read.Read Network.AWS.SQS.ReceiveMessage.ReceiveMessageResponse
instance GHC.Classes.Eq Network.AWS.SQS.ReceiveMessage.ReceiveMessageResponse
instance GHC.Generics.Generic Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance Data.Data.Data Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance GHC.Show.Show Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance GHC.Read.Read Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance GHC.Classes.Eq Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance Data.Hashable.Class.Hashable Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance Control.DeepSeq.NFData Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.ReceiveMessage.ReceiveMessage
instance Control.DeepSeq.NFData Network.AWS.SQS.ReceiveMessage.ReceiveMessageResponse


-- | Deletes the messages in a queue specified by the <b>queue URL</b> .
--   
--   <i>Important:</i> When you use the <tt>PurgeQueue</tt> 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
--   <tt>PurgeQueue</tt> 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 <tt>PurgeQueue</tt> was called might
--   be received, but will be deleted within the next minute.
module Network.AWS.SQS.PurgeQueue

-- | Creates a value of <a>PurgeQueue</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>pqQueueURL</a> - The queue URL of the queue to delete the
--   messages from when using the <tt>PurgeQueue</tt> API. Queue URLs are
--   case-sensitive.</li>
--   </ul>
purgeQueue :: Text -> PurgeQueue

-- | <i>See:</i> <a>purgeQueue</a> smart constructor.
data PurgeQueue

-- | The queue URL of the queue to delete the messages from when using the
--   <tt>PurgeQueue</tt> API. Queue URLs are case-sensitive.
pqQueueURL :: Lens' PurgeQueue Text

-- | Creates a value of <a>PurgeQueueResponse</a> with the minimum fields
--   required to make a request.
purgeQueueResponse :: PurgeQueueResponse

-- | <i>See:</i> <a>purgeQueueResponse</a> smart constructor.
data PurgeQueueResponse
instance GHC.Generics.Generic Network.AWS.SQS.PurgeQueue.PurgeQueueResponse
instance Data.Data.Data Network.AWS.SQS.PurgeQueue.PurgeQueueResponse
instance GHC.Show.Show Network.AWS.SQS.PurgeQueue.PurgeQueueResponse
instance GHC.Read.Read Network.AWS.SQS.PurgeQueue.PurgeQueueResponse
instance GHC.Classes.Eq Network.AWS.SQS.PurgeQueue.PurgeQueueResponse
instance GHC.Generics.Generic Network.AWS.SQS.PurgeQueue.PurgeQueue
instance Data.Data.Data Network.AWS.SQS.PurgeQueue.PurgeQueue
instance GHC.Show.Show Network.AWS.SQS.PurgeQueue.PurgeQueue
instance GHC.Read.Read Network.AWS.SQS.PurgeQueue.PurgeQueue
instance GHC.Classes.Eq Network.AWS.SQS.PurgeQueue.PurgeQueue
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.PurgeQueue.PurgeQueue
instance Data.Hashable.Class.Hashable Network.AWS.SQS.PurgeQueue.PurgeQueue
instance Control.DeepSeq.NFData Network.AWS.SQS.PurgeQueue.PurgeQueue
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.PurgeQueue.PurgeQueue
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.PurgeQueue.PurgeQueue
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.PurgeQueue.PurgeQueue
instance Control.DeepSeq.NFData Network.AWS.SQS.PurgeQueue.PurgeQueueResponse


-- | 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
--   <tt>QueueNamePrefix</tt> parameter, only queues with a name beginning
--   with the specified value are returned.
module Network.AWS.SQS.ListQueues

-- | Creates a value of <a>ListQueues</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lqQueueNamePrefix</a> - 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.</li>
--   </ul>
listQueues :: ListQueues

-- | <i>See:</i> <a>listQueues</a> smart constructor.
data ListQueues

-- | 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)

-- | Creates a value of <a>ListQueuesResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lqrsQueueURLs</a> - A list of queue URLs, up to 1000
--   entries.</li>
--   <li><a>lqrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listQueuesResponse :: Int -> ListQueuesResponse

-- | A list of your queues.
--   
--   <i>See:</i> <a>listQueuesResponse</a> smart constructor.
data ListQueuesResponse

-- | A list of queue URLs, up to 1000 entries.
lqrsQueueURLs :: Lens' ListQueuesResponse [Text]

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
lqrsResponseStatus :: Lens' ListQueuesResponse Int
instance GHC.Generics.Generic Network.AWS.SQS.ListQueues.ListQueuesResponse
instance Data.Data.Data Network.AWS.SQS.ListQueues.ListQueuesResponse
instance GHC.Show.Show Network.AWS.SQS.ListQueues.ListQueuesResponse
instance GHC.Read.Read Network.AWS.SQS.ListQueues.ListQueuesResponse
instance GHC.Classes.Eq Network.AWS.SQS.ListQueues.ListQueuesResponse
instance GHC.Generics.Generic Network.AWS.SQS.ListQueues.ListQueues
instance Data.Data.Data Network.AWS.SQS.ListQueues.ListQueues
instance GHC.Show.Show Network.AWS.SQS.ListQueues.ListQueues
instance GHC.Read.Read Network.AWS.SQS.ListQueues.ListQueues
instance GHC.Classes.Eq Network.AWS.SQS.ListQueues.ListQueues
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.ListQueues.ListQueues
instance Data.Hashable.Class.Hashable Network.AWS.SQS.ListQueues.ListQueues
instance Control.DeepSeq.NFData Network.AWS.SQS.ListQueues.ListQueues
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.ListQueues.ListQueues
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.ListQueues.ListQueues
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.ListQueues.ListQueues
instance Control.DeepSeq.NFData Network.AWS.SQS.ListQueues.ListQueuesResponse


-- | 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 <a>Using
--   Amazon SQS Dead Letter Queues</a> in the <i>Amazon SQS Developer
--   Guide</i> .
module Network.AWS.SQS.ListDeadLetterSourceQueues

-- | Creates a value of <a>ListDeadLetterSourceQueues</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ldlsqQueueURL</a> - The queue URL of a dead letter queue. Queue
--   URLs are case-sensitive.</li>
--   </ul>
listDeadLetterSourceQueues :: Text -> ListDeadLetterSourceQueues

-- | <i>See:</i> <a>listDeadLetterSourceQueues</a> smart constructor.
data ListDeadLetterSourceQueues

-- | The queue URL of a dead letter queue. Queue URLs are case-sensitive.
ldlsqQueueURL :: Lens' ListDeadLetterSourceQueues Text

-- | Creates a value of <a>ListDeadLetterSourceQueuesResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ldlsqrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>ldlsqrsQueueURLs</a> - A list of source queue URLs that have
--   the RedrivePolicy queue attribute configured with a dead letter
--   queue.</li>
--   </ul>
listDeadLetterSourceQueuesResponse :: Int -> ListDeadLetterSourceQueuesResponse

-- | A list of your dead letter source queues.
--   
--   <i>See:</i> <a>listDeadLetterSourceQueuesResponse</a> smart
--   constructor.
data ListDeadLetterSourceQueuesResponse

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
ldlsqrsResponseStatus :: Lens' ListDeadLetterSourceQueuesResponse Int

-- | A list of source queue URLs that have the RedrivePolicy queue
--   attribute configured with a dead letter queue.
ldlsqrsQueueURLs :: Lens' ListDeadLetterSourceQueuesResponse [Text]
instance GHC.Generics.Generic Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueuesResponse
instance Data.Data.Data Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueuesResponse
instance GHC.Show.Show Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueuesResponse
instance GHC.Read.Read Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueuesResponse
instance GHC.Classes.Eq Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueuesResponse
instance GHC.Generics.Generic Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance Data.Data.Data Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance GHC.Show.Show Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance GHC.Read.Read Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance GHC.Classes.Eq Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance Data.Hashable.Class.Hashable Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance Control.DeepSeq.NFData Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueues
instance Control.DeepSeq.NFData Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueuesResponse


-- | 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
--   <tt>QueueOwnerAWSAccountId</tt> 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
--   <tt>AddPermission</tt> or see <a>Shared Queues</a> in the <i>Amazon
--   SQS Developer Guide</i> .
module Network.AWS.SQS.GetQueueURL

-- | Creates a value of <a>GetQueueURL</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gquQueueOwnerAWSAccountId</a> - The AWS account ID of the
--   account that created the queue.</li>
--   <li><a>gquQueueName</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.</li>
--   </ul>
getQueueURL :: Text -> GetQueueURL

-- | <i>See:</i> <a>getQueueURL</a> smart constructor.
data GetQueueURL

-- | The AWS account ID of the account that created the queue.
gquQueueOwnerAWSAccountId :: Lens' GetQueueURL (Maybe Text)

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

-- | Creates a value of <a>GetQueueURLResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gqursResponseStatus</a> - -- | The response status code.</li>
--   <li><a>gqursQueueURL</a> - The URL for the queue.</li>
--   </ul>
getQueueURLResponse :: Int -> Text -> GetQueueURLResponse

-- | For more information, see <a>Responses</a> in the <i>Amazon SQS
--   Developer Guide</i> .
--   
--   <i>See:</i> <a>getQueueURLResponse</a> smart constructor.
data GetQueueURLResponse

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
gqursResponseStatus :: Lens' GetQueueURLResponse Int

-- | The URL for the queue.
gqursQueueURL :: Lens' GetQueueURLResponse Text
instance GHC.Generics.Generic Network.AWS.SQS.GetQueueURL.GetQueueURLResponse
instance Data.Data.Data Network.AWS.SQS.GetQueueURL.GetQueueURLResponse
instance GHC.Show.Show Network.AWS.SQS.GetQueueURL.GetQueueURLResponse
instance GHC.Read.Read Network.AWS.SQS.GetQueueURL.GetQueueURLResponse
instance GHC.Classes.Eq Network.AWS.SQS.GetQueueURL.GetQueueURLResponse
instance GHC.Generics.Generic Network.AWS.SQS.GetQueueURL.GetQueueURL
instance Data.Data.Data Network.AWS.SQS.GetQueueURL.GetQueueURL
instance GHC.Show.Show Network.AWS.SQS.GetQueueURL.GetQueueURL
instance GHC.Read.Read Network.AWS.SQS.GetQueueURL.GetQueueURL
instance GHC.Classes.Eq Network.AWS.SQS.GetQueueURL.GetQueueURL
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.GetQueueURL.GetQueueURL
instance Data.Hashable.Class.Hashable Network.AWS.SQS.GetQueueURL.GetQueueURL
instance Control.DeepSeq.NFData Network.AWS.SQS.GetQueueURL.GetQueueURL
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.GetQueueURL.GetQueueURL
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.GetQueueURL.GetQueueURL
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.GetQueueURL.GetQueueURL
instance Control.DeepSeq.NFData Network.AWS.SQS.GetQueueURL.GetQueueURLResponse


-- | Gets attributes for the specified queue.
--   
--   <pre>
--   &amp;amp;Attribute.1=this
--   </pre>
--   
--   <pre>
--   &amp;amp;Attribute.2=that
--   </pre>
module Network.AWS.SQS.GetQueueAttributes

-- | Creates a value of <a>GetQueueAttributes</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gqaAttributeNames</a> - A list of attributes for which to
--   retrieve information. The following attributes are supported: *
--   <tt>All</tt> - Returns all values. *
--   <tt>ApproximateNumberOfMessages</tt> - Returns the approximate number
--   of visible messages in a queue. For more information, see <a>Resources
--   Required to Process Messages</a> in the <i>Amazon SQS Developer
--   Guide</i> . * <tt>ApproximateNumberOfMessagesDelayed</tt> - Returns
--   the approximate number of messages that are waiting to be added to the
--   queue. * <tt>ApproximateNumberOfMessagesNotVisible</tt> - Returns the
--   approximate number of messages that have not timed-out and are not
--   deleted. For more information, see <a>Resources Required to Process
--   Messages</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>CreatedTimestamp</tt> - Returns the time when the queue was
--   created in seconds (epoch time). * <tt>DelaySeconds</tt> - Returns the
--   default delay on the queue in seconds. *
--   <tt>LastModifiedTimestamp</tt> - Returns the time when the queue was
--   last changed in seconds (epoch time). * <tt>MaximumMessageSize</tt> -
--   Returns the limit of how many bytes a message can contain before
--   Amazon SQS rejects it. * <tt>MessageRetentionPeriod</tt> - Returns the
--   number of seconds for which Amazon SQS retains a message. *
--   <tt>Policy</tt> - Returns the policy of the queue. * <tt>QueueArn</tt>
--   - Returns the Amazon resource name (ARN) of the queue. *
--   <tt>ReceiveMessageWaitTimeSeconds</tt> - Returns the number of seconds
--   for which ReceiveMessage call will wait for a message to arrive. *
--   <tt>RedrivePolicy</tt> - Returns the parameters for dead letter queue
--   functionality of the source queue. For more information about the
--   redrive policy and dead letter queues, see <a>Using Amazon SQS Dead
--   Letter Queues</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>VisibilityTimeout</tt> - Returns the visibility timeout for the
--   queue. For more information about the visibility timeout, see
--   <a>Visibility Timeout</a> in the <i>Amazon SQS Developer Guide</i> .
--   The following attributes apply only to <a>FIFO (first-in-first-out)
--   queues</a> : * <tt>FifoQueue</tt> - Returns whether the queue is FIFO.
--   For more information, see <a>FIFO Queue Logic</a> in the <i>Amazon SQS
--   Developer Guide</i> . * <tt>ContentBasedDeduplication</tt> - Returns
--   whether content-based deduplication is enabled for the queue. For more
--   information, see <a>Exactly-Once Processing</a> in the <i>Amazon SQS
--   Developer Guide</i> .</li>
--   <li><a>gqaQueueURL</a> - The URL of the Amazon SQS queue to take
--   action on. Queue URLs are case-sensitive.</li>
--   </ul>
getQueueAttributes :: Text -> GetQueueAttributes

-- | <i>See:</i> <a>getQueueAttributes</a> smart constructor.
data GetQueueAttributes

-- | A list of attributes for which to retrieve information. The following
--   attributes are supported: * <tt>All</tt> - Returns all values. *
--   <tt>ApproximateNumberOfMessages</tt> - Returns the approximate number
--   of visible messages in a queue. For more information, see <a>Resources
--   Required to Process Messages</a> in the <i>Amazon SQS Developer
--   Guide</i> . * <tt>ApproximateNumberOfMessagesDelayed</tt> - Returns
--   the approximate number of messages that are waiting to be added to the
--   queue. * <tt>ApproximateNumberOfMessagesNotVisible</tt> - Returns the
--   approximate number of messages that have not timed-out and are not
--   deleted. For more information, see <a>Resources Required to Process
--   Messages</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>CreatedTimestamp</tt> - Returns the time when the queue was
--   created in seconds (epoch time). * <tt>DelaySeconds</tt> - Returns the
--   default delay on the queue in seconds. *
--   <tt>LastModifiedTimestamp</tt> - Returns the time when the queue was
--   last changed in seconds (epoch time). * <tt>MaximumMessageSize</tt> -
--   Returns the limit of how many bytes a message can contain before
--   Amazon SQS rejects it. * <tt>MessageRetentionPeriod</tt> - Returns the
--   number of seconds for which Amazon SQS retains a message. *
--   <tt>Policy</tt> - Returns the policy of the queue. * <tt>QueueArn</tt>
--   - Returns the Amazon resource name (ARN) of the queue. *
--   <tt>ReceiveMessageWaitTimeSeconds</tt> - Returns the number of seconds
--   for which ReceiveMessage call will wait for a message to arrive. *
--   <tt>RedrivePolicy</tt> - Returns the parameters for dead letter queue
--   functionality of the source queue. For more information about the
--   redrive policy and dead letter queues, see <a>Using Amazon SQS Dead
--   Letter Queues</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>VisibilityTimeout</tt> - Returns the visibility timeout for the
--   queue. For more information about the visibility timeout, see
--   <a>Visibility Timeout</a> in the <i>Amazon SQS Developer Guide</i> .
--   The following attributes apply only to <a>FIFO (first-in-first-out)
--   queues</a> : * <tt>FifoQueue</tt> - Returns whether the queue is FIFO.
--   For more information, see <a>FIFO Queue Logic</a> in the <i>Amazon SQS
--   Developer Guide</i> . * <tt>ContentBasedDeduplication</tt> - Returns
--   whether content-based deduplication is enabled for the queue. For more
--   information, see <a>Exactly-Once Processing</a> in the <i>Amazon SQS
--   Developer Guide</i> .
gqaAttributeNames :: Lens' GetQueueAttributes [QueueAttributeName]

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
gqaQueueURL :: Lens' GetQueueAttributes Text

-- | Creates a value of <a>GetQueueAttributesResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gqarsAttributes</a> - A map of attributes to the respective
--   values.</li>
--   <li><a>gqarsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
getQueueAttributesResponse :: Int -> GetQueueAttributesResponse

-- | A list of returned queue attributes.
--   
--   <i>See:</i> <a>getQueueAttributesResponse</a> smart constructor.
data GetQueueAttributesResponse

-- | A map of attributes to the respective values.
gqarsAttributes :: Lens' GetQueueAttributesResponse (HashMap QueueAttributeName Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
gqarsResponseStatus :: Lens' GetQueueAttributesResponse Int
instance GHC.Generics.Generic Network.AWS.SQS.GetQueueAttributes.GetQueueAttributesResponse
instance Data.Data.Data Network.AWS.SQS.GetQueueAttributes.GetQueueAttributesResponse
instance GHC.Show.Show Network.AWS.SQS.GetQueueAttributes.GetQueueAttributesResponse
instance GHC.Read.Read Network.AWS.SQS.GetQueueAttributes.GetQueueAttributesResponse
instance GHC.Classes.Eq Network.AWS.SQS.GetQueueAttributes.GetQueueAttributesResponse
instance GHC.Generics.Generic Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance Data.Data.Data Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance GHC.Show.Show Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance GHC.Read.Read Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance GHC.Classes.Eq Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance Data.Hashable.Class.Hashable Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance Control.DeepSeq.NFData Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.GetQueueAttributes.GetQueueAttributes
instance Control.DeepSeq.NFData Network.AWS.SQS.GetQueueAttributes.GetQueueAttributesResponse


-- | Deletes the queue specified by the <b>queue URL</b> , regardless of
--   whether the queue is empty. If the specified queue doesn't exist,
--   Amazon SQS returns a successful response.
--   
--   <i>Important:</i> Use <tt>DeleteQueue</tt> 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 <tt>SendMessage</tt> 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 <a>How Amazon SQS Queues
--   Work</a> in the <i>Amazon SQS Developer Guide</i> .
module Network.AWS.SQS.DeleteQueue

-- | Creates a value of <a>DeleteQueue</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dqQueueURL</a> - The URL of the Amazon SQS queue to take action
--   on. Queue URLs are case-sensitive.</li>
--   </ul>
deleteQueue :: Text -> DeleteQueue

-- | <i>See:</i> <a>deleteQueue</a> smart constructor.
data DeleteQueue

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
dqQueueURL :: Lens' DeleteQueue Text

-- | Creates a value of <a>DeleteQueueResponse</a> with the minimum fields
--   required to make a request.
deleteQueueResponse :: DeleteQueueResponse

-- | <i>See:</i> <a>deleteQueueResponse</a> smart constructor.
data DeleteQueueResponse
instance GHC.Generics.Generic Network.AWS.SQS.DeleteQueue.DeleteQueueResponse
instance Data.Data.Data Network.AWS.SQS.DeleteQueue.DeleteQueueResponse
instance GHC.Show.Show Network.AWS.SQS.DeleteQueue.DeleteQueueResponse
instance GHC.Read.Read Network.AWS.SQS.DeleteQueue.DeleteQueueResponse
instance GHC.Classes.Eq Network.AWS.SQS.DeleteQueue.DeleteQueueResponse
instance GHC.Generics.Generic Network.AWS.SQS.DeleteQueue.DeleteQueue
instance Data.Data.Data Network.AWS.SQS.DeleteQueue.DeleteQueue
instance GHC.Show.Show Network.AWS.SQS.DeleteQueue.DeleteQueue
instance GHC.Read.Read Network.AWS.SQS.DeleteQueue.DeleteQueue
instance GHC.Classes.Eq Network.AWS.SQS.DeleteQueue.DeleteQueue
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.DeleteQueue.DeleteQueue
instance Data.Hashable.Class.Hashable Network.AWS.SQS.DeleteQueue.DeleteQueue
instance Control.DeepSeq.NFData Network.AWS.SQS.DeleteQueue.DeleteQueue
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.DeleteQueue.DeleteQueue
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.DeleteQueue.DeleteQueue
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.DeleteQueue.DeleteQueue
instance Control.DeepSeq.NFData Network.AWS.SQS.DeleteQueue.DeleteQueueResponse


-- | Deletes up to ten messages from the specified queue. This is a batch
--   version of <tt>DeleteMessage</tt> . The result of the delete action on
--   each message is reported individually in the response.
--   
--   <i>Important:</i> 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.
--   
--   <pre>
--   &amp;amp;Attribute.1=this
--   </pre>
--   
--   <pre>
--   &amp;amp;Attribute.2=that
--   </pre>
module Network.AWS.SQS.DeleteMessageBatch

-- | Creates a value of <a>DeleteMessageBatch</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dmbQueueURL</a> - The URL of the Amazon SQS queue to take
--   action on. Queue URLs are case-sensitive.</li>
--   <li><a>dmbEntries</a> - A list of receipt handles for the messages to
--   be deleted.</li>
--   </ul>
deleteMessageBatch :: Text -> DeleteMessageBatch

-- | <i>See:</i> <a>deleteMessageBatch</a> smart constructor.
data DeleteMessageBatch

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
dmbQueueURL :: Lens' DeleteMessageBatch Text

-- | A list of receipt handles for the messages to be deleted.
dmbEntries :: Lens' DeleteMessageBatch [DeleteMessageBatchRequestEntry]

-- | Creates a value of <a>DeleteMessageBatchResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dmbrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>dmbrsSuccessful</a> - A list of
--   <a>DeleteMessageBatchResultEntry</a> items.</li>
--   <li><a>dmbrsFailed</a> - A list of <a>BatchResultErrorEntry</a>
--   items.</li>
--   </ul>
deleteMessageBatchResponse :: Int -> DeleteMessageBatchResponse

-- | For each message in the batch, the response contains a
--   <a>DeleteMessageBatchResultEntry</a> tag if the message is deleted or
--   a <a>BatchResultErrorEntry</a> tag if the message can't be deleted.
--   
--   <i>See:</i> <a>deleteMessageBatchResponse</a> smart constructor.
data DeleteMessageBatchResponse

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
dmbrsResponseStatus :: Lens' DeleteMessageBatchResponse Int

-- | A list of <a>DeleteMessageBatchResultEntry</a> items.
dmbrsSuccessful :: Lens' DeleteMessageBatchResponse [DeleteMessageBatchResultEntry]

-- | A list of <a>BatchResultErrorEntry</a> items.
dmbrsFailed :: Lens' DeleteMessageBatchResponse [BatchResultErrorEntry]
instance GHC.Generics.Generic Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatchResponse
instance Data.Data.Data Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatchResponse
instance GHC.Show.Show Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatchResponse
instance GHC.Read.Read Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatchResponse
instance GHC.Classes.Eq Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatchResponse
instance GHC.Generics.Generic Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance Data.Data.Data Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance GHC.Show.Show Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance GHC.Read.Read Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance GHC.Classes.Eq Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance Data.Hashable.Class.Hashable Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance Control.DeepSeq.NFData Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatch
instance Control.DeepSeq.NFData Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatchResponse


-- | Deletes the specified message from the specified queue. You specify
--   the message by using the message's <tt>receipt handle</tt> and not the
--   <tt>message ID</tt> 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.
--   
--   <i>Important:</i> 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

-- | Creates a value of <a>DeleteMessage</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dmQueueURL</a> - The URL of the Amazon SQS queue to take action
--   on. Queue URLs are case-sensitive.</li>
--   <li><a>dmReceiptHandle</a> - The receipt handle associated with the
--   message to delete.</li>
--   </ul>
deleteMessage :: Text -> Text -> DeleteMessage

-- | <i>See:</i> <a>deleteMessage</a> smart constructor.
data DeleteMessage

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
dmQueueURL :: Lens' DeleteMessage Text

-- | The receipt handle associated with the message to delete.
dmReceiptHandle :: Lens' DeleteMessage Text

-- | Creates a value of <a>DeleteMessageResponse</a> with the minimum
--   fields required to make a request.
deleteMessageResponse :: DeleteMessageResponse

-- | <i>See:</i> <a>deleteMessageResponse</a> smart constructor.
data DeleteMessageResponse
instance GHC.Generics.Generic Network.AWS.SQS.DeleteMessage.DeleteMessageResponse
instance Data.Data.Data Network.AWS.SQS.DeleteMessage.DeleteMessageResponse
instance GHC.Show.Show Network.AWS.SQS.DeleteMessage.DeleteMessageResponse
instance GHC.Read.Read Network.AWS.SQS.DeleteMessage.DeleteMessageResponse
instance GHC.Classes.Eq Network.AWS.SQS.DeleteMessage.DeleteMessageResponse
instance GHC.Generics.Generic Network.AWS.SQS.DeleteMessage.DeleteMessage
instance Data.Data.Data Network.AWS.SQS.DeleteMessage.DeleteMessage
instance GHC.Show.Show Network.AWS.SQS.DeleteMessage.DeleteMessage
instance GHC.Read.Read Network.AWS.SQS.DeleteMessage.DeleteMessage
instance GHC.Classes.Eq Network.AWS.SQS.DeleteMessage.DeleteMessage
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.DeleteMessage.DeleteMessage
instance Data.Hashable.Class.Hashable Network.AWS.SQS.DeleteMessage.DeleteMessage
instance Control.DeepSeq.NFData Network.AWS.SQS.DeleteMessage.DeleteMessage
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.DeleteMessage.DeleteMessage
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.DeleteMessage.DeleteMessage
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.DeleteMessage.DeleteMessage
instance Control.DeepSeq.NFData Network.AWS.SQS.DeleteMessage.DeleteMessageResponse


-- | 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.
--   
--   <ul>
--   <li>If you don't specify the <tt>FifoQueue</tt> attribute, Amazon SQS
--   creates a standard queue.</li>
--   <li>If you don't provide a value for an attribute, the queue is
--   created with the default value for the attribute.</li>
--   <li>If you delete a queue, you must wait at least 60 seconds before
--   creating a queue with the same name.</li>
--   </ul>
--   
--   To successfully create a new queue, you must provide a queue name that
--   adheres to the <a>limits related to queues</a> and is unique within
--   the scope of your queues.
--   
--   To get the queue URL, use the <tt>GetQueueUrl</tt> action.
--   <tt>GetQueueUrl</tt> requires only the <tt>QueueName</tt> parameter.
--   
--   <ul>
--   <li>If you provide the name of an existing queue along with the exact
--   names and values of all the queue's attributes, <tt>CreateQueue</tt>
--   returns the queue URL for the existing queue.</li>
--   <li>If the queue name, attribute names, or attribute values don't
--   match an existing queue, <tt>CreateQueue</tt> returns an error.</li>
--   </ul>
--   
--   Some API actions take lists of parameters. Specify these lists using
--   the <tt>param.n</tt> notation. Values of <tt>n</tt> are integers
--   starting from 1. The following is an example of a parameter list with
--   two elements:
--   
--   <pre>
--   &amp;amp;Attribute.1=this
--   </pre>
--   
--   <pre>
--   &amp;amp;Attribute.2=that
--   </pre>
module Network.AWS.SQS.CreateQueue

-- | Creates a value of <a>CreateQueue</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cqAttributes</a> - A map of attributes with their corresponding
--   values. The following lists the names, descriptions, and values of the
--   special request parameters that the <tt>CreateQueue</tt> action uses:
--   * <tt>DelaySeconds</tt> - 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). * <tt>MaximumMessageSize</tt> - 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). *
--   <tt>MessageRetentionPeriod</tt> - 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). *
--   <tt>Policy</tt> - The queue's policy. A valid AWS policy. For more
--   information about policy structure, see <a>Overview of AWS IAM
--   Policies</a> in the <i>Amazon IAM User Guide</i> . *
--   <tt>ReceiveMessageWaitTimeSeconds</tt> - The number of seconds for
--   which a <tt>ReceiveMessage</tt> action will wait for a message to
--   arrive. An integer from 0 to 20 (seconds). The default is 0. *
--   <tt>RedrivePolicy</tt> - The parameters for the dead letter queue
--   functionality of the source queue. For more information about the
--   redrive policy and dead letter queues, see <a>Using Amazon SQS Dead
--   Letter Queues</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>VisibilityTimeout</tt> - 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 <a>Visibility
--   Timeout</a> in the <i>Amazon SQS Developer Guide</i> . The following
--   attributes apply only to <a>FIFO (first-in-first-out) queues</a> : *
--   <tt>FifoQueue</tt> - 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
--   <tt>MessageGroupId</tt> explicitly. For more information, see <a>FIFO
--   Queue Logic</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>ContentBasedDeduplication</tt> - Enables content-based
--   deduplication. For more information, see <a>Exactly-Once
--   Processing</a> in the <i>Amazon SQS Developer Guide</i> . * Every
--   message must have a unique <tt>MessageDeduplicationId</tt> , * You may
--   provide a <tt>MessageDeduplicationId</tt> explicitly. * If you aren't
--   able to provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , 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
--   <tt>ApproximateNumberOfMessages</tt> ,
--   <tt>ApproximateNumberOfMessagesDelayed</tt> ,
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> ,
--   <tt>CreatedTimestamp</tt> , <tt>LastModifiedTimestamp</tt> , and
--   <tt>QueueArn</tt> ) will be ignored.</li>
--   <li><a>cqQueueName</a> - 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 (<tt>-</tt> ), and underscores (<tt>_</tt> ). * A FIFO queue
--   name must end with the <tt>.fifo</tt> suffix. Queue names are
--   case-sensitive.</li>
--   </ul>
createQueue :: Text -> CreateQueue

-- | <i>See:</i> <a>createQueue</a> smart constructor.
data CreateQueue

-- | A map of attributes with their corresponding values. The following
--   lists the names, descriptions, and values of the special request
--   parameters that the <tt>CreateQueue</tt> action uses: *
--   <tt>DelaySeconds</tt> - 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). * <tt>MaximumMessageSize</tt> - 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). *
--   <tt>MessageRetentionPeriod</tt> - 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). *
--   <tt>Policy</tt> - The queue's policy. A valid AWS policy. For more
--   information about policy structure, see <a>Overview of AWS IAM
--   Policies</a> in the <i>Amazon IAM User Guide</i> . *
--   <tt>ReceiveMessageWaitTimeSeconds</tt> - The number of seconds for
--   which a <tt>ReceiveMessage</tt> action will wait for a message to
--   arrive. An integer from 0 to 20 (seconds). The default is 0. *
--   <tt>RedrivePolicy</tt> - The parameters for the dead letter queue
--   functionality of the source queue. For more information about the
--   redrive policy and dead letter queues, see <a>Using Amazon SQS Dead
--   Letter Queues</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>VisibilityTimeout</tt> - 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 <a>Visibility
--   Timeout</a> in the <i>Amazon SQS Developer Guide</i> . The following
--   attributes apply only to <a>FIFO (first-in-first-out) queues</a> : *
--   <tt>FifoQueue</tt> - 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
--   <tt>MessageGroupId</tt> explicitly. For more information, see <a>FIFO
--   Queue Logic</a> in the <i>Amazon SQS Developer Guide</i> . *
--   <tt>ContentBasedDeduplication</tt> - Enables content-based
--   deduplication. For more information, see <a>Exactly-Once
--   Processing</a> in the <i>Amazon SQS Developer Guide</i> . * Every
--   message must have a unique <tt>MessageDeduplicationId</tt> , * You may
--   provide a <tt>MessageDeduplicationId</tt> explicitly. * If you aren't
--   able to provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , 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
--   <tt>ApproximateNumberOfMessages</tt> ,
--   <tt>ApproximateNumberOfMessagesDelayed</tt> ,
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> ,
--   <tt>CreatedTimestamp</tt> , <tt>LastModifiedTimestamp</tt> , and
--   <tt>QueueArn</tt> ) will be ignored.
cqAttributes :: Lens' CreateQueue (HashMap QueueAttributeName Text)

-- | 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 (<tt>-</tt> ), and
--   underscores (<tt>_</tt> ). * A FIFO queue name must end with the
--   <tt>.fifo</tt> suffix. Queue names are case-sensitive.
cqQueueName :: Lens' CreateQueue Text

-- | Creates a value of <a>CreateQueueResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cqrsQueueURL</a> - The URL for the created Amazon SQS
--   queue.</li>
--   <li><a>cqrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
createQueueResponse :: Int -> CreateQueueResponse

-- | Returns the QueueUrl element of the created queue.
--   
--   <i>See:</i> <a>createQueueResponse</a> smart constructor.
data CreateQueueResponse

-- | The URL for the created Amazon SQS queue.
cqrsQueueURL :: Lens' CreateQueueResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
cqrsResponseStatus :: Lens' CreateQueueResponse Int
instance GHC.Generics.Generic Network.AWS.SQS.CreateQueue.CreateQueueResponse
instance Data.Data.Data Network.AWS.SQS.CreateQueue.CreateQueueResponse
instance GHC.Show.Show Network.AWS.SQS.CreateQueue.CreateQueueResponse
instance GHC.Read.Read Network.AWS.SQS.CreateQueue.CreateQueueResponse
instance GHC.Classes.Eq Network.AWS.SQS.CreateQueue.CreateQueueResponse
instance GHC.Generics.Generic Network.AWS.SQS.CreateQueue.CreateQueue
instance Data.Data.Data Network.AWS.SQS.CreateQueue.CreateQueue
instance GHC.Show.Show Network.AWS.SQS.CreateQueue.CreateQueue
instance GHC.Read.Read Network.AWS.SQS.CreateQueue.CreateQueue
instance GHC.Classes.Eq Network.AWS.SQS.CreateQueue.CreateQueue
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.CreateQueue.CreateQueue
instance Data.Hashable.Class.Hashable Network.AWS.SQS.CreateQueue.CreateQueue
instance Control.DeepSeq.NFData Network.AWS.SQS.CreateQueue.CreateQueue
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.CreateQueue.CreateQueue
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.CreateQueue.CreateQueue
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.CreateQueue.CreateQueue
instance Control.DeepSeq.NFData Network.AWS.SQS.CreateQueue.CreateQueueResponse


-- | Changes the visibility timeout of multiple messages. This is a batch
--   version of <tt>ChangeMessageVisibility</tt> . The result of the action
--   on each message is reported individually in the response. You can send
--   up to 10 <tt>ChangeMessageVisibility</tt> requests with each
--   <tt>ChangeMessageVisibilityBatch</tt> action.
--   
--   <i>Important:</i> 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.
--   
--   <pre>
--   &amp;amp;Attribute.1=this
--   </pre>
--   
--   <pre>
--   &amp;amp;Attribute.2=that
--   </pre>
module Network.AWS.SQS.ChangeMessageVisibilityBatch

-- | Creates a value of <a>ChangeMessageVisibilityBatch</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cmvbQueueURL</a> - The URL of the Amazon SQS queue to take
--   action on. Queue URLs are case-sensitive.</li>
--   <li><a>cmvbEntries</a> - A list of receipt handles of the messages for
--   which the visibility timeout must be changed.</li>
--   </ul>
changeMessageVisibilityBatch :: Text -> ChangeMessageVisibilityBatch

-- | <i>See:</i> <a>changeMessageVisibilityBatch</a> smart constructor.
data ChangeMessageVisibilityBatch

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
cmvbQueueURL :: Lens' ChangeMessageVisibilityBatch Text

-- | A list of receipt handles of the messages for which the visibility
--   timeout must be changed.
cmvbEntries :: Lens' ChangeMessageVisibilityBatch [ChangeMessageVisibilityBatchRequestEntry]

-- | Creates a value of <a>ChangeMessageVisibilityBatchResponse</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cmvbrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>cmvbrsSuccessful</a> - A list of
--   <a>ChangeMessageVisibilityBatchResultEntry</a> items.</li>
--   <li><a>cmvbrsFailed</a> - A list of <a>BatchResultErrorEntry</a>
--   items.</li>
--   </ul>
changeMessageVisibilityBatchResponse :: Int -> ChangeMessageVisibilityBatchResponse

-- | For each message in the batch, the response contains a
--   <a>ChangeMessageVisibilityBatchResultEntry</a> tag if the message
--   succeeds or a <a>BatchResultErrorEntry</a> tag if the message fails.
--   
--   <i>See:</i> <a>changeMessageVisibilityBatchResponse</a> smart
--   constructor.
data ChangeMessageVisibilityBatchResponse

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
cmvbrsResponseStatus :: Lens' ChangeMessageVisibilityBatchResponse Int

-- | A list of <a>ChangeMessageVisibilityBatchResultEntry</a> items.
cmvbrsSuccessful :: Lens' ChangeMessageVisibilityBatchResponse [ChangeMessageVisibilityBatchResultEntry]

-- | A list of <a>BatchResultErrorEntry</a> items.
cmvbrsFailed :: Lens' ChangeMessageVisibilityBatchResponse [BatchResultErrorEntry]
instance GHC.Generics.Generic Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatchResponse
instance Data.Data.Data Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatchResponse
instance GHC.Show.Show Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatchResponse
instance GHC.Read.Read Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatchResponse
instance GHC.Classes.Eq Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatchResponse
instance GHC.Generics.Generic Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance Data.Data.Data Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance GHC.Show.Show Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance GHC.Read.Read Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance GHC.Classes.Eq Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance Data.Hashable.Class.Hashable Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance Control.DeepSeq.NFData Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatch
instance Control.DeepSeq.NFData Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatchResponse


-- | 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 <a>Visibility
--   Timeout</a> in the <i>Amazon SQS Developer Guide</i> .)
--   
--   For example, let's say you have a message and its default message
--   visibility timeout is 5 minutes. After 3 minutes, you call
--   <tt>ChangeMessageVisiblity</tt> 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.
--   
--   <i>Important:</i> If you attempt to set the <tt>VisibilityTimeout</tt>
--   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.
--   
--   <i>Important:</i> 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 <tt>ChangeMessageVisibility</tt>
--   action.
module Network.AWS.SQS.ChangeMessageVisibility

-- | Creates a value of <a>ChangeMessageVisibility</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cmvQueueURL</a> - The URL of the Amazon SQS queue to take
--   action on. Queue URLs are case-sensitive.</li>
--   <li><a>cmvReceiptHandle</a> - The receipt handle associated with the
--   message whose visibility timeout should be changed. This parameter is
--   returned by the <tt>ReceiveMessage</tt> action.</li>
--   <li><a>cmvVisibilityTimeout</a> - The new value (in seconds - from 0
--   to 43200 - maximum 12 hours) for the message's visibility
--   timeout.</li>
--   </ul>
changeMessageVisibility :: Text -> Text -> Int -> ChangeMessageVisibility

-- | <i>See:</i> <a>changeMessageVisibility</a> smart constructor.
data ChangeMessageVisibility

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
cmvQueueURL :: Lens' ChangeMessageVisibility Text

-- | The receipt handle associated with the message whose visibility
--   timeout should be changed. This parameter is returned by the
--   <tt>ReceiveMessage</tt> action.
cmvReceiptHandle :: Lens' ChangeMessageVisibility Text

-- | The new value (in seconds - from 0 to 43200 - maximum 12 hours) for
--   the message's visibility timeout.
cmvVisibilityTimeout :: Lens' ChangeMessageVisibility Int

-- | Creates a value of <a>ChangeMessageVisibilityResponse</a> with the
--   minimum fields required to make a request.
changeMessageVisibilityResponse :: ChangeMessageVisibilityResponse

-- | <i>See:</i> <a>changeMessageVisibilityResponse</a> smart constructor.
data ChangeMessageVisibilityResponse
instance GHC.Generics.Generic Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibilityResponse
instance Data.Data.Data Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibilityResponse
instance GHC.Show.Show Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibilityResponse
instance GHC.Read.Read Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibilityResponse
instance GHC.Classes.Eq Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibilityResponse
instance GHC.Generics.Generic Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance Data.Data.Data Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance GHC.Show.Show Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance GHC.Read.Read Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance GHC.Classes.Eq Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance Data.Hashable.Class.Hashable Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance Control.DeepSeq.NFData Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibility
instance Control.DeepSeq.NFData Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibilityResponse


-- | Adds a permission to a queue for a specific <a>principal</a> . 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
--   <a>Shared Queues</a> in the <i>Amazon SQS Developer Guide</i> .
--   
--   <pre>
--   &amp;amp;Attribute.1=this
--   </pre>
--   
--   <pre>
--   &amp;amp;Attribute.2=that
--   </pre>
module Network.AWS.SQS.AddPermission

-- | Creates a value of <a>AddPermission</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>apQueueURL</a> - The URL of the Amazon SQS queue to take action
--   on. Queue URLs are case-sensitive.</li>
--   <li><a>apLabel</a> - The unique identification of the permission
--   you're setting (e.g., <tt>AliceSendMessage</tt> ). Constraints:
--   Maximum 80 characters; alphanumeric characters, hyphens (-), and
--   underscores (_) are allowed.</li>
--   <li><a>apAWSAccountIds</a> - The AWS account number of the
--   <a>principal</a> 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 <a>Your
--   AWS Identifiers</a> in the <i>Amazon SQS Developer Guide</i> .</li>
--   <li><a>apActions</a> - The action the client wants to allow for the
--   specified principal. The following are valid values: <tt>* |
--   SendMessage | ReceiveMessage | DeleteMessage | ChangeMessageVisibility
--   | GetQueueAttributes | GetQueueUrl</tt> . For more information about
--   these actions, see <a>Understanding Permissions</a> in the <i>Amazon
--   SQS Developer Guide</i> . Specifying <tt>SendMessage</tt> ,
--   <tt>DeleteMessage</tt> , or <tt>ChangeMessageVisibility</tt> for the
--   <tt>ActionName.n</tt> also grants permissions for the corresponding
--   batch versions of those actions: <tt>SendMessageBatch</tt> ,
--   <tt>DeleteMessageBatch</tt> , and
--   <tt>ChangeMessageVisibilityBatch</tt> .</li>
--   </ul>
addPermission :: Text -> Text -> AddPermission

-- | <i>See:</i> <a>addPermission</a> smart constructor.
data AddPermission

-- | The URL of the Amazon SQS queue to take action on. Queue URLs are
--   case-sensitive.
apQueueURL :: Lens' AddPermission Text

-- | The unique identification of the permission you're setting (e.g.,
--   <tt>AliceSendMessage</tt> ). Constraints: Maximum 80 characters;
--   alphanumeric characters, hyphens (-), and underscores (_) are allowed.
apLabel :: Lens' AddPermission Text

-- | The AWS account number of the <a>principal</a> 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 <a>Your AWS Identifiers</a> in the
--   <i>Amazon SQS Developer Guide</i> .
apAWSAccountIds :: Lens' AddPermission [Text]

-- | The action the client wants to allow for the specified principal. The
--   following are valid values: <tt>* | SendMessage | ReceiveMessage |
--   DeleteMessage | ChangeMessageVisibility | GetQueueAttributes |
--   GetQueueUrl</tt> . For more information about these actions, see
--   <a>Understanding Permissions</a> in the <i>Amazon SQS Developer
--   Guide</i> . Specifying <tt>SendMessage</tt> , <tt>DeleteMessage</tt> ,
--   or <tt>ChangeMessageVisibility</tt> for the <tt>ActionName.n</tt> also
--   grants permissions for the corresponding batch versions of those
--   actions: <tt>SendMessageBatch</tt> , <tt>DeleteMessageBatch</tt> , and
--   <tt>ChangeMessageVisibilityBatch</tt> .
apActions :: Lens' AddPermission [Text]

-- | Creates a value of <a>AddPermissionResponse</a> with the minimum
--   fields required to make a request.
addPermissionResponse :: AddPermissionResponse

-- | <i>See:</i> <a>addPermissionResponse</a> smart constructor.
data AddPermissionResponse
instance GHC.Generics.Generic Network.AWS.SQS.AddPermission.AddPermissionResponse
instance Data.Data.Data Network.AWS.SQS.AddPermission.AddPermissionResponse
instance GHC.Show.Show Network.AWS.SQS.AddPermission.AddPermissionResponse
instance GHC.Read.Read Network.AWS.SQS.AddPermission.AddPermissionResponse
instance GHC.Classes.Eq Network.AWS.SQS.AddPermission.AddPermissionResponse
instance GHC.Generics.Generic Network.AWS.SQS.AddPermission.AddPermission
instance Data.Data.Data Network.AWS.SQS.AddPermission.AddPermission
instance GHC.Show.Show Network.AWS.SQS.AddPermission.AddPermission
instance GHC.Read.Read Network.AWS.SQS.AddPermission.AddPermission
instance GHC.Classes.Eq Network.AWS.SQS.AddPermission.AddPermission
instance Network.AWS.Types.AWSRequest Network.AWS.SQS.AddPermission.AddPermission
instance Data.Hashable.Class.Hashable Network.AWS.SQS.AddPermission.AddPermission
instance Control.DeepSeq.NFData Network.AWS.SQS.AddPermission.AddPermission
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SQS.AddPermission.AddPermission
instance Network.AWS.Data.Path.ToPath Network.AWS.SQS.AddPermission.AddPermission
instance Network.AWS.Data.Query.ToQuery Network.AWS.SQS.AddPermission.AddPermission
instance Control.DeepSeq.NFData Network.AWS.SQS.AddPermission.AddPermissionResponse


-- | Welcome to the <i>Amazon Simple Queue Service API Reference</i> . 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.
--   
--   <b>Topics</b>
--   
--   <ul>
--   <li></li>
--   <li></li>
--   <li><tt>CommonParameters</tt></li>
--   <li><tt>CommonErrors</tt></li>
--   </ul>
--   
--   <b>Helpful Links</b>
--   
--   <ul>
--   <li><a>Making API Requests</a></li>
--   <li><a>Amazon SQS product page</a></li>
--   <li><a>Using Amazon SQS Message Attributes</a></li>
--   <li><a>Using Amazon SQS Dead Letter Queues</a></li>
--   <li><a>Regions and Endpoints</a></li>
--   </ul>
--   
--   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:
--   
--   <ul>
--   <li>Cryptographically signing your service requests</li>
--   <li>Retrying requests</li>
--   <li>Handling error responses</li>
--   </ul>
--   
--   For a list of available SDKs, see <a>Tools for Amazon Web Services</a>
--   .
module Network.AWS.SQS

-- | API version <tt>2012-11-05</tt> of the Amazon Simple Queue Service SDK
--   configuration.
sqs :: Service

-- | The <tt>Id</tt> of a batch entry in a batch request doesn't abide by
--   the specification.
_InvalidBatchEntryId :: AsError a => Getting (First ServiceError) a ServiceError

-- | Batch request contains more number of entries than permissible.
_TooManyEntriesInBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError

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

-- | The queue referred to doesn't exist.
_QueueDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError

-- | The attribute referred to doesn't exist.
_InvalidAttributeName :: AsError a => Getting (First ServiceError) a ServiceError

-- | Error code 400. Unsupported operation.
_UnsupportedOperation :: AsError a => Getting (First ServiceError) a ServiceError

-- | The message contains characters outside the allowed set.
_InvalidMessageContents :: AsError a => Getting (First ServiceError) a ServiceError

-- | The length of all the messages put together is more than the limit.
_BatchRequestTooLong :: AsError a => Getting (First ServiceError) a ServiceError

-- | 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. <tt>AddPermission</tt> returns this
--   error if the maximum number of permissions for the queue has already
--   been reached.
_OverLimit :: AsError a => Getting (First ServiceError) a ServiceError

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

-- | Indicates that the specified queue previously received a
--   <tt>PurgeQueue</tt> 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

-- | The receipt handle is not valid for the current version.
_InvalidIdFormat :: AsError a => Getting (First ServiceError) a ServiceError

-- | The receipt handle provided is not valid.
_ReceiptHandleIsInvalid :: AsError a => Getting (First ServiceError) a ServiceError

-- | Batch request doesn't contain an entry.
_EmptyBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError

-- | Two or more batch entries have the same <tt>Id</tt> in the request.
_BatchEntryIdsNotDistinct :: AsError a => Getting (First ServiceError) a ServiceError

-- | The message referred to is not in flight.
_MessageNotInflight :: AsError a => Getting (First ServiceError) a ServiceError
data MessageAttribute
All :: MessageAttribute
ApproximateFirstReceiveTimestamp :: MessageAttribute
ApproximateReceiveCount :: MessageAttribute
SenderId :: MessageAttribute
SentTimestamp :: MessageAttribute
data QueueAttributeName
QANAll :: QueueAttributeName
QANApproximateNumberOfMessages :: QueueAttributeName
QANApproximateNumberOfMessagesDelayed :: QueueAttributeName
QANApproximateNumberOfMessagesNotVisible :: QueueAttributeName
QANContentBasedDeduplication :: QueueAttributeName
QANCreatedTimestamp :: QueueAttributeName
QANDelaySeconds :: QueueAttributeName
QANFifoQueue :: QueueAttributeName
QANLastModifiedTimestamp :: QueueAttributeName
QANMaximumMessageSize :: QueueAttributeName
QANMessageRetentionPeriod :: QueueAttributeName
QANPolicy :: QueueAttributeName
QANQueueARN :: QueueAttributeName
QANReceiveMessageWaitTimeSeconds :: QueueAttributeName
QANRedrivePolicy :: QueueAttributeName
QANVisibilityTimeout :: QueueAttributeName

-- | 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.
--   
--   <i>See:</i> <a>batchResultErrorEntry</a> smart constructor.
data BatchResultErrorEntry

-- | Creates a value of <a>BatchResultErrorEntry</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>breeMessage</a> - A message explaining why the action failed on
--   this entry.</li>
--   <li><a>breeId</a> - The id of an entry in a batch request.</li>
--   <li><a>breeSenderFault</a> - Whether the error happened due to the
--   sender's fault.</li>
--   <li><a>breeCode</a> - An error code representing why the action failed
--   on this entry.</li>
--   </ul>
batchResultErrorEntry :: Text -> Bool -> Text -> BatchResultErrorEntry

-- | A message explaining why the action failed on this entry.
breeMessage :: Lens' BatchResultErrorEntry (Maybe Text)

-- | The id of an entry in a batch request.
breeId :: Lens' BatchResultErrorEntry Text

-- | Whether the error happened due to the sender's fault.
breeSenderFault :: Lens' BatchResultErrorEntry Bool

-- | An error code representing why the action failed on this entry.
breeCode :: Lens' BatchResultErrorEntry Text

-- | Encloses a receipt handle and an entry id for each message in
--   <tt>ChangeMessageVisibilityBatch</tt> .
--   
--   <i>Important:</i> All of the following parameters are list parameters
--   that must be prefixed with
--   <tt>ChangeMessageVisibilityBatchRequestEntry.n</tt> , where <tt>n</tt>
--   is an integer value starting with 1. For example, a parameter list for
--   this action might look like this:
--   
--   <pre>
--   &amp;amp;ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2
--   </pre>
--   
--   <pre>
--   &amp;amp;ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=<a>replaceable</a>Your_Receipt_Handle<a>/replaceable</a>
--   </pre>
--   
--   <pre>
--   &amp;amp;ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45
--   </pre>
--   
--   <i>See:</i> <a>changeMessageVisibilityBatchRequestEntry</a> smart
--   constructor.
data ChangeMessageVisibilityBatchRequestEntry

-- | Creates a value of <a>ChangeMessageVisibilityBatchRequestEntry</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cVisibilityTimeout</a> - The new value (in seconds) for the
--   message's visibility timeout.</li>
--   <li><a>cId</a> - An identifier for this particular receipt handle.
--   This is used to communicate the result. Note that the <tt>Id</tt> s of
--   a batch request need to be unique within the request.</li>
--   <li><a>cReceiptHandle</a> - A receipt handle.</li>
--   </ul>
changeMessageVisibilityBatchRequestEntry :: Text -> Text -> ChangeMessageVisibilityBatchRequestEntry

-- | The new value (in seconds) for the message's visibility timeout.
cVisibilityTimeout :: Lens' ChangeMessageVisibilityBatchRequestEntry (Maybe Int)

-- | An identifier for this particular receipt handle. This is used to
--   communicate the result. Note that the <tt>Id</tt> s of a batch request
--   need to be unique within the request.
cId :: Lens' ChangeMessageVisibilityBatchRequestEntry Text

-- | A receipt handle.
cReceiptHandle :: Lens' ChangeMessageVisibilityBatchRequestEntry Text

-- | Encloses the id of an entry in <tt>ChangeMessageVisibilityBatch</tt> .
--   
--   <i>See:</i> <a>changeMessageVisibilityBatchResultEntry</a> smart
--   constructor.
data ChangeMessageVisibilityBatchResultEntry

-- | Creates a value of <a>ChangeMessageVisibilityBatchResultEntry</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cmvbreId</a> - Represents a message whose visibility timeout
--   has been changed successfully.</li>
--   </ul>
changeMessageVisibilityBatchResultEntry :: Text -> ChangeMessageVisibilityBatchResultEntry

-- | Represents a message whose visibility timeout has been changed
--   successfully.
cmvbreId :: Lens' ChangeMessageVisibilityBatchResultEntry Text

-- | Encloses a receipt handle and an identifier for it.
--   
--   <i>See:</i> <a>deleteMessageBatchRequestEntry</a> smart constructor.
data DeleteMessageBatchRequestEntry

-- | Creates a value of <a>DeleteMessageBatchRequestEntry</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dmbreId</a> - An identifier for this particular receipt handle.
--   This is used to communicate the result. Note that the <tt>Id</tt> s of
--   a batch request need to be unique within the request.</li>
--   <li><a>dmbreReceiptHandle</a> - A receipt handle.</li>
--   </ul>
deleteMessageBatchRequestEntry :: Text -> Text -> DeleteMessageBatchRequestEntry

-- | An identifier for this particular receipt handle. This is used to
--   communicate the result. Note that the <tt>Id</tt> s of a batch request
--   need to be unique within the request.
dmbreId :: Lens' DeleteMessageBatchRequestEntry Text

-- | A receipt handle.
dmbreReceiptHandle :: Lens' DeleteMessageBatchRequestEntry Text

-- | Encloses the id an entry in <tt>DeleteMessageBatch</tt> .
--   
--   <i>See:</i> <a>deleteMessageBatchResultEntry</a> smart constructor.
data DeleteMessageBatchResultEntry

-- | Creates a value of <a>DeleteMessageBatchResultEntry</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dId</a> - Represents a successfully deleted message.</li>
--   </ul>
deleteMessageBatchResultEntry :: Text -> DeleteMessageBatchResultEntry

-- | Represents a successfully deleted message.
dId :: Lens' DeleteMessageBatchResultEntry Text

-- | An Amazon SQS message.
--   
--   <i>See:</i> <a>message</a> smart constructor.
data Message

-- | Creates a value of <a>Message</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>mMessageAttributes</a> - Each message attribute consists of a
--   Name, Type, and Value. For more information, see <a>Message Attribute
--   Items</a> in the <i>Amazon SQS Developer Guide</i> .</li>
--   <li><a>mMD5OfBody</a> - An MD5 digest of the non-URL-encoded message
--   body string.</li>
--   <li><a>mBody</a> - The message's contents (not URL-encoded).</li>
--   <li><a>mAttributes</a> - <tt>SenderId</tt> , <tt>SentTimestamp</tt> ,
--   <tt>ApproximateReceiveCount</tt> , and<i>or
--   <tt>ApproximateFirstReceiveTimestamp</tt> . <tt>SentTimestamp</tt> and
--   <tt>ApproximateFirstReceiveTimestamp</tt> are each returned as an
--   integer representing the
--   &lt;http:</i><i>en.wikipedia.org</i>wiki/Unix_time epoch time&gt; in
--   milliseconds.</li>
--   <li><a>mReceiptHandle</a> - 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.</li>
--   <li><a>mMessageId</a> - A unique identifier for the message. Message
--   IDs are considered unique across all AWS accounts for an extended
--   period of time.</li>
--   <li><a>mMD5OfMessageAttributes</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, see <a>RFC1321</a> .</li>
--   </ul>
message :: Message

-- | Each message attribute consists of a Name, Type, and Value. For more
--   information, see <a>Message Attribute Items</a> in the <i>Amazon SQS
--   Developer Guide</i> .
mMessageAttributes :: Lens' Message (HashMap Text MessageAttributeValue)

-- | An MD5 digest of the non-URL-encoded message body string.
mMD5OfBody :: Lens' Message (Maybe Text)

-- | The message's contents (not URL-encoded).
mBody :: Lens' Message (Maybe Text)

-- | <tt>SenderId</tt> , <tt>SentTimestamp</tt> ,
--   <tt>ApproximateReceiveCount</tt> , and<i>or
--   <tt>ApproximateFirstReceiveTimestamp</tt> . <tt>SentTimestamp</tt> and
--   <tt>ApproximateFirstReceiveTimestamp</tt> are each returned as an
--   integer representing the
--   &lt;http:</i><i>en.wikipedia.org</i>wiki/Unix_time epoch time&gt; in
--   milliseconds.
mAttributes :: Lens' Message (HashMap MessageAttribute Text)

-- | 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)

-- | A unique identifier for the message. Message IDs are considered unique
--   across all AWS accounts for an extended period of time.
mMessageId :: Lens' Message (Maybe Text)

-- | 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 <a>RFC1321</a> .
mMD5OfMessageAttributes :: Lens' Message (Maybe Text)

-- | 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 <tt>SendMessage</tt> .
--   
--   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).
--   
--   <i>See:</i> <a>messageAttributeValue</a> smart constructor.
data MessageAttributeValue

-- | Creates a value of <a>MessageAttributeValue</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>mavBinaryValue</a> - Binary type attributes can store any
--   binary data, for example, compressed data, encrypted data, or
--   images.-- <i>Note:</i> This <tt>Lens</tt> automatically encodes and
--   decodes Base64 data. The underlying isomorphism will encode to Base64
--   representation during serialisation, and decode from Base64
--   representation during deserialisation. This <tt>Lens</tt> accepts and
--   returns only raw unencoded data.</li>
--   <li><a>mavStringListValues</a> - Not implemented. Reserved for future
--   use.</li>
--   <li><a>mavStringValue</a> - Strings are Unicode with UTF8 binary
--   encoding. For a list of code values, see <a>ASCII Printable
--   Characters</a> .</li>
--   <li><a>mavBinaryListValues</a> - Not implemented. Reserved for future
--   use.</li>
--   <li><a>mavDataType</a> - 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 <a>Message Attribute Data Types</a> in the <i>Amazon
--   SQS Developer Guide</i> .</li>
--   </ul>
messageAttributeValue :: Text -> MessageAttributeValue

-- | Binary type attributes can store any binary data, for example,
--   compressed data, encrypted data, or images.-- <i>Note:</i> This
--   <tt>Lens</tt> automatically encodes and decodes Base64 data. The
--   underlying isomorphism will encode to Base64 representation during
--   serialisation, and decode from Base64 representation during
--   deserialisation. This <tt>Lens</tt> accepts and returns only raw
--   unencoded data.
mavBinaryValue :: Lens' MessageAttributeValue (Maybe ByteString)

-- | Not implemented. Reserved for future use.
mavStringListValues :: Lens' MessageAttributeValue [Text]

-- | Strings are Unicode with UTF8 binary encoding. For a list of code
--   values, see <a>ASCII Printable Characters</a> .
mavStringValue :: Lens' MessageAttributeValue (Maybe Text)

-- | Not implemented. Reserved for future use.
mavBinaryListValues :: Lens' MessageAttributeValue [ByteString]

-- | 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 <a>Message
--   Attribute Data Types</a> in the <i>Amazon SQS Developer Guide</i> .
mavDataType :: Lens' MessageAttributeValue Text

-- | Contains the details of a single Amazon SQS message along with a
--   <tt>Id</tt> .
--   
--   <i>See:</i> <a>sendMessageBatchRequestEntry</a> smart constructor.
data SendMessageBatchRequestEntry

-- | Creates a value of <a>SendMessageBatchRequestEntry</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sMessageAttributes</a> - Each message attribute consists of a
--   Name, Type, and Value. For more information, see <a>Message Attribute
--   Items</a> in the <i>Amazon SQS Developer Guide</i> .</li>
--   <li><a>sDelaySeconds</a> - The number of seconds (0 to 900 - 15
--   minutes) to delay a specific message. Messages with a positive
--   <tt>DelaySeconds</tt> 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.</li>
--   <li><a>sMessageDeduplicationId</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 <tt>MessageDeduplicationId</tt> is sent
--   successfully, subsequent messages with the same
--   <tt>MessageDeduplicationId</tt> are accepted successfully but aren't
--   delivered. For more information, see <a>Exactly-Once Processing</a> in
--   the <i>Amazon SQS Developer Guide</i> . * Every message must have a
--   unique <tt>MessageDeduplicationId</tt> , * You may provide a
--   <tt>MessageDeduplicationId</tt> explicitly. * If you aren't able to
--   provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , the two messages are treated as
--   duplicates and only one copy of the message is delivered. The length
--   of <tt>MessageDeduplicationId</tt> is 128 characters.
--   <tt>MessageDeduplicationId</tt> can contain alphanumeric characters
--   (<tt>a-z</tt> , <tt>A-Z</tt> , <tt>0-9</tt> ) and punctuation
--   (<tt>!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~<tt> ). For best
--   practices of using </tt>MessageDeduplicationId@ , see <a>Using the
--   MessageDeduplicationId Property</a> in the <i>Amazon Simple Queue
--   Service Developer Guide</i> .</li>
--   <li><a>sMessageGroupId</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
--   <tt>MessageGroupId</tt> 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 <tt>MessageGroupId</tt> with a message. If
--   you don't provide a <tt>MessageGroupId</tt> , the action fails. *
--   <tt>ReceiveMessage</tt> might return messages with multiple
--   <tt>MessageGroupId</tt> values. For each <tt>MessageGroupId</tt> , the
--   messages are sorted by time sent. The caller can't specify a
--   <tt>MessageGroupId</tt> . The length of <tt>MessageGroupId</tt> is 128
--   characters. Valid values are alphanumeric characters and punctuation
--   <tt>(!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~)<tt> . For best
--   practices of using </tt>MessageGroupId@ , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> .</li>
--   <li><a>sId</a> - An identifier for the message in this batch. This is
--   used to communicate the result. Note that the <tt>Id</tt> s of a batch
--   request need to be unique within the request.</li>
--   <li><a>sMessageBody</a> - Body of the message.</li>
--   </ul>
sendMessageBatchRequestEntry :: Text -> Text -> SendMessageBatchRequestEntry

-- | Each message attribute consists of a Name, Type, and Value. For more
--   information, see <a>Message Attribute Items</a> in the <i>Amazon SQS
--   Developer Guide</i> .
sMessageAttributes :: Lens' SendMessageBatchRequestEntry (HashMap Text MessageAttributeValue)

-- | The number of seconds (0 to 900 - 15 minutes) to delay a specific
--   message. Messages with a positive <tt>DelaySeconds</tt> 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)

-- | 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
--   <tt>MessageDeduplicationId</tt> is sent successfully, subsequent
--   messages with the same <tt>MessageDeduplicationId</tt> are accepted
--   successfully but aren't delivered. For more information, see
--   <a>Exactly-Once Processing</a> in the <i>Amazon SQS Developer
--   Guide</i> . * Every message must have a unique
--   <tt>MessageDeduplicationId</tt> , * You may provide a
--   <tt>MessageDeduplicationId</tt> explicitly. * If you aren't able to
--   provide a <tt>MessageDeduplicationId</tt> and you enable
--   <tt>ContentBasedDeduplication</tt> for your queue, Amazon SQS uses a
--   SHA-256 hash to generate the <tt>MessageDeduplicationId</tt> using the
--   body of the message (but not the attributes of the message). * If you
--   don't provide a <tt>MessageDeduplicationId</tt> and the queue doesn't
--   have <tt>ContentBasedDeduplication</tt> set, the action fails with an
--   error. * If the queue has <tt>ContentBasedDeduplication</tt> set, your
--   <tt>MessageDeduplicationId</tt> overrides the generated one. * When
--   <tt>ContentBasedDeduplication</tt> 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 <tt>ContentBasedDeduplication</tt> for messages with
--   identical content to be treated as duplicates. * If you send one
--   message with <tt>ContentBasedDeduplication</tt> enabled and then
--   another message with a <tt>MessageDeduplicationId</tt> that is the
--   same as the one generated for the first
--   <tt>MessageDeduplicationId</tt> , the two messages are treated as
--   duplicates and only one copy of the message is delivered. The length
--   of <tt>MessageDeduplicationId</tt> is 128 characters.
--   <tt>MessageDeduplicationId</tt> can contain alphanumeric characters
--   (<tt>a-z</tt> , <tt>A-Z</tt> , <tt>0-9</tt> ) and punctuation
--   (<tt>!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~<tt> ). For best
--   practices of using </tt>MessageDeduplicationId@ , see <a>Using the
--   MessageDeduplicationId Property</a> in the <i>Amazon Simple Queue
--   Service Developer Guide</i> .
sMessageDeduplicationId :: Lens' SendMessageBatchRequestEntry (Maybe Text)

-- | 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 <tt>MessageGroupId</tt> 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
--   <tt>MessageGroupId</tt> with a message. If you don't provide a
--   <tt>MessageGroupId</tt> , the action fails. * <tt>ReceiveMessage</tt>
--   might return messages with multiple <tt>MessageGroupId</tt> values.
--   For each <tt>MessageGroupId</tt> , the messages are sorted by time
--   sent. The caller can't specify a <tt>MessageGroupId</tt> . The length
--   of <tt>MessageGroupId</tt> is 128 characters. Valid values are
--   alphanumeric characters and punctuation
--   <tt>(!"#$%&amp;'()*+,-./:;<a>=</a>?</tt>[]^_`{|}~)<tt> . For best
--   practices of using </tt>MessageGroupId@ , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> .
sMessageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text)

-- | An identifier for the message in this batch. This is used to
--   communicate the result. Note that the <tt>Id</tt> s of a batch request
--   need to be unique within the request.
sId :: Lens' SendMessageBatchRequestEntry Text

-- | Body of the message.
sMessageBody :: Lens' SendMessageBatchRequestEntry Text

-- | Encloses a message ID for successfully enqueued message of a
--   <tt>SendMessageBatch</tt> .
--   
--   <i>See:</i> <a>sendMessageBatchResultEntry</a> smart constructor.
data SendMessageBatchResultEntry

-- | Creates a value of <a>SendMessageBatchResultEntry</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>smbreSequenceNumber</a> - <i>This element applies only to FIFO
--   (first-in-first-out) queues.</i> A large, non-consecutive number that
--   Amazon SQS assigns to each message. The length of
--   <tt>SequenceNumber</tt> is 128 bits. As <tt>SequenceNumber</tt>
--   continues to increase for a particular <tt>MessageGroupId</tt> .</li>
--   <li><a>smbreMD5OfMessageAttributes</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 <a>RFC1321</a> .</li>
--   <li><a>smbreId</a> - An identifier for the message in this batch.</li>
--   <li><a>smbreMessageId</a> - An identifier for the message.</li>
--   <li><a>smbreMD5OfMessageBody</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, see <a>RFC1321</a> .</li>
--   </ul>
sendMessageBatchResultEntry :: Text -> Text -> Text -> SendMessageBatchResultEntry

-- | <i>This element applies only to FIFO (first-in-first-out) queues.</i>
--   A large, non-consecutive number that Amazon SQS assigns to each
--   message. The length of <tt>SequenceNumber</tt> is 128 bits. As
--   <tt>SequenceNumber</tt> continues to increase for a particular
--   <tt>MessageGroupId</tt> .
smbreSequenceNumber :: Lens' SendMessageBatchResultEntry (Maybe Text)

-- | 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 <a>RFC1321</a> .
smbreMD5OfMessageAttributes :: Lens' SendMessageBatchResultEntry (Maybe Text)

-- | An identifier for the message in this batch.
smbreId :: Lens' SendMessageBatchResultEntry Text

-- | An identifier for the message.
smbreMessageId :: Lens' SendMessageBatchResultEntry Text

-- | 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 <a>RFC1321</a> .
smbreMD5OfMessageBody :: Lens' SendMessageBatchResultEntry Text
