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


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

-- | The batch request contains more 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 one 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,
--   <tt>ReceiveMessage</tt> returns this error if the maximum number of
--   inflight messages is reached. <tt><tt>AddPermission</tt> </tt> returns
--   this error if the maximum number of permissions for the queue is
--   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 isn't valid for the current version.
_InvalidIdFormat :: AsError a => Getting (First ServiceError) a ServiceError

-- | The receipt handle provided isn't valid.
_ReceiptHandleIsInvalid :: AsError a => Getting (First ServiceError) a ServiceError

-- | The batch request doesn't contain any entries.
_EmptyBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError

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

-- | The message referred to isn't 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
QANKMSDataKeyReusePeriodSeconds :: QueueAttributeName
QANKMSMasterKeyId :: 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 <tt>Id</tt> of an entry in a batch
--   request.</li>
--   <li><a>breeSenderFault</a> - Specifies 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 <tt>Id</tt> of an entry in a batch request.
breeId :: Lens' BatchResultErrorEntry Text

-- | Specifies 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><tt>ChangeMessageVisibilityBatch</tt> .</tt>
--   
--   <i>Important:</i> All of the following list parameters must be
--   prefixed with <tt>ChangeMessageVisibilityBatchRequestEntry.n</tt> ,
--   where <tt>n</tt> is an integer value starting with <tt>1</tt> . 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 used
--   to communicate the result.</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 used to communicate
--   the result.
cId :: Lens' ChangeMessageVisibilityBatchRequestEntry Text

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

-- | Encloses the <tt>Id</tt> of an entry in
--   <tt><tt>ChangeMessageVisibilityBatch</tt> .</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.</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.
dmbreId :: Lens' DeleteMessageBatchRequestEntry Text

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

-- | Encloses the <tt>Id</tt> of an entry in
--   <tt><tt>DeleteMessageBatch</tt> .</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
--   <tt>Name</tt> , <tt>Type</tt> , and <tt>Value</tt> . For more
--   information, see <a>Message Attribute Items and Validation</a> in the
--   <i>Amazon Simple Queue Service 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. A
--   <tt>MessageId</tt> is 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. You can use this attribute
--   to verify that Amazon SQS received the message correctly. Amazon SQS
--   URL-decodes the message before creating the MD5 digest. For
--   information about MD5, see <a>RFC1321</a> .</li>
--   </ul>
message :: Message

-- | Each message attribute consists of a <tt>Name</tt> , <tt>Type</tt> ,
--   and <tt>Value</tt> . For more information, see <a>Message Attribute
--   Items and Validation</a> in the <i>Amazon Simple Queue Service
--   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. A <tt>MessageId</tt> is
--   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. You can
--   use this attribute to verify that Amazon SQS received the message
--   correctly. Amazon SQS URL-decodes the message before creating the MD5
--   digest. For information about MD5, see <a>RFC1321</a> .
mMD5OfMessageAttributes :: Lens' Message (Maybe Text)

-- | The user-specified message attribute value. For string data types, the
--   <tt>Value</tt> attribute has the same restrictions on the content as
--   the message body. For more information, see <tt><tt>SendMessage</tt>
--   .</tt>
--   
--   <tt>Name</tt> , <tt>type</tt> , <tt>value</tt> and the message body
--   must not be empty or null. All parts of the message attribute,
--   including <tt>Name</tt> , <tt>Type</tt> , and <tt>Value</tt> , are
--   part of the message size restriction (256 KB or 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, such as 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 UTF-8 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: <tt>String</tt> , <tt>Number</tt> , and <tt>Binary</tt> .
--   For the <tt>Number</tt> data type, you must use <tt>StringValue</tt> .
--   You can also append custom labels. For more information, see
--   <a>Message Attribute Data Types and Validation</a> in the <i>Amazon
--   Simple Queue Service Developer Guide</i> .</li>
--   </ul>
messageAttributeValue :: Text -> MessageAttributeValue

-- | Binary type attributes can store any binary data, such as 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 UTF-8 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: <tt>String</tt>
--   , <tt>Number</tt> , and <tt>Binary</tt> . For the <tt>Number</tt> data
--   type, you must use <tt>StringValue</tt> . You can also append custom
--   labels. For more information, see <a>Message Attribute Data Types and
--   Validation</a> in the <i>Amazon Simple Queue Service Developer
--   Guide</i> .
mavDataType :: Lens' MessageAttributeValue Text

-- | Contains the details of a single Amazon SQS message along with an
--   <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
--   <tt>Name</tt> , <tt>Type</tt> , and <tt>Value</tt> . For more
--   information, see <a>Message Attribute Items and Validation</a> in the
--   <i>Amazon Simple Queue Service Developer Guide</i> .</li>
--   <li><a>sDelaySeconds</a> - The length of time, in seconds, for which a
--   specific message is delayed. Valid values: 0 to 900. Maximum: 15
--   minutes. Messages with a positive <tt>DelaySeconds</tt> value become
--   available for processing after the delay period is finished. If you
--   don't specify a value, the default value for the queue is
--   applied.</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 Simple Queue Service 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. * 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<tt> , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> . <i>Important:</i> </tt>MessageGroupId@ is
--   required for FIFO queues. You can't use it for Standard queues.</li>
--   <li><a>sId</a> - An identifier for a message in this batch used to
--   communicate the result.</li>
--   <li><a>sMessageBody</a> - The body of the message.</li>
--   </ul>
sendMessageBatchRequestEntry :: Text -> Text -> SendMessageBatchRequestEntry

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

-- | The length of time, in seconds, for which a specific message is
--   delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a
--   positive <tt>DelaySeconds</tt> value become available for processing
--   after the delay period is finished. If you don't specify a value, the
--   default value for the queue is applied.
sDelaySeconds :: Lens' SendMessageBatchRequestEntry (Maybe Int)

-- | 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 Simple Queue Service
--   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. * 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<tt> , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> . <i>Important:</i> </tt>MessageGroupId@ is
--   required for FIFO queues. You can't use it for Standard queues.
sMessageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text)

-- | An identifier for a message in this batch used to communicate the
--   result.
sId :: Lens' SendMessageBatchRequestEntry Text

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

-- | Encloses a <tt>MessageId</tt> for a successfully-enqueued message in a
--   <tt><tt>SendMessageBatch</tt> .</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> - This parameter applies only to FIFO
--   (first-in-first-out) queues. The large, non-consecutive number that
--   Amazon SQS assigns to each message. The length of
--   <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. You can use this attribute
--   to verify that Amazon SQS received the message correctly. Amazon SQS
--   URL-decodes the message before creating the MD5 digest. For
--   information about MD5, see <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 attribute string. You can use this attribute
--   to verify that Amazon SQS received the message correctly. Amazon SQS
--   URL-decodes the message before creating the MD5 digest. For
--   information about MD5, see <a>RFC1321</a> .</li>
--   </ul>
sendMessageBatchResultEntry :: Text -> Text -> Text -> SendMessageBatchResultEntry

-- | This parameter applies only to FIFO (first-in-first-out) queues. The
--   large, non-consecutive number that Amazon SQS assigns to each message.
--   The length of <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. You can
--   use this attribute to verify that Amazon SQS received the message
--   correctly. Amazon SQS URL-decodes the message before creating the MD5
--   digest. For information about MD5, see <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 attribute string. You can
--   use this attribute to verify that Amazon SQS received the message
--   correctly. Amazon SQS URL-decodes the message before creating the MD5
--   digest. For information about MD5, see <a>RFC1321</a> .
smbreMD5OfMessageBody :: Lens' SendMessageBatchResultEntry Text


-- | Add cost allocation tags to the specified Amazon SQS queue. For an
--   overview, see <a>Tagging Amazon SQS Queues</a> in the <i>Amazon Simple
--   Queue Service Developer Guide</i> .
--   
--   When you use queue tags, keep the following guidelines in mind:
--   
--   <ul>
--   <li>Adding more than 50 tags to a queue isn't recommended.</li>
--   <li>Tags don't have any semantic meaning. Amazon SQS interprets tags
--   as character strings.</li>
--   <li>Tags are case-sensitive.</li>
--   <li>A new tag with a key identical to that of an existing tag
--   overwrites the existing tag.</li>
--   <li>Tagging API actions are limited to 5 TPS per AWS account. If your
--   application requires a higher throughput, file a <a>technical support
--   request</a> .</li>
--   </ul>
--   
--   For a full list of tag restrictions, see <a>Limits Related to
--   Queues</a> in the <i>Amazon Simple Queue Service Developer Guide</i> .
module Network.AWS.SQS.TagQueue

