# Packages
Package sqsiface provides an interface to enable mocking the Amazon Simple Queue Service service client for testing your code.
# Functions
MessageSystemAttributeName_Values returns all elements of the MessageSystemAttributeName enum.
MessageSystemAttributeNameForSends_Values returns all elements of the MessageSystemAttributeNameForSends enum.
New creates a new instance of the SQS client with a session.
QueueAttributeName_Values returns all elements of the QueueAttributeName enum.
# Constants
ID to lookup a service endpoint with.
ErrCodeBatchEntryIdsNotDistinct for service response error code "AWS.SimpleQueueService.BatchEntryIdsNotDistinct".
ErrCodeBatchRequestTooLong for service response error code "AWS.SimpleQueueService.BatchRequestTooLong".
ErrCodeEmptyBatchRequest for service response error code "AWS.SimpleQueueService.EmptyBatchRequest".
ErrCodeInvalidAddress for service response error code "InvalidAddress".
ErrCodeInvalidAttributeName for service response error code "InvalidAttributeName".
ErrCodeInvalidAttributeValue for service response error code "InvalidAttributeValue".
ErrCodeInvalidBatchEntryId for service response error code "AWS.SimpleQueueService.InvalidBatchEntryId".
ErrCodeInvalidIdFormat for service response error code "InvalidIdFormat".
ErrCodeInvalidMessageContents for service response error code "InvalidMessageContents".
ErrCodeInvalidSecurity for service response error code "InvalidSecurity".
ErrCodeKmsAccessDenied for service response error code "KmsAccessDenied".
ErrCodeKmsDisabled for service response error code "KmsDisabled".
ErrCodeKmsInvalidKeyUsage for service response error code "KmsInvalidKeyUsage".
ErrCodeKmsInvalidState for service response error code "KmsInvalidState".
ErrCodeKmsNotFound for service response error code "KmsNotFound".
ErrCodeKmsOptInRequired for service response error code "KmsOptInRequired".
ErrCodeKmsThrottled for service response error code "KmsThrottled".
ErrCodeMessageNotInflight for service response error code "AWS.SimpleQueueService.MessageNotInflight".
ErrCodeOverLimit for service response error code "OverLimit".
ErrCodePurgeQueueInProgress for service response error code "AWS.SimpleQueueService.PurgeQueueInProgress".
ErrCodeQueueDeletedRecently for service response error code "AWS.SimpleQueueService.QueueDeletedRecently".
ErrCodeQueueDoesNotExist for service response error code "AWS.SimpleQueueService.NonExistentQueue".
ErrCodeQueueNameExists for service response error code "QueueAlreadyExists".
ErrCodeReceiptHandleIsInvalid for service response error code "ReceiptHandleIsInvalid".
ErrCodeRequestThrottled for service response error code "RequestThrottled".
ErrCodeResourceNotFoundException for service response error code "ResourceNotFoundException".
ErrCodeTooManyEntriesInBatchRequest for service response error code "AWS.SimpleQueueService.TooManyEntriesInBatchRequest".
ErrCodeUnsupportedOperation for service response error code "AWS.SimpleQueueService.UnsupportedOperation".
MessageSystemAttributeNameAll is a MessageSystemAttributeName enum value.
MessageSystemAttributeNameApproximateFirstReceiveTimestamp is a MessageSystemAttributeName enum value.
MessageSystemAttributeNameApproximateReceiveCount is a MessageSystemAttributeName enum value.
MessageSystemAttributeNameAwstraceHeader is a MessageSystemAttributeName enum value.
MessageSystemAttributeNameDeadLetterQueueSourceArn is a MessageSystemAttributeName enum value.
MessageSystemAttributeNameForSendsAwstraceHeader is a MessageSystemAttributeNameForSends enum value.
MessageSystemAttributeNameMessageDeduplicationId is a MessageSystemAttributeName enum value.
MessageSystemAttributeNameMessageGroupId is a MessageSystemAttributeName enum value.
MessageSystemAttributeNameSenderId is a MessageSystemAttributeName enum value.
MessageSystemAttributeNameSentTimestamp is a MessageSystemAttributeName enum value.
MessageSystemAttributeNameSequenceNumber is a MessageSystemAttributeName enum value.
QueueAttributeNameAll is a QueueAttributeName enum value.
QueueAttributeNameApproximateNumberOfMessages is a QueueAttributeName enum value.
QueueAttributeNameApproximateNumberOfMessagesDelayed is a QueueAttributeName enum value.
QueueAttributeNameApproximateNumberOfMessagesNotVisible is a QueueAttributeName enum value.
QueueAttributeNameContentBasedDeduplication is a QueueAttributeName enum value.
QueueAttributeNameCreatedTimestamp is a QueueAttributeName enum value.
QueueAttributeNameDeduplicationScope is a QueueAttributeName enum value.
QueueAttributeNameDelaySeconds is a QueueAttributeName enum value.
QueueAttributeNameFifoQueue is a QueueAttributeName enum value.
QueueAttributeNameFifoThroughputLimit is a QueueAttributeName enum value.
QueueAttributeNameKmsDataKeyReusePeriodSeconds is a QueueAttributeName enum value.
QueueAttributeNameKmsMasterKeyId is a QueueAttributeName enum value.
QueueAttributeNameLastModifiedTimestamp is a QueueAttributeName enum value.
QueueAttributeNameMaximumMessageSize is a QueueAttributeName enum value.
QueueAttributeNameMessageRetentionPeriod is a QueueAttributeName enum value.
QueueAttributeNamePolicy is a QueueAttributeName enum value.
QueueAttributeNameQueueArn is a QueueAttributeName enum value.
QueueAttributeNameReceiveMessageWaitTimeSeconds is a QueueAttributeName enum value.
QueueAttributeNameRedriveAllowPolicy is a QueueAttributeName enum value.
QueueAttributeNameRedrivePolicy is a QueueAttributeName enum value.
QueueAttributeNameSqsManagedSseEnabled is a QueueAttributeName enum value.
QueueAttributeNameVisibilityTimeout is a QueueAttributeName enum value.
ServiceID is a unique identifier of a specific service.
Name of service.
# Structs
Two or more batch entries in the request have the same Id.
The length of all the messages put together is more than the limit.
Gives a detailed description of the result of an action on each entry in the request.
For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.
Encloses a receipt handle and an entry ID for each message in ChangeMessageVisibilityBatch.
Encloses the Id of an entry in ChangeMessageVisibilityBatch.
Returns the QueueUrl attribute of the created queue.
For each message in the batch, the response contains a DeleteMessageBatchResultEntry tag if the message is deleted or a BatchResultErrorEntry tag if the message can't be deleted.
Encloses a receipt handle and an identifier for it.
Encloses the Id of an entry in DeleteMessageBatch.
The batch request doesn't contain any entries.
A list of returned queue attributes.
For more information, see Interpreting Responses (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-api-responses.html) in the Amazon SQS Developer Guide.
The accountId is invalid.
The specified attribute doesn't exist.
A queue attribute value is invalid.
The Id of a batch entry in a batch request doesn't abide by the specification.
The specified receipt handle isn't valid for the current version.
The message contains characters outside the allowed set.
When the request to a queue is not HTTPS and SigV4.
The caller doesn't have the required KMS access.
The request was denied due to request throttling.
The request was rejected for one of the following reasons:
- The KeyUsage value of the KMS key is incompatible with the API operation.
The request was rejected because the state of the specified resource is not valid for this request.
The request was rejected because the specified entity or resource could not be found.
The request was rejected because the specified key policy isn't syntactically or semantically correct.
Amazon Web Services KMS throttles requests for the following conditions.
A list of your dead letter source queues.
Contains the details of a message movement task.
A list of your queues.
An Amazon SQS message.
The user-specified message attribute value.
The specified message isn't in flight.
The user-specified message system attribute value.
The specified action violates a limit.
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).
You must wait 60 seconds after deleting a queue before you can create another queue with the same name.
The specified queue doesn't exist.
A queue with this name already exists.
The specified receipt handle isn't valid.
A list of received messages.
The request was denied due to request throttling.
One or more specified resources don't exist.
For each message in the batch, the response contains a SendMessageBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.
Contains the details of a single Amazon SQS message along with an Id.
Encloses a MessageId for a successfully-enqueued message in a SendMessageBatch.
The MD5OfMessageBody and MessageId elements.
SQS provides the API operation methods for making requests to Amazon Simple Queue Service.
The batch request contains more entries than permissible.
Error code 400.