Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
- Service Configuration
- Errors
- MessageAttribute
- MessageSystemAttributeNameForSends
- QueueAttributeName
- BatchResultErrorEntry
- ChangeMessageVisibilityBatchRequestEntry
- ChangeMessageVisibilityBatchResultEntry
- DeleteMessageBatchRequestEntry
- DeleteMessageBatchResultEntry
- Message
- MessageAttributeValue
- MessageSystemAttributeValue
- SendMessageBatchRequestEntry
- SendMessageBatchResultEntry
Synopsis
- defaultService :: Service
- _InvalidBatchEntryId :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyEntriesInBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError
- _QueueDeletedRecently :: AsError a => Getting (First ServiceError) a ServiceError
- _QueueDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidAttributeName :: AsError a => Getting (First ServiceError) a ServiceError
- _UnsupportedOperation :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidMessageContents :: AsError a => Getting (First ServiceError) a ServiceError
- _BatchRequestTooLong :: AsError a => Getting (First ServiceError) a ServiceError
- _OverLimit :: AsError a => Getting (First ServiceError) a ServiceError
- _QueueNameExists :: AsError a => Getting (First ServiceError) a ServiceError
- _PurgeQueueInProgress :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidIdFormat :: AsError a => Getting (First ServiceError) a ServiceError
- _ReceiptHandleIsInvalid :: AsError a => Getting (First ServiceError) a ServiceError
- _EmptyBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError
- _BatchEntryIdsNotDistinct :: AsError a => Getting (First ServiceError) a ServiceError
- _MessageNotInflight :: AsError a => Getting (First ServiceError) a ServiceError
- newtype MessageAttribute where
- MessageAttribute' { }
- pattern MessageAttribute_All :: MessageAttribute
- pattern MessageAttribute_ApproximateFirstReceiveTimestamp :: MessageAttribute
- pattern MessageAttribute_ApproximateReceiveCount :: MessageAttribute
- pattern MessageAttribute_SenderId :: MessageAttribute
- pattern MessageAttribute_SentTimestamp :: MessageAttribute
- newtype MessageSystemAttributeNameForSends where
- newtype QueueAttributeName where
- QueueAttributeName' { }
- pattern QueueAttributeName_All :: QueueAttributeName
- pattern QueueAttributeName_ApproximateNumberOfMessages :: QueueAttributeName
- pattern QueueAttributeName_ApproximateNumberOfMessagesDelayed :: QueueAttributeName
- pattern QueueAttributeName_ApproximateNumberOfMessagesNotVisible :: QueueAttributeName
- pattern QueueAttributeName_ContentBasedDeduplication :: QueueAttributeName
- pattern QueueAttributeName_CreatedTimestamp :: QueueAttributeName
- pattern QueueAttributeName_DeduplicationScope :: QueueAttributeName
- pattern QueueAttributeName_DelaySeconds :: QueueAttributeName
- pattern QueueAttributeName_FifoQueue :: QueueAttributeName
- pattern QueueAttributeName_FifoThroughputLimit :: QueueAttributeName
- pattern QueueAttributeName_KmsDataKeyReusePeriodSeconds :: QueueAttributeName
- pattern QueueAttributeName_KmsMasterKeyId :: QueueAttributeName
- pattern QueueAttributeName_LastModifiedTimestamp :: QueueAttributeName
- pattern QueueAttributeName_MaximumMessageSize :: QueueAttributeName
- pattern QueueAttributeName_MessageRetentionPeriod :: QueueAttributeName
- pattern QueueAttributeName_Policy :: QueueAttributeName
- pattern QueueAttributeName_QueueArn :: QueueAttributeName
- pattern QueueAttributeName_ReceiveMessageWaitTimeSeconds :: QueueAttributeName
- pattern QueueAttributeName_RedriveAllowPolicy :: QueueAttributeName
- pattern QueueAttributeName_RedrivePolicy :: QueueAttributeName
- pattern QueueAttributeName_VisibilityTimeout :: QueueAttributeName
- data BatchResultErrorEntry = BatchResultErrorEntry' {}
- newBatchResultErrorEntry :: Text -> Bool -> Text -> BatchResultErrorEntry
- batchResultErrorEntry_message :: Lens' BatchResultErrorEntry (Maybe Text)
- batchResultErrorEntry_id :: Lens' BatchResultErrorEntry Text
- batchResultErrorEntry_senderFault :: Lens' BatchResultErrorEntry Bool
- batchResultErrorEntry_code :: Lens' BatchResultErrorEntry Text
- data ChangeMessageVisibilityBatchRequestEntry = ChangeMessageVisibilityBatchRequestEntry' {
- visibilityTimeout :: Maybe Int
- id :: Text
- receiptHandle :: Text
- newChangeMessageVisibilityBatchRequestEntry :: Text -> Text -> ChangeMessageVisibilityBatchRequestEntry
- changeMessageVisibilityBatchRequestEntry_visibilityTimeout :: Lens' ChangeMessageVisibilityBatchRequestEntry (Maybe Int)
- changeMessageVisibilityBatchRequestEntry_id :: Lens' ChangeMessageVisibilityBatchRequestEntry Text
- changeMessageVisibilityBatchRequestEntry_receiptHandle :: Lens' ChangeMessageVisibilityBatchRequestEntry Text
- data ChangeMessageVisibilityBatchResultEntry = ChangeMessageVisibilityBatchResultEntry' {}
- newChangeMessageVisibilityBatchResultEntry :: Text -> ChangeMessageVisibilityBatchResultEntry
- changeMessageVisibilityBatchResultEntry_id :: Lens' ChangeMessageVisibilityBatchResultEntry Text
- data DeleteMessageBatchRequestEntry = DeleteMessageBatchRequestEntry' {
- id :: Text
- receiptHandle :: Text
- newDeleteMessageBatchRequestEntry :: Text -> Text -> DeleteMessageBatchRequestEntry
- deleteMessageBatchRequestEntry_id :: Lens' DeleteMessageBatchRequestEntry Text
- deleteMessageBatchRequestEntry_receiptHandle :: Lens' DeleteMessageBatchRequestEntry Text
- data DeleteMessageBatchResultEntry = DeleteMessageBatchResultEntry' {}
- newDeleteMessageBatchResultEntry :: Text -> DeleteMessageBatchResultEntry
- deleteMessageBatchResultEntry_id :: Lens' DeleteMessageBatchResultEntry Text
- data Message = Message' {}
- newMessage :: Message
- message_messageAttributes :: Lens' Message (Maybe (HashMap Text MessageAttributeValue))
- message_mD5OfBody :: Lens' Message (Maybe Text)
- message_body :: Lens' Message (Maybe Text)
- message_attributes :: Lens' Message (Maybe (HashMap MessageAttribute Text))
- message_receiptHandle :: Lens' Message (Maybe Text)
- message_messageId :: Lens' Message (Maybe Text)
- message_mD5OfMessageAttributes :: Lens' Message (Maybe Text)
- data MessageAttributeValue = MessageAttributeValue' {
- binaryValue :: Maybe Base64
- stringListValues :: Maybe [Text]
- stringValue :: Maybe Text
- binaryListValues :: Maybe [Base64]
- dataType :: Text
- newMessageAttributeValue :: Text -> MessageAttributeValue
- messageAttributeValue_binaryValue :: Lens' MessageAttributeValue (Maybe ByteString)
- messageAttributeValue_stringListValues :: Lens' MessageAttributeValue (Maybe [Text])
- messageAttributeValue_stringValue :: Lens' MessageAttributeValue (Maybe Text)
- messageAttributeValue_binaryListValues :: Lens' MessageAttributeValue (Maybe [ByteString])
- messageAttributeValue_dataType :: Lens' MessageAttributeValue Text
- data MessageSystemAttributeValue = MessageSystemAttributeValue' {
- binaryValue :: Maybe Base64
- stringListValues :: Maybe [Text]
- stringValue :: Maybe Text
- binaryListValues :: Maybe [Base64]
- dataType :: Text
- newMessageSystemAttributeValue :: Text -> MessageSystemAttributeValue
- messageSystemAttributeValue_binaryValue :: Lens' MessageSystemAttributeValue (Maybe ByteString)
- messageSystemAttributeValue_stringListValues :: Lens' MessageSystemAttributeValue (Maybe [Text])
- messageSystemAttributeValue_stringValue :: Lens' MessageSystemAttributeValue (Maybe Text)
- messageSystemAttributeValue_binaryListValues :: Lens' MessageSystemAttributeValue (Maybe [ByteString])
- messageSystemAttributeValue_dataType :: Lens' MessageSystemAttributeValue Text
- data SendMessageBatchRequestEntry = SendMessageBatchRequestEntry' {}
- newSendMessageBatchRequestEntry :: Text -> Text -> SendMessageBatchRequestEntry
- sendMessageBatchRequestEntry_messageAttributes :: Lens' SendMessageBatchRequestEntry (Maybe (HashMap Text MessageAttributeValue))
- sendMessageBatchRequestEntry_delaySeconds :: Lens' SendMessageBatchRequestEntry (Maybe Int)
- sendMessageBatchRequestEntry_messageSystemAttributes :: Lens' SendMessageBatchRequestEntry (Maybe (HashMap MessageSystemAttributeNameForSends MessageSystemAttributeValue))
- sendMessageBatchRequestEntry_messageDeduplicationId :: Lens' SendMessageBatchRequestEntry (Maybe Text)
- sendMessageBatchRequestEntry_messageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text)
- sendMessageBatchRequestEntry_id :: Lens' SendMessageBatchRequestEntry Text
- sendMessageBatchRequestEntry_messageBody :: Lens' SendMessageBatchRequestEntry Text
- data SendMessageBatchResultEntry = SendMessageBatchResultEntry' {}
- newSendMessageBatchResultEntry :: Text -> Text -> Text -> SendMessageBatchResultEntry
- sendMessageBatchResultEntry_sequenceNumber :: Lens' SendMessageBatchResultEntry (Maybe Text)
- sendMessageBatchResultEntry_mD5OfMessageSystemAttributes :: Lens' SendMessageBatchResultEntry (Maybe Text)
- sendMessageBatchResultEntry_mD5OfMessageAttributes :: Lens' SendMessageBatchResultEntry (Maybe Text)
- sendMessageBatchResultEntry_id :: Lens' SendMessageBatchResultEntry Text
- sendMessageBatchResultEntry_messageId :: Lens' SendMessageBatchResultEntry Text
- sendMessageBatchResultEntry_mD5OfMessageBody :: Lens' SendMessageBatchResultEntry Text
Service Configuration
defaultService :: Service Source #
API version 2012-11-05
of the Amazon Simple Queue Service SDK configuration.
Errors
_InvalidBatchEntryId :: AsError a => Getting (First ServiceError) a ServiceError Source #
The Id
of a batch entry in a batch request doesn't abide by the
specification.
_TooManyEntriesInBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError Source #
The batch request contains more entries than permissible.
_QueueDeletedRecently :: AsError a => Getting (First ServiceError) a ServiceError Source #
You must wait 60 seconds after deleting a queue before you can create another queue with the same name.
_QueueDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified queue doesn't exist.
_InvalidAttributeName :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified attribute doesn't exist.
_UnsupportedOperation :: AsError a => Getting (First ServiceError) a ServiceError Source #
Error code 400. Unsupported operation.
_InvalidMessageContents :: AsError a => Getting (First ServiceError) a ServiceError Source #
The message contains characters outside the allowed set.
_BatchRequestTooLong :: AsError a => Getting (First ServiceError) a ServiceError Source #
The length of all the messages put together is more than the limit.
_OverLimit :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified action violates a limit. For example, ReceiveMessage
returns this error if the maximum number of inflight messages is reached
and AddPermission
returns this error if the maximum number of
permissions for the queue is reached.
_QueueNameExists :: AsError a => Getting (First ServiceError) a ServiceError Source #
A queue with this name already exists. Amazon SQS returns this error only if the request includes attributes whose values differ from those of the existing queue.
_PurgeQueueInProgress :: AsError a => Getting (First ServiceError) a ServiceError Source #
Indicates that the specified queue previously received a PurgeQueue
request within the last 60 seconds (the time it can take to delete the
messages in the queue).
_InvalidIdFormat :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified receipt handle isn't valid for the current version.
_ReceiptHandleIsInvalid :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified receipt handle isn't valid.
_EmptyBatchRequest :: AsError a => Getting (First ServiceError) a ServiceError Source #
The batch request doesn't contain any entries.
_BatchEntryIdsNotDistinct :: AsError a => Getting (First ServiceError) a ServiceError Source #
Two or more batch entries in the request have the same Id
.
_MessageNotInflight :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified message isn't in flight.
MessageAttribute
newtype MessageAttribute Source #
pattern MessageAttribute_All :: MessageAttribute | |
pattern MessageAttribute_ApproximateFirstReceiveTimestamp :: MessageAttribute | |
pattern MessageAttribute_ApproximateReceiveCount :: MessageAttribute | |
pattern MessageAttribute_SenderId :: MessageAttribute | |
pattern MessageAttribute_SentTimestamp :: MessageAttribute |
Instances
MessageSystemAttributeNameForSends
newtype MessageSystemAttributeNameForSends Source #
Instances
QueueAttributeName
newtype QueueAttributeName Source #
Instances
BatchResultErrorEntry
data BatchResultErrorEntry Source #
Gives a detailed description of the result of an action on each entry in the request.
See: newBatchResultErrorEntry
smart constructor.
Instances
newBatchResultErrorEntry Source #
:: Text | |
-> Bool | |
-> Text | |
-> BatchResultErrorEntry |
Create a value of BatchResultErrorEntry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:message:BatchResultErrorEntry'
, batchResultErrorEntry_message
- A message explaining why the action failed on this entry.
$sel:id:BatchResultErrorEntry'
, batchResultErrorEntry_id
- The Id
of an entry in a batch request.
$sel:senderFault:BatchResultErrorEntry'
, batchResultErrorEntry_senderFault
- Specifies whether the error happened due to the caller of the batch API
action.
$sel:code:BatchResultErrorEntry'
, batchResultErrorEntry_code
- An error code representing why the action failed on this entry.
batchResultErrorEntry_message :: Lens' BatchResultErrorEntry (Maybe Text) Source #
A message explaining why the action failed on this entry.
batchResultErrorEntry_id :: Lens' BatchResultErrorEntry Text Source #
The Id
of an entry in a batch request.
batchResultErrorEntry_senderFault :: Lens' BatchResultErrorEntry Bool Source #
Specifies whether the error happened due to the caller of the batch API action.
batchResultErrorEntry_code :: Lens' BatchResultErrorEntry Text Source #
An error code representing why the action failed on this entry.
ChangeMessageVisibilityBatchRequestEntry
data ChangeMessageVisibilityBatchRequestEntry Source #
Encloses a receipt handle and an entry id for each message in
ChangeMessageVisibilityBatch.
All of the following list parameters must be prefixed with
ChangeMessageVisibilityBatchRequestEntry.n
, where n
is an integer
value starting with 1
. For example, a parameter list for this action
might look like this:
&ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2
&ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=your_receipt_handle
&ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45
See: newChangeMessageVisibilityBatchRequestEntry
smart constructor.
ChangeMessageVisibilityBatchRequestEntry' | |
|
Instances
newChangeMessageVisibilityBatchRequestEntry Source #
:: Text | |
-> Text |
|
-> ChangeMessageVisibilityBatchRequestEntry |
Create a value of ChangeMessageVisibilityBatchRequestEntry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:visibilityTimeout:ChangeMessageVisibilityBatchRequestEntry'
, changeMessageVisibilityBatchRequestEntry_visibilityTimeout
- The new value (in seconds) for the message's visibility timeout.
$sel:id:ChangeMessageVisibilityBatchRequestEntry'
, changeMessageVisibilityBatchRequestEntry_id
- An identifier for this particular receipt handle used to communicate the
result.
The Id
s of a batch request need to be unique within a request.
This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).
$sel:receiptHandle:ChangeMessageVisibilityBatchRequestEntry'
, changeMessageVisibilityBatchRequestEntry_receiptHandle
- A receipt handle.
changeMessageVisibilityBatchRequestEntry_visibilityTimeout :: Lens' ChangeMessageVisibilityBatchRequestEntry (Maybe Int) Source #
The new value (in seconds) for the message's visibility timeout.
changeMessageVisibilityBatchRequestEntry_id :: Lens' ChangeMessageVisibilityBatchRequestEntry Text Source #
An identifier for this particular receipt handle used to communicate the result.
The Id
s of a batch request need to be unique within a request.
This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).
changeMessageVisibilityBatchRequestEntry_receiptHandle :: Lens' ChangeMessageVisibilityBatchRequestEntry Text Source #
A receipt handle.
ChangeMessageVisibilityBatchResultEntry
data ChangeMessageVisibilityBatchResultEntry Source #
Encloses the Id
of an entry in ChangeMessageVisibilityBatch.
See: newChangeMessageVisibilityBatchResultEntry
smart constructor.
Instances
Eq ChangeMessageVisibilityBatchResultEntry Source # | |
Read ChangeMessageVisibilityBatchResultEntry Source # | |
Show ChangeMessageVisibilityBatchResultEntry Source # | |
Generic ChangeMessageVisibilityBatchResultEntry Source # | |
NFData ChangeMessageVisibilityBatchResultEntry Source # | |
Hashable ChangeMessageVisibilityBatchResultEntry Source # | |
FromXML ChangeMessageVisibilityBatchResultEntry Source # | |
type Rep ChangeMessageVisibilityBatchResultEntry Source # | |
Defined in Amazonka.SQS.Types.ChangeMessageVisibilityBatchResultEntry type Rep ChangeMessageVisibilityBatchResultEntry = D1 ('MetaData "ChangeMessageVisibilityBatchResultEntry" "Amazonka.SQS.Types.ChangeMessageVisibilityBatchResultEntry" "libZSservicesZSamazonka-sqsZSamazonka-sqs" 'False) (C1 ('MetaCons "ChangeMessageVisibilityBatchResultEntry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newChangeMessageVisibilityBatchResultEntry Source #
Create a value of ChangeMessageVisibilityBatchResultEntry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:id:ChangeMessageVisibilityBatchResultEntry'
, changeMessageVisibilityBatchResultEntry_id
- Represents a message whose visibility timeout has been changed
successfully.
changeMessageVisibilityBatchResultEntry_id :: Lens' ChangeMessageVisibilityBatchResultEntry Text Source #
Represents a message whose visibility timeout has been changed successfully.
DeleteMessageBatchRequestEntry
data DeleteMessageBatchRequestEntry Source #
Encloses a receipt handle and an identifier for it.
See: newDeleteMessageBatchRequestEntry
smart constructor.
DeleteMessageBatchRequestEntry' | |
|
Instances
newDeleteMessageBatchRequestEntry Source #
Create a value of DeleteMessageBatchRequestEntry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:id:DeleteMessageBatchRequestEntry'
, deleteMessageBatchRequestEntry_id
- An identifier for this particular receipt handle. This is used to
communicate the result.
The Id
s of a batch request need to be unique within a request.
This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).
$sel:receiptHandle:DeleteMessageBatchRequestEntry'
, deleteMessageBatchRequestEntry_receiptHandle
- A receipt handle.
deleteMessageBatchRequestEntry_id :: Lens' DeleteMessageBatchRequestEntry Text Source #
An identifier for this particular receipt handle. This is used to communicate the result.
The Id
s of a batch request need to be unique within a request.
This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).
deleteMessageBatchRequestEntry_receiptHandle :: Lens' DeleteMessageBatchRequestEntry Text Source #
A receipt handle.
DeleteMessageBatchResultEntry
data DeleteMessageBatchResultEntry Source #
Encloses the Id
of an entry in DeleteMessageBatch.
See: newDeleteMessageBatchResultEntry
smart constructor.
Instances
newDeleteMessageBatchResultEntry Source #
Create a value of DeleteMessageBatchResultEntry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:id:DeleteMessageBatchResultEntry'
, deleteMessageBatchResultEntry_id
- Represents a successfully deleted message.
deleteMessageBatchResultEntry_id :: Lens' DeleteMessageBatchResultEntry Text Source #
Represents a successfully deleted message.
Message
An Amazon SQS message.
See: newMessage
smart constructor.
Message' | |
|
Instances
newMessage :: Message Source #
Create a value of Message
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:messageAttributes:Message'
, message_messageAttributes
- Each message attribute consists of a Name
, Type
, and Value
. For
more information, see
Amazon SQS message attributes
in the Amazon SQS Developer Guide.
$sel:mD5OfBody:Message'
, message_mD5OfBody
- An MD5 digest of the non-URL-encoded message body string.
$sel:body:Message'
, message_body
- The message's contents (not URL-encoded).
$sel:attributes:Message'
, message_attributes
- A map of the attributes requested in ReceiveMessage
to their
respective values. Supported attributes:
ApproximateReceiveCount
ApproximateFirstReceiveTimestamp
MessageDeduplicationId
MessageGroupId
SenderId
SentTimestamp
SequenceNumber
ApproximateFirstReceiveTimestamp
and SentTimestamp
are each returned
as an integer representing the
epoch time in milliseconds.
$sel:receiptHandle:Message'
, message_receiptHandle
- 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.
$sel:messageId:Message'
, message_messageId
- A unique identifier for the message. A MessageId
is considered unique
across all accounts for an extended period of time.
$sel:mD5OfMessageAttributes:Message'
, message_mD5OfMessageAttributes
- 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
RFC1321.
message_messageAttributes :: Lens' Message (Maybe (HashMap Text MessageAttributeValue)) Source #
Each message attribute consists of a Name
, Type
, and Value
. For
more information, see
Amazon SQS message attributes
in the Amazon SQS Developer Guide.
message_mD5OfBody :: Lens' Message (Maybe Text) Source #
An MD5 digest of the non-URL-encoded message body string.
message_attributes :: Lens' Message (Maybe (HashMap MessageAttribute Text)) Source #
A map of the attributes requested in ReceiveMessage
to their
respective values. Supported attributes:
ApproximateReceiveCount
ApproximateFirstReceiveTimestamp
MessageDeduplicationId
MessageGroupId
SenderId
SentTimestamp
SequenceNumber
ApproximateFirstReceiveTimestamp
and SentTimestamp
are each returned
as an integer representing the
epoch time in milliseconds.
message_receiptHandle :: Lens' Message (Maybe Text) Source #
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.
message_messageId :: Lens' Message (Maybe Text) Source #
A unique identifier for the message. A MessageId
is considered unique
across all accounts for an extended period of time.
message_mD5OfMessageAttributes :: Lens' Message (Maybe Text) Source #
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 RFC1321.
MessageAttributeValue
data MessageAttributeValue Source #
The user-specified message attribute value. For string data types, the
Value
attribute has the same restrictions on the content as the
message body. For more information, see SendMessage.
Name
, type
, value
and the message body must not be empty or null.
All parts of the message attribute, including Name
, Type
, and
Value
, are part of the message size restriction (256 KB or 262,144
bytes).
See: newMessageAttributeValue
smart constructor.
MessageAttributeValue' | |
|
Instances
newMessageAttributeValue Source #
Create a value of MessageAttributeValue
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:binaryValue:MessageAttributeValue'
, messageAttributeValue_binaryValue
- Binary type attributes can store any binary data, such as compressed
data, encrypted data, or images.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
$sel:stringListValues:MessageAttributeValue'
, messageAttributeValue_stringListValues
- Not implemented. Reserved for future use.
$sel:stringValue:MessageAttributeValue'
, messageAttributeValue_stringValue
- Strings are Unicode with UTF-8 binary encoding. For a list of code
values, see
ASCII Printable Characters.
$sel:binaryListValues:MessageAttributeValue'
, messageAttributeValue_binaryListValues
- Not implemented. Reserved for future use.
$sel:dataType:MessageAttributeValue'
, messageAttributeValue_dataType
- Amazon SQS supports the following logical data types: String
,
Number
, and Binary
. For the Number
data type, you must use
StringValue
.
You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon SQS Developer Guide.
messageAttributeValue_binaryValue :: Lens' MessageAttributeValue (Maybe ByteString) Source #
Binary type attributes can store any binary data, such as compressed
data, encrypted data, or images.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
messageAttributeValue_stringListValues :: Lens' MessageAttributeValue (Maybe [Text]) Source #
Not implemented. Reserved for future use.
messageAttributeValue_stringValue :: Lens' MessageAttributeValue (Maybe Text) Source #
Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.
messageAttributeValue_binaryListValues :: Lens' MessageAttributeValue (Maybe [ByteString]) Source #
Not implemented. Reserved for future use.
messageAttributeValue_dataType :: Lens' MessageAttributeValue Text Source #
Amazon SQS supports the following logical data types: String
,
Number
, and Binary
. For the Number
data type, you must use
StringValue
.
You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon SQS Developer Guide.
MessageSystemAttributeValue
data MessageSystemAttributeValue Source #
The user-specified message system attribute value. For string data
types, the Value
attribute has the same restrictions on the content as
the message body. For more information, see SendMessage.
Name
, type
, value
and the message body must not be empty or null.
See: newMessageSystemAttributeValue
smart constructor.
MessageSystemAttributeValue' | |
|
Instances
newMessageSystemAttributeValue Source #
Create a value of MessageSystemAttributeValue
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:binaryValue:MessageSystemAttributeValue'
, messageSystemAttributeValue_binaryValue
- Binary type attributes can store any binary data, such as compressed
data, encrypted data, or images.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
$sel:stringListValues:MessageSystemAttributeValue'
, messageSystemAttributeValue_stringListValues
- Not implemented. Reserved for future use.
$sel:stringValue:MessageSystemAttributeValue'
, messageSystemAttributeValue_stringValue
- Strings are Unicode with UTF-8 binary encoding. For a list of code
values, see
ASCII Printable Characters.
$sel:binaryListValues:MessageSystemAttributeValue'
, messageSystemAttributeValue_binaryListValues
- Not implemented. Reserved for future use.
$sel:dataType:MessageSystemAttributeValue'
, messageSystemAttributeValue_dataType
- Amazon SQS supports the following logical data types: String
,
Number
, and Binary
. For the Number
data type, you must use
StringValue
.
You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon SQS Developer Guide.
messageSystemAttributeValue_binaryValue :: Lens' MessageSystemAttributeValue (Maybe ByteString) Source #
Binary type attributes can store any binary data, such as compressed
data, encrypted data, or images.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
messageSystemAttributeValue_stringListValues :: Lens' MessageSystemAttributeValue (Maybe [Text]) Source #
Not implemented. Reserved for future use.
messageSystemAttributeValue_stringValue :: Lens' MessageSystemAttributeValue (Maybe Text) Source #
Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.
messageSystemAttributeValue_binaryListValues :: Lens' MessageSystemAttributeValue (Maybe [ByteString]) Source #
Not implemented. Reserved for future use.
messageSystemAttributeValue_dataType :: Lens' MessageSystemAttributeValue Text Source #
Amazon SQS supports the following logical data types: String
,
Number
, and Binary
. For the Number
data type, you must use
StringValue
.
You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon SQS Developer Guide.
SendMessageBatchRequestEntry
data SendMessageBatchRequestEntry Source #
Contains the details of a single Amazon SQS message along with an Id
.
See: newSendMessageBatchRequestEntry
smart constructor.
SendMessageBatchRequestEntry' | |
|
Instances
newSendMessageBatchRequestEntry Source #
:: Text | |
-> Text | |
-> SendMessageBatchRequestEntry |
Create a value of SendMessageBatchRequestEntry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:messageAttributes:SendMessageBatchRequestEntry'
, sendMessageBatchRequestEntry_messageAttributes
- Each message attribute consists of a Name
, Type
, and Value
. For
more information, see
Amazon SQS message attributes
in the Amazon SQS Developer Guide.
$sel:delaySeconds:SendMessageBatchRequestEntry'
, sendMessageBatchRequestEntry_delaySeconds
- The length of time, in seconds, for which a specific message is delayed.
Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive
DelaySeconds
value become available for processing after the delay
period is finished. If you don't specify a value, the default value for
the queue is applied.
When you set FifoQueue
, you can't set DelaySeconds
per message. You
can set this parameter only on a queue level.
$sel:messageSystemAttributes:SendMessageBatchRequestEntry'
, sendMessageBatchRequestEntry_messageSystemAttributes
- The message system attribute to send Each message system attribute
consists of a Name
, Type
, and Value
.
- Currently, the only supported message system attribute is
AWSTraceHeader
. Its type must beString
and its value must be a correctly formatted X-Ray trace header string. - The size of a message system attribute doesn't count towards the total size of a message.
$sel:messageDeduplicationId:SendMessageBatchRequestEntry'
, sendMessageBatchRequestEntry_messageDeduplicationId
- This parameter applies only to FIFO (first-in-first-out) queues.
The token used for deduplication of messages within a 5-minute minimum
deduplication interval. If a message with a particular
MessageDeduplicationId
is sent successfully, subsequent messages with
the same MessageDeduplicationId
are accepted successfully but aren't
delivered. For more information, see
Exactly-once processing
in the Amazon SQS Developer Guide.
Every message must have a unique
MessageDeduplicationId
,- You may provide a
MessageDeduplicationId
explicitly. - If you aren't able to provide a
MessageDeduplicationId
and you enableContentBasedDeduplication
for your queue, Amazon SQS uses a SHA-256 hash to generate theMessageDeduplicationId
using the body of the message (but not the attributes of the message). - If you don't provide a
MessageDeduplicationId
and the queue doesn't haveContentBasedDeduplication
set, the action fails with an error. - If the queue has
ContentBasedDeduplication
set, yourMessageDeduplicationId
overrides the generated one.
- You may provide a
- When
ContentBasedDeduplication
is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered. - If you send one message with
ContentBasedDeduplication
enabled and then another message with aMessageDeduplicationId
that is the same as the one generated for the firstMessageDeduplicationId
, the two messages are treated as duplicates and only one copy of the message is delivered.
The MessageDeduplicationId
is available to the consumer of the message
(this can be useful for troubleshooting delivery issues).
If a message is sent successfully but the acknowledgement is lost and
the message is resent with the same MessageDeduplicationId
after the
deduplication interval, Amazon SQS can't detect duplicate messages.
Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted.
The length of MessageDeduplicationId
is 128 characters.
MessageDeduplicationId
can contain alphanumeric characters (a-z
,
A-Z
, 0-9
) and punctuation
(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
).
For best practices of using MessageDeduplicationId
, see
Using the MessageDeduplicationId Property
in the Amazon SQS Developer Guide.
$sel:messageGroupId:SendMessageBatchRequestEntry'
, sendMessageBatchRequestEntry_messageGroupId
- This parameter applies only to FIFO (first-in-first-out) queues.
The tag that specifies that a message belongs to a specific message
group. Messages that belong to the same message group are processed in a
FIFO manner (however, messages in different message groups might be
processed out of order). To interleave multiple ordered streams within a
single queue, use MessageGroupId
values (for example, session data for
multiple users). In this scenario, multiple consumers can process the
queue, but the session data of each user is processed in a FIFO fashion.
- You must associate a non-empty
MessageGroupId
with a message. If you don't provide aMessageGroupId
, the action fails. ReceiveMessage
might return messages with multipleMessageGroupId
values. For eachMessageGroupId
, the messages are sorted by time sent. The caller can't specify aMessageGroupId
.
The length of MessageGroupId
is 128 characters. Valid values:
alphanumeric characters and punctuation
(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)
.
For best practices of using MessageGroupId
, see
Using the MessageGroupId Property
in the Amazon SQS Developer Guide.
MessageGroupId
is required for FIFO queues. You can't use it for
Standard queues.
$sel:id:SendMessageBatchRequestEntry'
, sendMessageBatchRequestEntry_id
- An identifier for a message in this batch used to communicate the
result.
The Id
s of a batch request need to be unique within a request.
This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).
$sel:messageBody:SendMessageBatchRequestEntry'
, sendMessageBatchRequestEntry_messageBody
- The body of the message.
sendMessageBatchRequestEntry_messageAttributes :: Lens' SendMessageBatchRequestEntry (Maybe (HashMap Text MessageAttributeValue)) Source #
Each message attribute consists of a Name
, Type
, and Value
. For
more information, see
Amazon SQS message attributes
in the Amazon SQS Developer Guide.
sendMessageBatchRequestEntry_delaySeconds :: Lens' SendMessageBatchRequestEntry (Maybe Int) Source #
The length of time, in seconds, for which a specific message is delayed.
Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive
DelaySeconds
value become available for processing after the delay
period is finished. If you don't specify a value, the default value for
the queue is applied.
When you set FifoQueue
, you can't set DelaySeconds
per message. You
can set this parameter only on a queue level.
sendMessageBatchRequestEntry_messageSystemAttributes :: Lens' SendMessageBatchRequestEntry (Maybe (HashMap MessageSystemAttributeNameForSends MessageSystemAttributeValue)) Source #
The message system attribute to send Each message system attribute
consists of a Name
, Type
, and Value
.
- Currently, the only supported message system attribute is
AWSTraceHeader
. Its type must beString
and its value must be a correctly formatted X-Ray trace header string. - The size of a message system attribute doesn't count towards the total size of a message.
sendMessageBatchRequestEntry_messageDeduplicationId :: Lens' SendMessageBatchRequestEntry (Maybe Text) Source #
This parameter applies only to FIFO (first-in-first-out) queues.
The token used for deduplication of messages within a 5-minute minimum
deduplication interval. If a message with a particular
MessageDeduplicationId
is sent successfully, subsequent messages with
the same MessageDeduplicationId
are accepted successfully but aren't
delivered. For more information, see
Exactly-once processing
in the Amazon SQS Developer Guide.
Every message must have a unique
MessageDeduplicationId
,- You may provide a
MessageDeduplicationId
explicitly. - If you aren't able to provide a
MessageDeduplicationId
and you enableContentBasedDeduplication
for your queue, Amazon SQS uses a SHA-256 hash to generate theMessageDeduplicationId
using the body of the message (but not the attributes of the message). - If you don't provide a
MessageDeduplicationId
and the queue doesn't haveContentBasedDeduplication
set, the action fails with an error. - If the queue has
ContentBasedDeduplication
set, yourMessageDeduplicationId
overrides the generated one.
- You may provide a
- When
ContentBasedDeduplication
is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered. - If you send one message with
ContentBasedDeduplication
enabled and then another message with aMessageDeduplicationId
that is the same as the one generated for the firstMessageDeduplicationId
, the two messages are treated as duplicates and only one copy of the message is delivered.
The MessageDeduplicationId
is available to the consumer of the message
(this can be useful for troubleshooting delivery issues).
If a message is sent successfully but the acknowledgement is lost and
the message is resent with the same MessageDeduplicationId
after the
deduplication interval, Amazon SQS can't detect duplicate messages.
Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted.
The length of MessageDeduplicationId
is 128 characters.
MessageDeduplicationId
can contain alphanumeric characters (a-z
,
A-Z
, 0-9
) and punctuation
(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
).
For best practices of using MessageDeduplicationId
, see
Using the MessageDeduplicationId Property
in the Amazon SQS Developer Guide.
sendMessageBatchRequestEntry_messageGroupId :: Lens' SendMessageBatchRequestEntry (Maybe Text) Source #
This parameter applies only to FIFO (first-in-first-out) queues.
The tag that specifies that a message belongs to a specific message
group. Messages that belong to the same message group are processed in a
FIFO manner (however, messages in different message groups might be
processed out of order). To interleave multiple ordered streams within a
single queue, use MessageGroupId
values (for example, session data for
multiple users). In this scenario, multiple consumers can process the
queue, but the session data of each user is processed in a FIFO fashion.
- You must associate a non-empty
MessageGroupId
with a message. If you don't provide aMessageGroupId
, the action fails. ReceiveMessage
might return messages with multipleMessageGroupId
values. For eachMessageGroupId
, the messages are sorted by time sent. The caller can't specify aMessageGroupId
.
The length of MessageGroupId
is 128 characters. Valid values:
alphanumeric characters and punctuation
(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)
.
For best practices of using MessageGroupId
, see
Using the MessageGroupId Property
in the Amazon SQS Developer Guide.
MessageGroupId
is required for FIFO queues. You can't use it for
Standard queues.
sendMessageBatchRequestEntry_id :: Lens' SendMessageBatchRequestEntry Text Source #
An identifier for a message in this batch used to communicate the result.
The Id
s of a batch request need to be unique within a request.
This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).
sendMessageBatchRequestEntry_messageBody :: Lens' SendMessageBatchRequestEntry Text Source #
The body of the message.
SendMessageBatchResultEntry
data SendMessageBatchResultEntry Source #
Encloses a MessageId
for a successfully-enqueued message in a
SendMessageBatch.
See: newSendMessageBatchResultEntry
smart constructor.
SendMessageBatchResultEntry' | |
|
Instances
newSendMessageBatchResultEntry Source #
:: Text | |
-> Text | |
-> Text | |
-> SendMessageBatchResultEntry |
Create a value of SendMessageBatchResultEntry
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sequenceNumber:SendMessageBatchResultEntry'
, sendMessageBatchResultEntry_sequenceNumber
- This parameter applies only to FIFO (first-in-first-out) queues.
The large, non-consecutive number that Amazon SQS assigns to each message.
The length of SequenceNumber
is 128 bits. As SequenceNumber
continues to increase for a particular MessageGroupId
.
$sel:mD5OfMessageSystemAttributes:SendMessageBatchResultEntry'
, sendMessageBatchResultEntry_mD5OfMessageSystemAttributes
- An MD5 digest of the non-URL-encoded message system 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
RFC1321.
$sel:mD5OfMessageAttributes:SendMessageBatchResultEntry'
, sendMessageBatchResultEntry_mD5OfMessageAttributes
- 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
RFC1321.
$sel:id:SendMessageBatchResultEntry'
, sendMessageBatchResultEntry_id
- An identifier for the message in this batch.
$sel:messageId:SendMessageBatchResultEntry'
, sendMessageBatchResultEntry_messageId
- An identifier for the message.
$sel:mD5OfMessageBody:SendMessageBatchResultEntry'
, sendMessageBatchResultEntry_mD5OfMessageBody
- An MD5 digest of the non-URL-encoded message body 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
RFC1321.
sendMessageBatchResultEntry_sequenceNumber :: Lens' SendMessageBatchResultEntry (Maybe Text) Source #
This parameter applies only to FIFO (first-in-first-out) queues.
The large, non-consecutive number that Amazon SQS assigns to each message.
The length of SequenceNumber
is 128 bits. As SequenceNumber
continues to increase for a particular MessageGroupId
.
sendMessageBatchResultEntry_mD5OfMessageSystemAttributes :: Lens' SendMessageBatchResultEntry (Maybe Text) Source #
An MD5 digest of the non-URL-encoded message system 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 RFC1321.
sendMessageBatchResultEntry_mD5OfMessageAttributes :: Lens' SendMessageBatchResultEntry (Maybe Text) Source #
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 RFC1321.
sendMessageBatchResultEntry_id :: Lens' SendMessageBatchResultEntry Text Source #
An identifier for the message in this batch.
sendMessageBatchResultEntry_messageId :: Lens' SendMessageBatchResultEntry Text Source #
An identifier for the message.
sendMessageBatchResultEntry_mD5OfMessageBody :: Lens' SendMessageBatchResultEntry Text Source #
An MD5 digest of the non-URL-encoded message body 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 RFC1321.