-- | Creates a value of <a>TagQueue</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>tqQueueURL</a> - The URL of the queue.</li>
--   <li><a>tqTags</a> - The list of tags to be added to the specified
--   queue.</li>
--   </ul>
tagQueue :: Text -> TagQueue

-- | <i>See:</i> <a>tagQueue</a> smart constructor.
data TagQueue

-- | The URL of the queue.
tqQueueURL :: Lens' TagQueue Text

-- | The list of tags to be added to the specified queue.
tqTags :: Lens' TagQueue (HashMap Text Text)

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

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


-- | 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 Amazon 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 whose
--   attributes are set. 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 length of time, in seconds, for which the
--   delivery of all messages in the queue is delayed. Valid values: An
--   integer from 0 to 900 (15 minutes). The default is 0 (zero). *
--   <tt>MaximumMessageSize</tt> - The limit of how many bytes a message
--   can contain before Amazon SQS rejects it. Valid values: An integer
--   from 1,024 bytes (1 KiB) up to 262,144 bytes (256 KiB). The default is
--   262,144 (256 KiB). * <tt>MessageRetentionPeriod</tt> - The length of
--   time, in seconds, for which Amazon SQS retains a message. Valid
--   values: An integer representing seconds, from 60 (1 minute) to
--   1,209,600 (14 days). The default is 345,600 (4 days). *
--   <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 length of time, in
--   seconds, for which a <tt><tt>ReceiveMessage</tt> </tt> action waits
--   for a message to arrive. Valid values: an integer from 0 to 20
--   (seconds). The default is 0. * <tt>RedrivePolicy</tt> - The string
--   that includes the parameters for the dead-letter queue functionality
--   of the source queue. For more information about the redrive policy and
--   dead-letter queues, see <a>Using Amazon SQS Dead-Letter Queues</a> in
--   the <i>Amazon Simple Queue Service Developer Guide</i> . *
--   <tt>deadLetterTargetArn</tt> - The Amazon Resource Name (ARN) of the
--   dead-letter queue to which Amazon SQS moves messages after the value
--   of <tt>maxReceiveCount</tt> is exceeded. * <tt>maxReceiveCount</tt> -
--   The number of times a message is delivered to the source queue before
--   being moved to the dead-letter queue. * <tt>VisibilityTimeout</tt> -
--   The visibility timeout for the queue. Valid values: an integer from 0
--   to 43,200 (12 hours). The default is 30. For more information about
--   the visibility timeout, see <a>Visibility Timeout</a> in the <i>Amazon
--   Simple Queue Service Developer Guide</i> . The following attributes
--   apply only to <a>server-side-encryption</a> : *
--   <tt>KmsMasterKeyId</tt> - The ID of an AWS-managed customer master key
--   (CMK) for Amazon SQS or a custom CMK. For more information, see <a>Key
--   Terms</a> . While the alias of the AWS-managed CMK for Amazon SQS is
--   always <tt>alias<i>aws</i>sqs</tt> , the alias of a custom CMK can,
--   for example, be <tt>alias/<i>MyAlias</i> </tt> . For more examples,
--   see <a>KeyId</a> in the <i>AWS Key Management Service API
--   Reference</i> . * <tt>KmsDataKeyReusePeriodSeconds</tt> - The length
--   of time, in seconds, for which Amazon SQS can reuse a <a>data key</a>
--   to encrypt or decrypt messages before calling AWS KMS again. An
--   integer representing seconds, between 60 seconds (1 minute) and 86,400
--   seconds (24 hours). The default is 300 (5 minutes). A shorter time
--   period provides better security but results in more calls to KMS which
--   might incur charges after Free Tier. For more information, see <a>How
--   Does the Data Key Reuse Period Work?</a> . 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 Simple Queue Service 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. * 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 (such as the following) are ignored:
--   * <tt>ApproximateNumberOfMessages</tt> *
--   <tt>ApproximateNumberOfMessagesDelayed</tt> *
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> *
--   <tt>CreatedTimestamp</tt> * <tt>LastModifiedTimestamp</tt> *
--   <tt>QueueArn</tt></li>
--   </ul>
setQueueAttributes :: Text -> SetQueueAttributes

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

-- | The URL of the Amazon SQS queue whose attributes are set. 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
--   length of time, in seconds, for which the delivery of all messages in
--   the queue is delayed. Valid values: An integer from 0 to 900 (15
--   minutes). The default is 0 (zero). * <tt>MaximumMessageSize</tt> - The
--   limit of how many bytes a message can contain before Amazon SQS
--   rejects it. Valid values: An integer from 1,024 bytes (1 KiB) up to
--   262,144 bytes (256 KiB). The default is 262,144 (256 KiB). *
--   <tt>MessageRetentionPeriod</tt> - The length of time, in seconds, for
--   which Amazon SQS retains a message. Valid values: An integer
--   representing seconds, from 60 (1 minute) to 1,209,600 (14 days). The
--   default is 345,600 (4 days). * <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 length of
--   time, in seconds, for which a <tt><tt>ReceiveMessage</tt> </tt> action
--   waits for a message to arrive. Valid values: an integer from 0 to 20
--   (seconds). The default is 0. * <tt>RedrivePolicy</tt> - The string
--   that includes the parameters for the dead-letter queue functionality
--   of the source queue. For more information about the redrive policy and
--   dead-letter queues, see <a>Using Amazon SQS Dead-Letter Queues</a> in
--   the <i>Amazon Simple Queue Service Developer Guide</i> . *
--   <tt>deadLetterTargetArn</tt> - The Amazon Resource Name (ARN) of the
--   dead-letter queue to which Amazon SQS moves messages after the value
--   of <tt>maxReceiveCount</tt> is exceeded. * <tt>maxReceiveCount</tt> -
--   The number of times a message is delivered to the source queue before
--   being moved to the dead-letter queue. * <tt>VisibilityTimeout</tt> -
--   The visibility timeout for the queue. Valid values: an integer from 0
--   to 43,200 (12 hours). The default is 30. For more information about
--   the visibility timeout, see <a>Visibility Timeout</a> in the <i>Amazon
--   Simple Queue Service Developer Guide</i> . The following attributes
--   apply only to <a>server-side-encryption</a> : *
--   <tt>KmsMasterKeyId</tt> - The ID of an AWS-managed customer master key
--   (CMK) for Amazon SQS or a custom CMK. For more information, see <a>Key
--   Terms</a> . While the alias of the AWS-managed CMK for Amazon SQS is
--   always <tt>alias<i>aws</i>sqs</tt> , the alias of a custom CMK can,
--   for example, be <tt>alias/<i>MyAlias</i> </tt> . For more examples,
--   see <a>KeyId</a> in the <i>AWS Key Management Service API
--   Reference</i> . * <tt>KmsDataKeyReusePeriodSeconds</tt> - The length
--   of time, in seconds, for which Amazon SQS can reuse a <a>data key</a>
--   to encrypt or decrypt messages before calling AWS KMS again. An
--   integer representing seconds, between 60 seconds (1 minute) and 86,400
--   seconds (24 hours). The default is 300 (5 minutes). A shorter time
--   period provides better security but results in more calls to KMS which
--   might incur charges after Free Tier. For more information, see <a>How
--   Does the Data Key Reuse Period Work?</a> . 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 Simple Queue Service 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. * 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 (such as the following) are ignored:
--   * <tt>ApproximateNumberOfMessages</tt> *
--   <tt>ApproximateNumberOfMessagesDelayed</tt> *
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> *
--   <tt>CreatedTimestamp</tt> * <tt>LastModifiedTimestamp</tt> *
--   <tt>QueueArn</tt>
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 Control.DeepSeq.NFData Network.AWS.SQS.SetQueueAttributes.SetQueueAttributesResponse
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


-- | 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 <tt>200</tt> .
--   
--   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> A message can include only XML, JSON, and
--   unformatted text. The following Unicode characters are allowed:
--   
--   <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>
--   
--   Any characters not included in this list will be rejected. For more
--   information, see the <a>W3C specification for characters</a> .
--   
--   If you don't specify the <tt>DelaySeconds</tt> parameter for an entry,
--   Amazon SQS uses the default value for the queue.
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 which
--   batched messages are sent. Queue URLs are case-sensitive.</li>
--   <li><a>smbEntries</a> - A list of
--   <tt><a>SendMessageBatchRequestEntry</a> </tt> items.</li>
--   </ul>
sendMessageBatch :: Text -> SendMessageBatch

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

-- | The URL of the Amazon SQS queue to which batched messages are sent.
--   Queue URLs are case-sensitive.
smbQueueURL :: Lens' SendMessageBatch Text

-- | A list of <tt><a>SendMessageBatchRequestEntry</a> </tt> 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
--   <tt><a>SendMessageBatchResultEntry</a> </tt> items.</li>
--   <li><a>smbrsFailed</a> - A list of <tt><a>BatchResultErrorEntry</a>
--   </tt> items with error details about each message that can't be
--   enqueued.</li>
--   </ul>
sendMessageBatchResponse :: Int -> SendMessageBatchResponse

-- | For each message in the batch, the response contains a
--   <tt><a>SendMessageBatchResultEntry</a> </tt> tag if the message
--   succeeds or a <tt><a>BatchResultErrorEntry</a> </tt> 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 <tt><a>SendMessageBatchResultEntry</a> </tt> items.
smbrsSuccessful :: Lens' SendMessageBatchResponse [SendMessageBatchResultEntry]

-- | A list of <tt><a>BatchResultErrorEntry</a> </tt> items with error
--   details about each message that can't 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 Control.DeepSeq.NFData Network.AWS.SQS.SendMessageBatch.SendMessageBatchResponse
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


-- | Delivers a message to the specified queue.
--   
--   <i>Important:</i> A message can include only XML, JSON, and
--   unformatted text. The following Unicode characters are allowed:
--   
--   <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>
--   
--   Any characters not included in this list will be rejected. For more
--   information, see the <a>W3C specification for characters</a> .
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
--   <tt>Name</tt> , <tt>Type</tt> , and <tt>Value</tt> . For more
--   information, see <a>Message Attribute Items and Validation</a> in the
--   <i>Amazon Simple Queue Service Developer Guide</i> .</li>
--   <li><a>smDelaySeconds</a> - The length of time, in seconds, for which
--   to delay a specific message. Valid values: 0 to 900. Maximum: 15
--   minutes. Messages with a positive <tt>DelaySeconds</tt> value become
--   available for processing after the delay period is finished. If you
--   don't specify a value, the default value for the queue applies.</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 Simple Queue Service 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. * 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<tt> , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> . <i>Important:</i> </tt>MessageGroupId@ is
--   required for FIFO queues. You can't use it for Standard queues.</li>
--   <li><a>smQueueURL</a> - The URL of the Amazon SQS queue to which a
--   message is sent. Queue URLs are case-sensitive.</li>
--   <li><a>smMessageBody</a> - The message to send. The maximum string
--   size is 256 KB. <i>Important:</i> A message can include only XML,
--   JSON, and unformatted text. The following Unicode characters are
--   allowed: <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> Any characters not included in
--   this list will be rejected. For more information, see the <a>W3C
--   specification for characters</a> .</li>
--   </ul>
sendMessage :: Text -> Text -> SendMessage

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

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

-- | The length of time, in seconds, for which to delay a specific message.
--   Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive
--   <tt>DelaySeconds</tt> value become available for processing after the
--   delay period is finished. If you don't specify a value, the default
--   value for the queue applies.
smDelaySeconds :: Lens' SendMessage (Maybe Int)

-- | 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 Simple Queue Service 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. * 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<tt> , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> . <i>Important:</i> </tt>MessageGroupId@ is
--   required for FIFO queues. You can't use it for Standard queues.
smMessageGroupId :: Lens' SendMessage (Maybe Text)

-- | The URL of the Amazon SQS queue to which a message is sent. Queue URLs
--   are case-sensitive.
smQueueURL :: Lens' SendMessage Text

-- | The message to send. The maximum string size is 256 KB.
--   <i>Important:</i> A message can include only XML, JSON, and
--   unformatted text. The following Unicode characters are allowed:
--   <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> Any characters not included in
--   this list will be rejected. For more information, see the <a>W3C
--   specification for characters</a> .
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> - This parameter applies only to FIFO
--   (first-in-first-out) queues. The large, non-consecutive number that
--   Amazon SQS assigns to each message. The length of
--   <tt>SequenceNumber</tt> is 128 bits. <tt>SequenceNumber</tt> continues
--   to increase for a particular <tt>MessageGroupId</tt> .</li>
--   <li><a>smrsMessageId</a> - An attribute containing the
--   <tt>MessageId</tt> of the message sent to the queue. For more
--   information, see <a>Queue and Message Identifiers</a> in the <i>Amazon
--   Simple Queue Service Developer Guide</i> .</li>
--   <li><a>smrsMD5OfMessageBody</a> - An MD5 digest of the non-URL-encoded
--   message attribute string. You can use this attribute to verify that
--   Amazon SQS received the message correctly. Amazon SQS URL-decodes the
--   message before creating the MD5 digest. For information about MD5, see
--   <a>RFC1321</a> .</li>
--   <li><a>smrsMD5OfMessageAttributes</a> - An MD5 digest of the
--   non-URL-encoded message attribute string. You can use this attribute
--   to verify that Amazon SQS received the message correctly. Amazon SQS
--   URL-decodes the message before creating the MD5 digest. For
--   information about MD5, see <a>RFC1321</a> .</li>
--   <li><a>smrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
sendMessageResponse :: Int -> SendMessageResponse

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

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

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

-- | An MD5 digest of the non-URL-encoded message attribute string. You can
--   use this attribute to verify that Amazon SQS received the message
--   correctly. Amazon SQS URL-decodes the message before creating the MD5
--   digest. For information about MD5, see <a>RFC1321</a> .
smrsMD5OfMessageBody :: Lens' SendMessageResponse (Maybe Text)

-- | An MD5 digest of the non-URL-encoded message attribute string. You can
--   use this attribute to verify that Amazon SQS received the message
--   correctly. Amazon SQS URL-decodes the message before creating the MD5
--   digest. For information about MD5, see <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 Control.DeepSeq.NFData Network.AWS.SQS.SendMessage.SendMessageResponse
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


-- | 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 from which
--   permissions are removed. Queue URLs are case-sensitive.</li>
--   <li><a>rpLabel</a> - The identification of the permission to remove.
--   This is the label added using the <tt><tt>AddPermission</tt> </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 from which permissions are removed.
--   Queue URLs are case-sensitive.
rpQueueURL :: Lens' RemovePermission Text

-- | The identification of the permission to remove. This is the label
--   added using the <tt><tt>AddPermission</tt> </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 Control.DeepSeq.NFData Network.AWS.SQS.RemovePermission.RemovePermissionResponse
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


-- | Retrieves one or more messages (up to 10), from the specified queue.
--   Using the <tt>WaitTimeSeconds</tt> parameter enables long-poll
--   support. For more information, see <a>Amazon SQS Long Polling</a> in
--   the <i>Amazon Simple Queue Service Developer Guide</i> .
--   
--   Short poll is the default behavior where a weighted random set of
--   machines is sampled on a <tt>ReceiveMessage</tt> call. Thus, only the
--   messages on the sampled machines are returned. If the number of
--   messages in the queue is small (fewer than 1,000), you most likely 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.
--   If this happens, repeat the request.
--   
--   For each message returned, the response includes the following:
--   
--   <ul>
--   <li>The message body.</li>
--   <li>An MD5 digest of the message body. For information about MD5, see
--   <a>RFC1321</a> .</li>
--   <li>The <tt>MessageId</tt> you received when you sent the message to
--   the queue.</li>
--   <li>The receipt handle.</li>
--   <li>The message attributes.</li>
--   <li>An 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 Simple Queue Service Developer
--   Guide</i> .
--   
--   You can provide the <tt>VisibilityTimeout</tt> parameter in your
--   request. The parameter is 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 Simple Queue Service Developer Guide</i> .
--   
--   A message that isn't deleted or a message whose visibility isn't
--   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 work until the original
--   visibility timeout expires. As a result, delays might occur but the
--   messages in the queue remain in a strict order. The length of
--   <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 name can contain
--   alphanumeric characters and the underscore (<tt>_</tt> ), hyphen
--   (<tt>-</tt> ), and period (<tt>.</tt> ). * The name is case-sensitive
--   and must be unique among all attribute names for the message. * The
--   name must not start with AWS-reserved prefixes such as <tt>AWS.</tt>
--   or <tt>Amazon.</tt> (or any casing variants). * The name must not
--   start or end with a period (<tt>.</tt> ), and it should not have
--   periods in succession (<tt>..</tt> ). * The name can be up to 256
--   characters long. 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 <tt>All</tt> or <tt>.*</tt> in your request.
--   You can also use all message attributes starting with a prefix, for
--   example <tt>bar.*</tt> .</li>
--   <li><a>rmWaitTimeSeconds</a> - The duration (in seconds) for which the
--   call waits for a message to arrive in the queue before returning. If a
--   message is available, the call returns sooner than
--   <tt>WaitTimeSeconds</tt> . If no messages are available and the wait
--   time expires, the call returns successfully with an empty list of
--   messages.</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 (<a>epoch time</a> 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 (<a>epoch time</a> 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) are
--   ignored: * <tt>ApproximateNumberOfMessages</tt> *
--   <tt>ApproximateNumberOfMessagesDelayed</tt> *
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> *
--   <tt>CreatedTimestamp</tt> * <tt>ContentBasedDeduplication</tt> *
--   <tt>DelaySeconds</tt> * <tt>FifoQueue</tt> *
--   <tt>LastModifiedTimestamp</tt> * <tt>MaximumMessageSize</tt> *
--   <tt>MessageRetentionPeriod</tt> * <tt>Policy</tt> * <tt>QueueArn</tt>
--   , * <tt>ReceiveMessageWaitTimeSeconds</tt> * <tt>RedrivePolicy</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
--   (however, fewer messages might be returned). Valid values are 1 to 10.
--   Default is 1.</li>
--   <li><a>rmQueueURL</a> - The URL of the Amazon SQS queue from which
--   messages are received. 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 work until the original
--   visibility timeout expires. As a result, delays might occur but the
--   messages in the queue remain in a strict order. The length of
--   <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
--   name can contain alphanumeric characters and the underscore
--   (<tt>_</tt> ), hyphen (<tt>-</tt> ), and period (<tt>.</tt> ). * The
--   name is case-sensitive and must be unique among all attribute names
--   for the message. * The name must not start with AWS-reserved prefixes
--   such as <tt>AWS.</tt> or <tt>Amazon.</tt> (or any casing variants). *
--   The name must not start or end with a period (<tt>.</tt> ), and it
--   should not have periods in succession (<tt>..</tt> ). * The name can
--   be up to 256 characters long. 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 <tt>All</tt> or <tt>.*</tt> in your
--   request. You can also use all message attributes starting with a
--   prefix, for example <tt>bar.*</tt> .
rmMessageAttributeNames :: Lens' ReceiveMessage [Text]

-- | The duration (in seconds) for which the call waits for a message to
--   arrive in the queue before returning. If a message is available, the
--   call returns sooner than <tt>WaitTimeSeconds</tt> . If no messages are
--   available and the wait time expires, the call returns successfully
--   with an empty list of messages.
rmWaitTimeSeconds :: Lens' ReceiveMessage (Maybe Int)

-- | 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 (<a>epoch time</a> 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 (<a>epoch time</a> 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) are
--   ignored: * <tt>ApproximateNumberOfMessages</tt> *
--   <tt>ApproximateNumberOfMessagesDelayed</tt> *
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> *
--   <tt>CreatedTimestamp</tt> * <tt>ContentBasedDeduplication</tt> *
--   <tt>DelaySeconds</tt> * <tt>FifoQueue</tt> *
--   <tt>LastModifiedTimestamp</tt> * <tt>MaximumMessageSize</tt> *
--   <tt>MessageRetentionPeriod</tt> * <tt>Policy</tt> * <tt>QueueArn</tt>
--   , * <tt>ReceiveMessageWaitTimeSeconds</tt> * <tt>RedrivePolicy</tt> *
--   <tt>VisibilityTimeout</tt>
rmAttributeNames :: Lens' ReceiveMessage [MessageAttribute]

-- | The maximum number of messages to return. Amazon SQS never returns
--   more messages than this value (however, fewer messages might be
--   returned). Valid values are 1 to 10. Default is 1.
rmMaxNumberOfMessages :: Lens' ReceiveMessage (Maybe Int)

-- | The URL of the Amazon SQS queue from which messages are received.
--   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 Control.DeepSeq.NFData Network.AWS.SQS.ReceiveMessage.ReceiveMessageResponse
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


-- | Deletes the messages in a queue specified by the <tt>QueueURL</tt>
--   parameter.
--   
--   <i>Important:</i> When you use the <tt>PurgeQueue</tt> action, you
--   can't retrieve a message deleted from a queue.
--   
--   When you purge a queue, the message deletion process takes up to 60
--   seconds. All messages sent to the queue before calling the
--   <tt>PurgeQueue</tt> action are 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> is
--   called might be received, but are 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 URL of the queue from which the
--   <tt>PurgeQueue</tt> action deletes messages. Queue URLs are
--   case-sensitive.</li>
--   </ul>
purgeQueue :: Text -> PurgeQueue

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

-- | The URL of the queue from which the <tt>PurgeQueue</tt> action deletes
--   messages. 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 Control.DeepSeq.NFData Network.AWS.SQS.PurgeQueue.PurgeQueueResponse
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


-- | Returns a list of your queues. The maximum number of queues that can
--   be returned is 1,000. If you specify a value for the optional
--   <tt>QueueNamePrefix</tt> parameter, only queues with a name that
--   begins 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 1,000
--   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 1,000 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 Control.DeepSeq.NFData Network.AWS.SQS.ListQueues.ListQueuesResponse
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


-- | List all cost allocation tags added to the specified Amazon SQS queue.
--   For an overview, see <a>Tagging Amazon SQS Queues</a> in the <i>Amazon
--   Simple Queue Service Developer Guide</i> .
--   
--   When you use queue tags, keep the following guidelines in mind:
--   
--   <ul>
--   <li>Adding more than 50 tags to a queue isn't recommended.</li>
--   <li>Tags don't have any semantic meaning. Amazon SQS interprets tags
--   as character strings.</li>
--   <li>Tags are case-sensitive.</li>
--   <li>A new tag with a key identical to that of an existing tag
--   overwrites the existing tag.</li>
--   <li>Tagging API actions are limited to 5 TPS per AWS account. If your
--   application requires a higher throughput, file a <a>technical support
--   request</a> .</li>
--   </ul>
--   
--   For a full list of tag restrictions, see <a>Limits Related to
--   Queues</a> in the <i>Amazon Simple Queue Service Developer Guide</i> .
module Network.AWS.SQS.ListQueueTags

-- | Creates a value of <a>ListQueueTags</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>lqtQueueURL</a> - The URL of the queue.</li>
--   </ul>
listQueueTags :: Text -> ListQueueTags

-- | <i>See:</i> <a>listQueueTags</a> smart constructor.
data ListQueueTags

-- | The URL of the queue.
lqtQueueURL :: Lens' ListQueueTags Text

-- | Creates a value of <a>ListQueueTagsResponse</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>lqtrsTags</a> - The list of all tags added to the specified
--   queue.</li>
--   <li><a>lqtrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listQueueTagsResponse :: Int -> ListQueueTagsResponse

-- | <i>See:</i> <a>listQueueTagsResponse</a> smart constructor.
data ListQueueTagsResponse

-- | The list of all tags added to the specified queue.
lqtrsTags :: Lens' ListQueueTagsResponse (HashMap Text Text)

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


-- | Returns a list of your queues that have the <tt>RedrivePolicy</tt>
--   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 Simple Queue
--   Service 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 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 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 <tt>RedrivePolicy</tt> 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 <tt>RedrivePolicy</tt> 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 Control.DeepSeq.NFData Network.AWS.SQS.ListDeadLetterSourceQueues.ListDeadLetterSourceQueuesResponse
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


-- | 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><tt>AddPermission</tt> </tt> or see <a>Shared Queues</a> in the
--   <i>Amazon Simple Queue Service 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. Valid values: alphanumeric characters,
--   hyphens (<tt>-</tt> ), and underscores (<tt>_</tt> ). 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. Valid values: alphanumeric characters, hyphens (<tt>-</tt>
--   ), and underscores (<tt>_</tt> ). 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 of the queue.</li>
--   </ul>
getQueueURLResponse :: Int -> Text -> GetQueueURLResponse

-- | For more information, see <a>Responses</a> in the <i>Amazon Simple
--   Queue Service 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 of 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 Control.DeepSeq.NFData Network.AWS.SQS.GetQueueURL.GetQueueURLResponse
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


-- | Gets attributes for the specified queue.
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 Simple Queue Service
--   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
--   aren't deleted. For more information, see <a>Resources Required to
--   Process Messages</a> in the <i>Amazon Simple Queue Service Developer
--   Guide</i> . * <tt>CreatedTimestamp</tt> - Returns the time when the
--   queue was created in seconds (<a>epoch time</a> ). *
--   <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 (<a>epoch time</a> ). *
--   <tt>MaximumMessageSize</tt> - Returns the limit of how many bytes a
--   message can contain before Amazon SQS rejects it. *
--   <tt>MessageRetentionPeriod</tt> - Returns the length of time, in
--   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 length of time,
--   in seconds, for which the <tt>ReceiveMessage</tt> action waits for a
--   message to arrive. * <tt>RedrivePolicy</tt> - Returns the string that
--   includes the parameters for dead-letter queue functionality of the
--   source queue. For more information about the redrive policy and
--   dead-letter queues, see <a>Using Amazon SQS Dead-Letter Queues</a> in
--   the <i>Amazon Simple Queue Service Developer Guide</i> . *
--   <tt>deadLetterTargetArn</tt> - The Amazon Resource Name (ARN) of the
--   dead-letter queue to which Amazon SQS moves messages after the value
--   of <tt>maxReceiveCount</tt> is exceeded. * <tt>maxReceiveCount</tt> -
--   The number of times a message is delivered to the source queue before
--   being moved to the dead-letter queue. * <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 Simple Queue Service Developer Guide</i> . The following
--   attributes apply only to <a>server-side-encryption</a> : *
--   <tt>KmsMasterKeyId</tt> - Returns the ID of an AWS-managed customer
--   master key (CMK) for Amazon SQS or a custom CMK. For more information,
--   see <a>Key Terms</a> . * <tt>KmsDataKeyReusePeriodSeconds</tt> -
--   Returns the length of time, in seconds, for which Amazon SQS can reuse
--   a data key to encrypt or decrypt messages before calling AWS KMS
--   again. For more information, see <a>How Does the Data Key Reuse Period
--   Work?</a> . 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 Simple Queue Service 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 Simple Queue Service
--   Developer Guide</i> .</li>
--   <li><a>gqaQueueURL</a> - The URL of the Amazon SQS queue whose
--   attribute information is retrieved. 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 Simple Queue Service
--   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
--   aren't deleted. For more information, see <a>Resources Required to
--   Process Messages</a> in the <i>Amazon Simple Queue Service Developer
--   Guide</i> . * <tt>CreatedTimestamp</tt> - Returns the time when the
--   queue was created in seconds (<a>epoch time</a> ). *
--   <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 (<a>epoch time</a> ). *
--   <tt>MaximumMessageSize</tt> - Returns the limit of how many bytes a
--   message can contain before Amazon SQS rejects it. *
--   <tt>MessageRetentionPeriod</tt> - Returns the length of time, in
--   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 length of time,
--   in seconds, for which the <tt>ReceiveMessage</tt> action waits for a
--   message to arrive. * <tt>RedrivePolicy</tt> - Returns the string that
--   includes the parameters for dead-letter queue functionality of the
--   source queue. For more information about the redrive policy and
--   dead-letter queues, see <a>Using Amazon SQS Dead-Letter Queues</a> in
--   the <i>Amazon Simple Queue Service Developer Guide</i> . *
--   <tt>deadLetterTargetArn</tt> - The Amazon Resource Name (ARN) of the
--   dead-letter queue to which Amazon SQS moves messages after the value
--   of <tt>maxReceiveCount</tt> is exceeded. * <tt>maxReceiveCount</tt> -
--   The number of times a message is delivered to the source queue before
--   being moved to the dead-letter queue. * <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 Simple Queue Service Developer Guide</i> . The following
--   attributes apply only to <a>server-side-encryption</a> : *
--   <tt>KmsMasterKeyId</tt> - Returns the ID of an AWS-managed customer
--   master key (CMK) for Amazon SQS or a custom CMK. For more information,
--   see <a>Key Terms</a> . * <tt>KmsDataKeyReusePeriodSeconds</tt> -
--   Returns the length of time, in seconds, for which Amazon SQS can reuse
--   a data key to encrypt or decrypt messages before calling AWS KMS
--   again. For more information, see <a>How Does the Data Key Reuse Period
--   Work?</a> . 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 Simple Queue Service 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 Simple Queue Service
--   Developer Guide</i> .
gqaAttributeNames :: Lens' GetQueueAttributes [QueueAttributeName]

-- | The URL of the Amazon SQS queue whose attribute information is
--   retrieved. 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 their 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 their 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 Control.DeepSeq.NFData Network.AWS.SQS.GetQueueAttributes.GetQueueAttributesResponse
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


-- | Deletes the queue specified by the <tt>QueueUrl</tt> , regardless of
--   the queue's contents. If the specified queue doesn't exist, Amazon SQS
--   returns a successful response.
--   
--   <i>Important:</i> Be careful with the <tt>DeleteQueue</tt> action:
--   When you delete a 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><tt>SendMessage</tt> </tt> request might
--   succeed, but after 60 seconds the queue and the message you sent no
--   longer exist.
--   
--   When you delete a queue, you must wait at least 60 seconds before
--   creating a queue with the same name.
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 delete.
--   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 delete. 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 Control.DeepSeq.NFData Network.AWS.SQS.DeleteQueue.DeleteQueueResponse
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


-- | Deletes up to ten messages from the specified queue. This is a batch
--   version of <tt><tt>DeleteMessage</tt> .</tt> The result of the 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
--   <tt>200</tt> .
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 from which
--   messages are deleted. 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 from which messages are deleted. 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
--   <tt><a>DeleteMessageBatchResultEntry</a> </tt> items.</li>
--   <li><a>dmbrsFailed</a> - A list of <tt><a>BatchResultErrorEntry</a>
--   </tt> items.</li>
--   </ul>
deleteMessageBatchResponse :: Int -> DeleteMessageBatchResponse

-- | For each message in the batch, the response contains a
--   <tt><a>DeleteMessageBatchResultEntry</a> </tt> tag if the message is
--   deleted or a <tt><a>BatchResultErrorEntry</a> </tt> 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 <tt><a>DeleteMessageBatchResultEntry</a> </tt> items.
dmbrsSuccessful :: Lens' DeleteMessageBatchResponse [DeleteMessageBatchResultEntry]

-- | A list of <tt><a>BatchResultErrorEntry</a> </tt> 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 Control.DeepSeq.NFData Network.AWS.SQS.DeleteMessageBatch.DeleteMessageBatchResponse
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


-- | Deletes the specified message from the specified queue. You specify
--   the message by using the message's <i>receipt handle</i> and not the
--   <i>MessageId</i> you receive when you send 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 the message.
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 from which
--   messages are deleted. 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 from which messages are deleted. 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 Control.DeepSeq.NFData Network.AWS.SQS.DeleteMessage.DeleteMessageResponse
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


-- | Creates a new standard or FIFO queue. You can pass one or more
--   attributes in the request. Keep the following caveats in mind:
--   
--   <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><tt>GetQueueUrl</tt> </tt> action.
--   <tt><tt>GetQueueUrl</tt> </tt> requires only the <tt>QueueName</tt>
--   parameter. be aware of existing queue names:
--   
--   <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>
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 length of time, in seconds, for which
--   the delivery of all messages in the queue is delayed. Valid values: An
--   integer from 0 to 900 seconds (15 minutes). The default is 0 (zero). *
--   <tt>MaximumMessageSize</tt> - The limit of how many bytes a message
--   can contain before Amazon SQS rejects it. Valid values: An integer
--   from 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB). The default is
--   262,144 (256 KiB). * <tt>MessageRetentionPeriod</tt> - The length of
--   time, in seconds, for which Amazon SQS retains a message. Valid
--   values: An integer from 60 seconds (1 minute) to 1,209,600 seconds (14
--   days). The default is 345,600 (4 days). * <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
--   length of time, in seconds, for which a <tt><tt>ReceiveMessage</tt>
--   </tt> action waits for a message to arrive. Valid values: An integer
--   from 0 to 20 (seconds). The default is 0 (zero). *
--   <tt>RedrivePolicy</tt> - The string that includes the parameters for
--   the dead-letter queue functionality of the source queue. For more
--   information about the redrive policy and dead-letter queues, see
--   <a>Using Amazon SQS Dead-Letter Queues</a> in the <i>Amazon Simple
--   Queue Service Developer Guide</i> . * <tt>deadLetterTargetArn</tt> -
--   The Amazon Resource Name (ARN) of the dead-letter queue to which
--   Amazon SQS moves messages after the value of <tt>maxReceiveCount</tt>
--   is exceeded. * <tt>maxReceiveCount</tt> - The number of times a
--   message is delivered to the source queue before being moved to the
--   dead-letter queue. * <tt>VisibilityTimeout</tt> - The visibility
--   timeout for the queue. Valid values: An integer from 0 to 43,200 (12
--   hours). The default is 30. For more information about the visibility
--   timeout, see <a>Visibility Timeout</a> in the <i>Amazon Simple Queue
--   Service Developer Guide</i> . The following attributes apply only to
--   <a>server-side-encryption</a> : * <tt>KmsMasterKeyId</tt> - The ID of
--   an AWS-managed customer master key (CMK) for Amazon SQS or a custom
--   CMK. For more information, see <a>Key Terms</a> . While the alias of
--   the AWS-managed CMK for Amazon SQS is always
--   <tt>alias<i>aws</i>sqs</tt> , the alias of a custom CMK can, for
--   example, be <tt>alias/<i>MyAlias</i> </tt> . For more examples, see
--   <a>KeyId</a> in the <i>AWS Key Management Service API Reference</i> .
--   * <tt>KmsDataKeyReusePeriodSeconds</tt> - The length of time, in
--   seconds, for which Amazon SQS can reuse a <a>data key</a> to encrypt
--   or decrypt messages before calling AWS KMS again. An integer
--   representing seconds, between 60 seconds (1 minute) and 86,400 seconds
--   (24 hours). The default is 300 (5 minutes). A shorter time period
--   provides better security but results in more calls to KMS which might
--   incur charges after Free Tier. For more information, see <a>How Does
--   the Data Key Reuse Period Work?</a> . The following attributes apply
--   only to <a>FIFO (first-in-first-out) queues</a> : * <tt>FifoQueue</tt>
--   - Designates a queue as FIFO. Valid values: <tt>true</tt> ,
--   <tt>false</tt> . You can provide this attribute only during queue
--   creation. You can't change it for an existing queue. When you set this
--   attribute, you must also provide the <tt>MessageGroupId</tt> for your
--   messages explicitly. For more information, see <a>FIFO Queue Logic</a>
--   in the <i>Amazon Simple Queue Service Developer Guide</i> . *
--   <tt>ContentBasedDeduplication</tt> - Enables content-based
--   deduplication. Valid values: <tt>true</tt> , <tt>false</tt> . For more
--   information, see <a>Exactly-Once Processing</a> in the <i>Amazon
--   Simple Queue Service 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. * 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 (such as the following) are ignored:
--   * <tt>ApproximateNumberOfMessages</tt> *
--   <tt>ApproximateNumberOfMessagesDelayed</tt> *
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> *
--   <tt>CreatedTimestamp</tt> * <tt>LastModifiedTimestamp</tt> *
--   <tt>QueueArn</tt></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. * Valid values: alphanumeric characters, 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 length of time, in seconds, for which the
--   delivery of all messages in the queue is delayed. Valid values: An
--   integer from 0 to 900 seconds (15 minutes). The default is 0 (zero). *
--   <tt>MaximumMessageSize</tt> - The limit of how many bytes a message
--   can contain before Amazon SQS rejects it. Valid values: An integer
--   from 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB). The default is
--   262,144 (256 KiB). * <tt>MessageRetentionPeriod</tt> - The length of
--   time, in seconds, for which Amazon SQS retains a message. Valid
--   values: An integer from 60 seconds (1 minute) to 1,209,600 seconds (14
--   days). The default is 345,600 (4 days). * <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
--   length of time, in seconds, for which a <tt><tt>ReceiveMessage</tt>
--   </tt> action waits for a message to arrive. Valid values: An integer
--   from 0 to 20 (seconds). The default is 0 (zero). *
--   <tt>RedrivePolicy</tt> - The string that includes the parameters for
--   the dead-letter queue functionality of the source queue. For more
--   information about the redrive policy and dead-letter queues, see
--   <a>Using Amazon SQS Dead-Letter Queues</a> in the <i>Amazon Simple
--   Queue Service Developer Guide</i> . * <tt>deadLetterTargetArn</tt> -
--   The Amazon Resource Name (ARN) of the dead-letter queue to which
--   Amazon SQS moves messages after the value of <tt>maxReceiveCount</tt>
--   is exceeded. * <tt>maxReceiveCount</tt> - The number of times a
--   message is delivered to the source queue before being moved to the
--   dead-letter queue. * <tt>VisibilityTimeout</tt> - The visibility
--   timeout for the queue. Valid values: An integer from 0 to 43,200 (12
--   hours). The default is 30. For more information about the visibility
--   timeout, see <a>Visibility Timeout</a> in the <i>Amazon Simple Queue
--   Service Developer Guide</i> . The following attributes apply only to
--   <a>server-side-encryption</a> : * <tt>KmsMasterKeyId</tt> - The ID of
--   an AWS-managed customer master key (CMK) for Amazon SQS or a custom
--   CMK. For more information, see <a>Key Terms</a> . While the alias of
--   the AWS-managed CMK for Amazon SQS is always
--   <tt>alias<i>aws</i>sqs</tt> , the alias of a custom CMK can, for
--   example, be <tt>alias/<i>MyAlias</i> </tt> . For more examples, see
--   <a>KeyId</a> in the <i>AWS Key Management Service API Reference</i> .
--   * <tt>KmsDataKeyReusePeriodSeconds</tt> - The length of time, in
--   seconds, for which Amazon SQS can reuse a <a>data key</a> to encrypt
--   or decrypt messages before calling AWS KMS again. An integer
--   representing seconds, between 60 seconds (1 minute) and 86,400 seconds
--   (24 hours). The default is 300 (5 minutes). A shorter time period
--   provides better security but results in more calls to KMS which might
--   incur charges after Free Tier. For more information, see <a>How Does
--   the Data Key Reuse Period Work?</a> . The following attributes apply
--   only to <a>FIFO (first-in-first-out) queues</a> : * <tt>FifoQueue</tt>
--   - Designates a queue as FIFO. Valid values: <tt>true</tt> ,
--   <tt>false</tt> . You can provide this attribute only during queue
--   creation. You can't change it for an existing queue. When you set this
--   attribute, you must also provide the <tt>MessageGroupId</tt> for your
--   messages explicitly. For more information, see <a>FIFO Queue Logic</a>
--   in the <i>Amazon Simple Queue Service Developer Guide</i> . *
--   <tt>ContentBasedDeduplication</tt> - Enables content-based
--   deduplication. Valid values: <tt>true</tt> , <tt>false</tt> . For more
--   information, see <a>Exactly-Once Processing</a> in the <i>Amazon
--   Simple Queue Service 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. * 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 (such as the following) are ignored:
--   * <tt>ApproximateNumberOfMessages</tt> *
--   <tt>ApproximateNumberOfMessagesDelayed</tt> *
--   <tt>ApproximateNumberOfMessagesNotVisible</tt> *
--   <tt>CreatedTimestamp</tt> * <tt>LastModifiedTimestamp</tt> *
--   <tt>QueueArn</tt>
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. * Valid values:
--   alphanumeric characters, 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 of the created Amazon SQS
--   queue.</li>
--   <li><a>cqrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
createQueueResponse :: Int -> CreateQueueResponse

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

-- | The URL of 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 Control.DeepSeq.NFData Network.AWS.SQS.CreateQueue.CreateQueueResponse
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


-- | Changes the visibility timeout of multiple messages. This is a batch
--   version of <tt><tt>ChangeMessageVisibility</tt> .</tt> The result of
--   the action on each message is reported individually in the response.
--   You can send up to 10 <tt><tt>ChangeMessageVisibility</tt> </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
--   <tt>200</tt> .
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 whose
--   messages' visibility is changed. 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 whose messages' visibility is changed.
--   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
--   <tt><a>ChangeMessageVisibilityBatchResultEntry</a> </tt> items.</li>
--   <li><a>cmvbrsFailed</a> - A list of <tt><a>BatchResultErrorEntry</a>
--   </tt> items.</li>
--   </ul>
changeMessageVisibilityBatchResponse :: Int -> ChangeMessageVisibilityBatchResponse

-- | For each message in the batch, the response contains a
--   <tt><a>ChangeMessageVisibilityBatchResultEntry</a> </tt> tag if the
--   message succeeds or a <tt><a>BatchResultErrorEntry</a> </tt> 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 <tt><a>ChangeMessageVisibilityBatchResultEntry</a> </tt>
--   items.
cmvbrsSuccessful :: Lens' ChangeMessageVisibilityBatchResponse [ChangeMessageVisibilityBatchResultEntry]

-- | A list of <tt><a>BatchResultErrorEntry</a> </tt> 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 Control.DeepSeq.NFData Network.AWS.SQS.ChangeMessageVisibilityBatch.ChangeMessageVisibilityBatchResponse
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


-- | Changes the visibility timeout of a specified message in a queue to a
--   new value. The maximum allowed timeout value is 12 hours. Thus, 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, see
--   <a>Visibility Timeout</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> .
--   
--   For example, you have a message with a visibility timeout of 5
--   minutes. After 3 minutes, you call <tt>ChangeMessageVisiblity</tt>
--   with a timeout of 10 minutes. At that time, the timeout for the
--   message is extended by 10 minutes beyond the time of the
--   <tt>ChangeMessageVisibility</tt> action. This results in a total
--   visibility timeout of 13 minutes. You can continue to call the
--   <tt>ChangeMessageVisibility</tt> to extend the visibility timeout to a
--   maximum of 12 hours. If you try to extend the visibility timeout
--   beyond 12 hours, your request is rejected.
--   
--   A message is considered to be <i>in flight</i> after it's received
--   from a queue by a consumer, but not yet deleted from the queue.
--   
--   For standard queues, there can be a maximum of 120,000 inflight
--   messages per queue. If you reach this limit, Amazon SQS returns the
--   <tt>OverLimit</tt> error message. To avoid reaching the limit, you
--   should delete messages from the queue after they're processed. You can
--   also increase the number of queues you use to process your messages.
--   
--   For FIFO queues, there can be a maximum of 20,000 inflight messages
--   per queue. If you reach this limit, Amazon SQS returns no error
--   messages.
--   
--   <i>Important:</i> If you attempt to set the <tt>VisibilityTimeout</tt>
--   to a value greater than the maximum time left, Amazon SQS returns an
--   error. Amazon SQS doesn't automatically recalculate and increase the
--   timeout to the maximum remaining time.
--   
--   Unlike with a queue, when you change the visibility timeout for a
--   specific message the timeout value is applied immediately but isn't
--   saved in memory for that message. If you don't delete a message after
--   it is received, the visibility timeout for the message reverts to the
--   original timeout value (not to the value you set using the
--   <tt>ChangeMessageVisibility</tt> action) the next time the message is
--   received.
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 whose
--   message's visibility is changed. Queue URLs are case-sensitive.</li>
--   <li><a>cmvReceiptHandle</a> - The receipt handle associated with the
--   message whose visibility timeout is changed. This parameter is
--   returned by the <tt><tt>ReceiveMessage</tt> </tt> action.</li>
--   <li><a>cmvVisibilityTimeout</a> - The new value for the message's
--   visibility timeout (in seconds). Values values: <tt>0</tt> to
--   <tt>43200</tt> . Maximum: 12 hours.</li>
--   </ul>
changeMessageVisibility :: Text -> Text -> Int -> ChangeMessageVisibility

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

-- | The URL of the Amazon SQS queue whose message's visibility is changed.
--   Queue URLs are case-sensitive.
cmvQueueURL :: Lens' ChangeMessageVisibility Text

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

-- | The new value for the message's visibility timeout (in seconds).
--   Values values: <tt>0</tt> to <tt>43200</tt> . Maximum: 12 hours.
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 Control.DeepSeq.NFData Network.AWS.SQS.ChangeMessageVisibility.ChangeMessageVisibilityResponse
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


-- | Adds a permission to a queue for a specific <a>principal</a> . This
--   allows sharing access to the queue.
--   
--   When you create a queue, you have full control access rights for the
--   queue. Only you, the 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 Simple Queue Service Developer
--   Guide</i> .
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 which
--   permissions are added. Queue URLs are case-sensitive.</li>
--   <li><a>apLabel</a> - The unique identification of the permission
--   you're setting (for example, <tt>AliceSendMessage</tt> ). Maximum 80
--   characters. Allowed characters include alphanumeric characters,
--   hyphens (<tt>-</tt> ), and underscores (<tt>_</tt> ).</li>
--   <li><a>apAWSAccountIds</a> - The AWS account number of the
--   <a>principal</a> who is given permission. The principal must have an
--   AWS account, but does not need to be signed up for Amazon SQS. For
--   information about locating the AWS account identification, see <a>Your
--   AWS Identifiers</a> in the <i>Amazon Simple Queue Service Developer
--   Guide</i> .</li>
--   <li><a>apActions</a> - The action the client wants to allow for the
--   specified principal. The following values are valid: * <tt>*</tt> *
--   <tt>ChangeMessageVisibility</tt> * <tt>DeleteMessage</tt> *
--   <tt>GetQueueAttributes</tt> * <tt>GetQueueUrl</tt> *
--   <tt>ReceiveMessage</tt> * <tt>SendMessage</tt> For more information
--   about these actions, see <a>Understanding Permissions</a> in the
--   <i>Amazon Simple Queue Service Developer Guide</i> . Specifying
--   <tt>SendMessage</tt> , <tt>DeleteMessage</tt> , or
--   <tt>ChangeMessageVisibility</tt> for <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 which permissions are added. Queue
--   URLs are case-sensitive.
apQueueURL :: Lens' AddPermission Text

-- | The unique identification of the permission you're setting (for
--   example, <tt>AliceSendMessage</tt> ). Maximum 80 characters. Allowed
--   characters include alphanumeric characters, hyphens (<tt>-</tt> ), and
--   underscores (<tt>_</tt> ).
apLabel :: Lens' AddPermission Text

-- | The AWS account number of the <a>principal</a> who is given
--   permission. The principal must have an AWS account, but does not need
--   to be signed up for Amazon SQS. For information about locating the AWS
--   account identification, see <a>Your AWS Identifiers</a> in the
--   <i>Amazon Simple Queue Service Developer Guide</i> .
apAWSAccountIds :: Lens' AddPermission [Text]

-- | The action the client wants to allow for the specified principal. The
--   following values are valid: * <tt>*</tt> *
--   <tt>ChangeMessageVisibility</tt> * <tt>DeleteMessage</tt> *
--   <tt>GetQueueAttributes</tt> * <tt>GetQueueUrl</tt> *
--   <tt>ReceiveMessage</tt> * <tt>SendMessage</tt> For more information
--   about these actions, see <a>Understanding Permissions</a> in the
--   <i>Amazon Simple Queue Service Developer Guide</i> . Specifying
--   <tt>SendMessage</tt> , <tt>DeleteMessage</tt> , or
--   <tt>ChangeMessageVisibility</tt> for <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 Control.DeepSeq.NFData Network.AWS.SQS.AddPermission.AddPermissionResponse
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


-- | Remove cost allocation tags from the specified Amazon SQS queue. For
--   an overview, see <a>Tagging Amazon SQS Queues</a> in the <i>Amazon
--   Simple Queue Service Developer Guide</i> .
--   
--   When you use queue tags, keep the following guidelines in mind:
--   
--   <ul>
--   <li>Adding more than 50 tags to a queue isn't recommended.</li>
--   <li>Tags don't have any semantic meaning. Amazon SQS interprets tags
--   as character strings.</li>
--   <li>Tags are case-sensitive.</li>
--   <li>A new tag with a key identical to that of an existing tag
--   overwrites the existing tag.</li>
--   <li>Tagging API actions are limited to 5 TPS per AWS account. If your
--   application requires a higher throughput, file a <a>technical support
--   request</a> .</li>
--   </ul>
--   
--   For a full list of tag restrictions, see <a>Limits Related to
--   Queues</a> in the <i>Amazon Simple Queue Service Developer Guide</i> .
module Network.AWS.SQS.UntagQueue

-- | Creates a value of <a>UntagQueue</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>uqQueueURL</a> - The URL of the queue.</li>
--   <li><a>uqTagKeys</a> - The list of tags to be removed from the
--   specified queue.</li>
--   </ul>
untagQueue :: Text -> UntagQueue

-- | <i>See:</i> <a>untagQueue</a> smart constructor.
data UntagQueue

-- | The URL of the queue.
uqQueueURL :: Lens' UntagQueue Text

-- | The list of tags to be removed from the specified queue.
uqTagKeys :: Lens' UntagQueue [Text]

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

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


module Network.AWS.SQS.Waiters


-- | Welcome to the <i>Amazon Simple Queue Service API Reference</i> .
--   
--   Amazon Simple Queue Service (Amazon SQS) is a reliable,
--   highly-scalable hosted queue for storing messages as they travel
--   between applications or microservices. Amazon SQS moves data between
--   distributed application components and helps you decouple these
--   components.
--   
--   You can use <a>AWS SDKs</a> to access Amazon SQS using your favorite
--   programming language. The SDKs perform tasks such as the following
--   automatically:
--   
--   <ul>
--   <li>Cryptographically sign your service requests</li>
--   <li>Retry requests</li>
--   <li>Handle error responses</li>
--   </ul>
--   
--   <b>Additional Information</b>
--   
--   <ul>
--   <li><a>Amazon SQS Product Page</a></li>
--   <li><i>Amazon Simple Queue Service Developer Guide</i></li>
--   <li><a>Making API Requests</a></li>
--   <li><a>Using Amazon SQS Message Attributes</a></li>
--   <li><a>Using Amazon SQS Dead-Letter Queues</a></li>
--   <li><i>Amazon Web Services General Reference</i></li>
--   <li><a>Regions and Endpoints</a></li>
--   </ul>
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

-- | The batch request contains more 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 one 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,
--   <tt>ReceiveMessage</tt> returns this error if the maximum number of
--   inflight messages is reached. <tt><tt>AddPermission</tt> </tt> returns
--   this error if the maximum number of permissions for the queue is
--   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 isn't valid for the current version.
_InvalidIdFormat :: AsError a => Getting (First ServiceError) a ServiceError

-- | The receipt handle provided isn't valid.
_ReceiptHandleIsInvalid :: AsError a => Getting (First ServiceError) a ServiceError

-- | The batch request doesn't contain any entries.
_EmptyBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError

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

-- | The message referred to isn't 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
QANKMSDataKeyReusePeriodSeconds :: QueueAttributeName
QANKMSMasterKeyId :: 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 <tt>Id</tt> of an entry in a batch
--   request.</li>
--   <li><a>breeSenderFault</a> - Specifies 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 <tt>Id</tt> of an entry in a batch request.
breeId :: Lens' BatchResultErrorEntry Text

-- | Specifies 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><tt>ChangeMessageVisibilityBatch</tt> .</tt>
--   
--   <i>Important:</i> All of the following list parameters must be
--   prefixed with <tt>ChangeMessageVisibilityBatchRequestEntry.n</tt> ,
--   where <tt>n</tt> is an integer value starting with <tt>1</tt> . 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 used
--   to communicate the result.</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 used to communicate
--   the result.
cId :: Lens' ChangeMessageVisibilityBatchRequestEntry Text

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

-- | Encloses the <tt>Id</tt> of an entry in
--   <tt><tt>ChangeMessageVisibilityBatch</tt> .</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.</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.
dmbreId :: Lens' DeleteMessageBatchRequestEntry Text

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

-- | Encloses the <tt>Id</tt> of an entry in
--   <tt><tt>DeleteMessageBatch</tt> .</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
--   <tt>Name</tt> , <tt>Type</tt> , and <tt>Value</tt> . For more
--   information, see <a>Message Attribute Items and Validation</a> in the
--   <i>Amazon Simple Queue Service 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. A
--   <tt>MessageId</tt> is 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. You can use this attribute
--   to verify that Amazon SQS received the message correctly. Amazon SQS
--   URL-decodes the message before creating the MD5 digest. For
--   information about MD5, see <a>RFC1321</a> .</li>
--   </ul>
message :: Message

-- | Each message attribute consists of a <tt>Name</tt> , <tt>Type</tt> ,
--   and <tt>Value</tt> . For more information, see <a>Message Attribute
--   Items and Validation</a> in the <i>Amazon Simple Queue Service
--   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. A <tt>MessageId</tt> is
--   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. You can
--   use this attribute to verify that Amazon SQS received the message
--   correctly. Amazon SQS URL-decodes the message before creating the MD5
--   digest. For information about MD5, see <a>RFC1321</a> .
mMD5OfMessageAttributes :: Lens' Message (Maybe Text)

-- | The user-specified message attribute value. For string data types, the
--   <tt>Value</tt> attribute has the same restrictions on the content as
--   the message body. For more information, see <tt><tt>SendMessage</tt>
--   .</tt>
--   
--   <tt>Name</tt> , <tt>type</tt> , <tt>value</tt> and the message body
--   must not be empty or null. All parts of the message attribute,
--   including <tt>Name</tt> , <tt>Type</tt> , and <tt>Value</tt> , are
--   part of the message size restriction (256 KB or 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, such as 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 UTF-8 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: <tt>String</tt> , <tt>Number</tt> , and <tt>Binary</tt> .
--   For the <tt>Number</tt> data type, you must use <tt>StringValue</tt> .
--   You can also append custom labels. For more information, see
--   <a>Message Attribute Data Types and Validation</a> in the <i>Amazon
--   Simple Queue Service Developer Guide</i> .</li>
--   </ul>
messageAttributeValue :: Text -> MessageAttributeValue

-- | Binary type attributes can store any binary data, such as 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 UTF-8 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: <tt>String</tt>
--   , <tt>Number</tt> , and <tt>Binary</tt> . For the <tt>Number</tt> data
--   type, you must use <tt>StringValue</tt> . You can also append custom
--   labels. For more information, see <a>Message Attribute Data Types and
--   Validation</a> in the <i>Amazon Simple Queue Service Developer
--   Guide</i> .
mavDataType :: Lens' MessageAttributeValue Text

-- | Contains the details of a single Amazon SQS message along with an
--   <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
--   <tt>Name</tt> , <tt>Type</tt> , and <tt>Value</tt> . For more
--   information, see <a>Message Attribute Items and Validation</a> in the
--   <i>Amazon Simple Queue Service Developer Guide</i> .</li>
--   <li><a>sDelaySeconds</a> - The length of time, in seconds, for which a
--   specific message is delayed. Valid values: 0 to 900. Maximum: 15
--   minutes. Messages with a positive <tt>DelaySeconds</tt> value become
--   available for processing after the delay period is finished. If you
--   don't specify a value, the default value for the queue is
--   applied.</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 Simple Queue Service 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. * 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<tt> , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> . <i>Important:</i> </tt>MessageGroupId@ is
--   required for FIFO queues. You can't use it for Standard queues.</li>
--   <li><a>sId</a> - An identifier for a message in this batch used to
--   communicate the result.</li>
--   <li><a>sMessageBody</a> - The body of the message.</li>
--   </ul>
sendMessageBatchRequestEntry :: Text -> Text -> SendMessageBatchRequestEntry

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

-- | The length of time, in seconds, for which a specific message is
--   delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a
--   positive <tt>DelaySeconds</tt> value become available for processing
--   after the delay period is finished. If you don't specify a value, the
--   default value for the queue is applied.
sDelaySeconds :: Lens' SendMessageBatchRequestEntry (Maybe Int)

-- | 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 Simple Queue Service
--   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. * 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<tt> , see <a>Using the
--   MessageGroupId Property</a> in the <i>Amazon Simple Queue Service
--   Developer Guide</i> . <i>Important:</i> </tt>MessageGroupId@ is
--   required for FIFO queues. You can't use it for Standard queues.
sMessageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text)

-- | An identifier for a message in this batch used to communicate the
--   result.
sId :: Lens' SendMessageBatchRequestEntry Text

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

-- | Encloses a <tt>MessageId</tt> for a successfully-enqueued message in a
--   <tt><tt>SendMessageBatch</tt> .</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> - This parameter applies only to FIFO
--   (first-in-first-out) queues. The large, non-consecutive number that
--   Amazon SQS assigns to each message. The length of
--   <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. You can use this attribute
--   to verify that Amazon SQS received the message correctly. Amazon SQS
--   URL-decodes the message before creating the MD5 digest. For
--   information about MD5, see <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 attribute string. You can use this attribute
--   to verify that Amazon SQS received the message correctly. Amazon SQS
--   URL-decodes the message before creating the MD5 digest. For
--   information about MD5, see <a>RFC1321</a> .</li>
--   </ul>
sendMessageBatchResultEntry :: Text -> Text -> Text -> SendMessageBatchResultEntry

-- | This parameter applies only to FIFO (first-in-first-out) queues. The
--   large, non-consecutive number that Amazon SQS assigns to each message.
--   The length of <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. You can
--   use this attribute to verify that Amazon SQS received the message
--   correctly. Amazon SQS URL-decodes the message before creating the MD5
--   digest. For information about MD5, see <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 attribute string. You can
--   use this attribute to verify that Amazon SQS received the message
--   correctly. Amazon SQS URL-decodes the message before creating the MD5
--   digest. For information about MD5, see <a>RFC1321</a> .
smbreMD5OfMessageBody :: Lens' SendMessageBatchResultEntry Text
