sqs

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMessageBodyEmpty = errors.New("sqs: no message body passed")
View Source
var ErrParseBody = errors.New("sqs: message parse body failed")

Functions

func CancelMessageMoveTask

func CancelMessageMoveTask(ctx context.Context, taskHandle string, opts ...*option.Default) (
	*sqs.CancelMessageMoveTaskOutput, error)

CancelMessageMoveTask Cancels a specified message movement task. A message movement can only be cancelled when the current status is RUNNING. Cancelling a message movement task does not revert the messages that have already been moved. It can only stop the messages that have not been moved yet.

  • This action is currently limited to supporting message redrive from dead-letter queues (DLQs) (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) only. In this context, the source queue is the dead-letter queue (DLQ), while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue.
  • Currently, only standard queues are supported.
  • Only one active message movement task is supported per queue at any given time.

func ChangeMessageVisibility

func ChangeMessageVisibility(ctx context.Context, input ChangeMessageVisibilityInput, opts ...*option.Default) (
	*sqs.ChangeMessageVisibilityOutput, error)

ChangeMessageVisibility Changes the visibility timeout of a specified message in a queue to a new value. The default visibility timeout for a message is 30 seconds. The minimum is 0 seconds. The maximum is 12 hours. For more information, see Visibility Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) in the Amazon SQS Developer Guide. For example, if the default timeout for a queue is 60 seconds, 15 seconds have elapsed since you received the message, and you send a ChangeMessageVisibility call with VisibilityTimeout set to 10 seconds, the 10 seconds begin to count from the time that you make the ChangeMessageVisibility call. Thus, any attempt to change the visibility timeout or to delete that message 10 seconds after you initially change the visibility timeout (a total of 25 seconds) might result in an error. An Amazon SQS message has three basic states:

  • Sent to a queue by a producer.
  • Received from the queue by a consumer.
  • Deleted from the queue.

A message is considered to be stored after it is sent to a queue by a producer, but not yet received from the queue by a consumer (that is, between states 1 and 2). There is no limit to the number of stored messages. A message is considered to be in flight after it is received from a queue by a consumer, but not yet deleted from the queue (that is, between states 2 and 3). There is a limit to the number of in flight messages. Limits that apply to in flight messages are unrelated to the unlimited number of stored messages. For most standard queues (depending on queue traffic and message backlog), there can be a maximum of approximately 120,000 in flight messages (received from a queue by a consumer, but not yet deleted from the queue). If you reach this limit, Amazon SQS returns the OverLimit 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. To request a limit increase, file a support request (https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-sqs) . For FIFO queues, there can be a maximum of 20,000 in flight messages (received from a queue by a consumer, but not yet deleted from the queue). If you reach this limit, Amazon SQS returns no error messages. If you attempt to set the VisibilityTimeout 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 ChangeMessageVisibility action) the next time the message is received.

func ChangeMessageVisibilityBatch

func ChangeMessageVisibilityBatch(ctx context.Context, input ChangeMessageVisibilityBatchInput, opts ...*option.Default) (
	*sqs.ChangeMessageVisibilityBatchOutput, error)

ChangeMessageVisibilityBatch Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility . The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200 .

func CreateQueue

func CreateQueue(ctx context.Context, queueName string, opts ...*option.CreateQueue) (*sqs.CreateQueueOutput, error)

CreateQueue Creates a new standard or FIFO queue. You can pass one or more attributes in the request. Keep the following in mind:

  • If you don't specify the FifoQueue attribute, Amazon SQS creates a standard queue. You can't change the queue type after you create it, and you can't convert an existing standard queue into a FIFO queue. You must either create a new FIFO queue for your application or delete your existing standard queue and recreate it as a FIFO queue. For more information, see Moving From a Standard Queue to a FIFO Queue (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-moving) in the Amazon SQS Developer Guide.
  • If you don't provide a value for an attribute, the queue is created with the default value for the attribute.
  • If you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

To successfully create a new queue, you must provide a queue name that adheres to the limits related to queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/limits-queues.html) and is unique within the scope of your queues. After you create a queue, you must wait at least one second after the queue is created to be able to use the queue. To get the queue URL, use the GetQueueUrl action. GetQueueUrl requires only the QueueName parameter. be aware of existing queue names:

  • If you provide the name of an existing queue along with the exact names and values of all the queue's attributes, CreateQueue returns the queue URL for the existing queue.
  • If the queue name, attribute names, or attribute values don't match an existing queue, CreateQueue returns an error.

Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) in the Amazon SQS Developer Guide.

func DeleteMessage

func DeleteMessage(ctx context.Context, queueUrl, receiptHandle string, opts ...*option.Default) (
	*sqs.DeleteMessageOutput, error)

DeleteMessage Deletes the specified message from the specified queue. To select the message to delete, use the ReceiptHandle of the message (not the MessageId which you receive when you send the message). Amazon SQS can delete a message from a queue even if a visibility timeout setting causes the message to be locked by another consumer. Amazon SQS automatically deletes messages left in a queue longer than the retention period configured for the queue. The ReceiptHandle is associated with a specific instance of receiving a message. If you receive a message more than once, the ReceiptHandle is different each time you receive a message. When you use the DeleteMessage action, you must provide the most recently received ReceiptHandle for the message (otherwise, the request succeeds, but the message will not be deleted). For standard queues, it is possible to receive a message even after you delete it. This might happen on rare occasions if one of the servers which stores a copy of the message is unavailable when you send the request to delete the message. The copy remains on the server and might be returned to you during a subsequent receive request. You should ensure that your application is idempotent, so that receiving a message more than once does not cause issues.

func DeleteMessageBatch

func DeleteMessageBatch(ctx context.Context, input DeleteMessageBatchInput, opts ...*option.Default) (
	*sqs.DeleteMessageBatchOutput, error)

DeleteMessageBatch Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage . The result of the action on each message is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200 .

func DeleteQueue

func DeleteQueue(ctx context.Context, queueUrl string, opts ...*option.Default) (*sqs.DeleteQueueOutput, error)

DeleteQueue Deletes the queue specified by the QueueUrl, regardless of the queue's contents. Be careful with the DeleteQueue 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 SendMessage 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. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) in the Amazon SQS Developer Guide. The delete operation uses the HTTP GET verb.

func GetQueueAttributes

func GetQueueAttributes(ctx context.Context, input GetQueueAttributesInput, opts ...*option.Default) (
	*sqs.GetQueueAttributesOutput, error)

GetQueueAttributes Gets attributes for the specified queue. To determine whether a queue is FIFO (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html) you can check whether QueueName ends with the .fifo suffix.

func GetQueueUrl

func GetQueueUrl(ctx context.Context, input GetQueueUrlInput, opts ...*option.Default) (*sqs.GetQueueUrlOutput, error)

GetQueueUrl Returns the URL of an existing Amazon SQS queue. To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId 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 AddPermission or see Allow Developers to Write Messages to a Shared Queue (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-writing-an-sqs-policy.html#write-messages-to-shared-queue) in the Amazon SQS Developer Guide.

func ListDeadLetterSourceQueues

func ListDeadLetterSourceQueues(ctx context.Context, queueUrl string, opts ...*option.ListDeadLetterSourceQueues) (
	*sqs.ListDeadLetterSourceQueuesOutput, error)

ListDeadLetterSourceQueues Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead-letter queue. The ListDeadLetterSourceQueues methods supports pagination. Set parameter MaxResults in the request to specify the maximum number of results to be returned in the response. If you do not set MaxResults , the response includes a maximum of 1,000 results. If you set MaxResults and there are additional results to display, the response includes a value for NextToken . Use NextToken as a parameter in your next request to ListDeadLetterSourceQueues to receive the next page of results. For more information about using dead-letter queues, see Using Amazon SQS Dead-Letter Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) in the Amazon SQS Developer Guide.

func ListMessageMoveTasks

func ListMessageMoveTasks(ctx context.Context, sourceArn string, opts ...*option.ListMessageMoveTasks) (
	*sqs.ListMessageMoveTasksOutput, error)

ListMessageMoveTasks Gets the most recent message movement tasks (up to 10) under a specific source queue.

  • This action is currently limited to supporting message redrive from dead-letter queues (DLQs) (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) only. In this context, the source queue is the dead-letter queue (DLQ), while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue.
  • Currently, only standard queues are supported.
  • Only one active message movement task is supported per queue at any given time.

func ListQueueTags

func ListQueueTags(ctx context.Context, queueUrl string, opts ...*option.Default) (*sqs.ListQueueTagsOutput, error)

ListQueueTags List all cost allocation tags added to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html) in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) in the Amazon SQS Developer Guide.

func ListQueues

func ListQueues(ctx context.Context, opts ...*option.ListQueues) (*sqs.ListQueuesOutput, error)

ListQueues Returns a list of your queues in the current region. The response includes a maximum of 1,000 results. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name that begins with the specified value are returned. The listQueues methods supports pagination. Set parameter MaxResults in the request to specify the maximum number of results to be returned in the response. If you do not set MaxResults , the response includes a maximum of 1,000 results. If you set MaxResults and there are additional results to display, the response includes a value for NextToken . Use NextToken as a parameter in your next request to listQueues to receive the next page of results. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) in the Amazon SQS Developer Guide.

func PurgeQueue

func PurgeQueue(ctx context.Context, queueUrl string, opts ...*option.Default) (*sqs.PurgeQueueOutput, error)

PurgeQueue Deletes available messages in a queue (including in-flight messages) specified by the QueueURL parameter. When you use the PurgeQueue action, you can't retrieve any messages deleted from a queue. The message deletion process takes up to 60 seconds. We recommend waiting for 60 seconds regardless of your queue's size. Messages sent to the queue before you call PurgeQueue might be received but are deleted within the next minute. Messages sent to the queue after you call PurgeQueue might be deleted while the queue is being purged.

func ReceiveMessage

func ReceiveMessage[Body, MessageAttributes any](
	queueUrl string,
	handler HandlerConsumerFunc[Body, MessageAttributes],
	opts ...*option.Consumer,
)

ReceiveMessage Works as a repeating job, when triggered, it will fetch messages from the indicated queue in the queueUrl parameter, if it does not find any messages it will reprocess the function looking for new messages again, otherwise, it will process these messages converting them into Context with the types of Body and MessageAttributes passed explicitly in the function, converted to the Context.Message.Body and Context.Message.MessageAttributes field, if you don't use MessageAttributes, you can use the SimpleReceiveMessage function. After conversion, we call the handler parameter so that this function processes message by message, in this handler we expect a return error, if no error occurred when processing the message, we have the auto-delete option (option.Consumer.DeleteMessageProcessedSuccess) if you have it enabled, we will remove the message from the file for you. finally, when processing all messages, we return to the initial flow looking for new messages.

Parameters

- queueUrl: url of the queue where you want to fetch messages - handler: function to process the received message - opts: list of option.Consumer to customize the job

Panic

If 3 errors occur when obtaining the message from the queue, it will trigger a panic informing the error returned from AWS SQS.

func ReceiveMessageAsync

func ReceiveMessageAsync[Body, MessageAttributes any](
	queueUrl string,
	handler HandlerConsumerFunc[Body, MessageAttributes],
	opts ...*option.Consumer,
)

ReceiveMessageAsync Works like a repeating job, when triggered, it will fetch messages from the indicated queue in the queueUrl parameter, if it does not find any messages it will reprocess the function looking for new messages again, otherwise, it will process these messages converting them into Context with the types of Body and MessageAttributes passed explicitly in the function, converted to the Context.Message.Body and Context.Message.MessageAttributes field, if you don't use MessageAttributes, you can use the SimpleReceiveMessageAsync function. After conversion, we call the handler parameter so that this function processes message by message, in this handler we expect a return error, if no error occurred when processing the message, we have the auto-delete option (option.Consumer.DeleteMessageProcessedSuccess) where if enabled, we remove the message from the queue for you. finally, when processing all messages, we return to the initial flow looking for new messages.

Unlike ReceiveMessage, this function will be processed asynchronously.

Parameters

- queueUrl: url of the queue where you want to fetch messages - handler: function to process the received message - opts: list of options.Consumer to customize the job

Panic

If 3 errors occur when obtaining the message from the queue, it will trigger a panic informing the error returned from AWS SQS.

func SendMessage

func SendMessage(ctx context.Context, queueUrl string, body any, opts ...*option.Producer) (*sqs.SendMessageOutput, error)

SendMessage sends a message to an SQS queue using the provided context, queue URL, message content, and options.

The function first retrieves an SQS client using the getSqsClient function. It then prepares the message input using the prepareMessageInput function. The message input includes the message body, queue URL, delay seconds, message attributes, message deduplication ID, message group ID, and message system attributes. The message input is passed to the client's SendMessage method, which sends the message to the queue. The function returns the SendMessage output or an error if one occurs.

Example usage:

output, err := SendMessage(ctx, queueUrl, v, opts...)

Parameters:

- ctx (Context): The context of the request. - queueUrl (string): The URL of the SQS queue. - body (any): The content of the message. - opts (option.Producer): Optional options to customize the message. (see OptionsProducer declaration for available options)

Returns:

- *sqs.SendMessageOutput: The result of the SendMessage operation. - error: An error if one occurs during the SendMessage operation.

func SendMessageAsync

func SendMessageAsync(ctx context.Context, queueUrl string, body any, opts ...*option.Producer)

SendMessageAsync sends a message asynchronously to an SQS queue using the provided context, queue URL, message content, and options.

The function spawns a goroutine and calls the sendMessageAsync function internally to send the message. It first checks if the debug mode is enabled by checking the options. It then calls the SendMessage function, which sends the message to the queue. If an error occurs and debug mode is enabled, it logs the error. If debug mode is enabled, it logs the successful message delivery.

Parameters:

- ctx (Context): The context of the request. - queueUrl (string): The URL of the SQS queue. - body (any): The content of the message. - opts (OptionsProducer): Optional options to customize the message. (see OptionsProducer declaration for available options)

Example usage:

SendMessageAsync(ctx, queueUrl, v, opts...)

func SetQueueAttributes

func SetQueueAttributes(ctx context.Context, input SetQueueAttributesInput, opts ...*option.Default) (
	*sqs.SetQueueAttributesOutput, error)

SetQueueAttributes 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 MessageRetentionPeriod attribute can take up to 15 minutes and will impact existing messages in the queue potentially causing them to be expired and deleted if the MessageRetentionPeriod is reduced below the age of existing messages.

func SimpleReceiveMessage

func SimpleReceiveMessage[Body any](
	queueUrl string,
	simpleHandle HandlerSimpleConsumerFunc[Body],
	opts ...*option.Consumer,
)

SimpleReceiveMessage Works as a repeating job, when triggered, it will fetch messages from the indicated queue in the queueUrl parameter, if it does not find any messages it will reprocess the function looking for new messages again, otherwise, it will process these messages converting them to Context with the Body type passed explicitly in the function, converted to the Context.Message.Body field. After the conversion, we call the handler parameter so that this function processes message by message, in this handler we expect an error return, if none has occurred error processing the message, we have the auto-delete option (option.Consumer.DeleteMessageProcessedSuccess) in which case is enabled, we remove the message from the queue for you. Finally, after processing all messages, we return to the flow initial searching for new messages.

Parameters

- queueUrl: url of the queue where you want to fetch messages - handler: function to process the received message - opts: list of options.Consumer to customize the job

Panic

If 3 errors occur when obtaining the message from the queue, it will trigger a panic informing the error returned from AWS SQS.

func SimpleReceiveMessageAsync

func SimpleReceiveMessageAsync[Body any](
	queueUrl string,
	simpleHandle HandlerSimpleConsumerFunc[Body],
	opts ...*option.Consumer,
)

SimpleReceiveMessageAsync Works like a repeating job, when triggered, it will fetch messages from the indicated queue in the queueUrl parameter, if it does not find any messages it will reprocess the function looking for new messages again, otherwise, it will process these messages converting them to Context with the Body type passed explicitly in the function, converted to the Context.Message.Body field. After the conversion, we call the handler parameter so that this function processes message by message, in this handler we expect an error return, if none has occurred error processing the message, we have the auto-delete option (option.Consumer.DeleteMessageProcessedSuccess) in which case is enabled, we remove the message from the queue for you. Finally, after processing all messages, we return to the flow initial searching for new messages.

Unlike SimpleReceiveMessage, this function will be processed asynchronously.

Parameters

- queueUrl: url of the queue where you want to fetch messages - handler: function to process the received message - opts: list of options.Consumer to customize the job

Panic

If 3 errors occur when obtaining the message from the queue, it will trigger a panic informing the error returned from AWS SQS.

func StartMessageMoveTask

func StartMessageMoveTask(ctx context.Context, input StartMessageMoveTaskInput, opts ...*option.Default) (
	*sqs.StartMessageMoveTaskOutput, error)

StartMessageMoveTask Starts an asynchronous task to move messages from a specified source queue to a specified destination queue.

  • This action is currently limited to supporting message redrive from queues that are configured as dead-letter queues (DLQs) (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) of other Amazon SQS queues only. Non-SQS queue sources of dead-letter queues, such as Lambda or Amazon SNS topics, are currently not supported.
  • In dead-letter queues redrive context, the StartMessageMoveTask the source queue is the DLQ, while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue.
  • Currently, only standard queues support redrive. FIFO queues don't support redrive.
  • Only one active message movement task is supported per queue at any given time.

func TagQueue

func TagQueue(ctx context.Context, input TagQueueInput, opts ...*option.Default) (*sqs.TagQueueOutput, error)

TagQueue Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html) in the Amazon SQS Developer Guide. When you use queue tags, keep the following guidelines in mind:

  • Adding more than 50 tags to a queue isn't recommended.
  • Tags don't have any semantic meaning. Amazon SQS interprets tags as character strings.
  • Tags are case-sensitive.
  • A new tag with a key identical to that of an existing tag overwrites the existing tag.

For a full list of tag restrictions, see Quotas related to queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-limits.html#limits-queues) in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) in the Amazon SQS Developer Guide.

func UntagQueue

func UntagQueue(ctx context.Context, input UntagQueueInput, opts ...*option.Default) (*sqs.UntagQueueOutput, error)

UntagQueue Remove cost allocation tags from the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html) in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) in the Amazon SQS Developer Guide.

Types

type Attributes

type Attributes struct {
	// Approximate receipt count
	ApproximateReceiveCount int
	// Approximate timestamp of first receipt
	ApproximateFirstReceiveTimestamp time.Time
	// Message deduplication ID (FIFO)
	MessageDeduplicationId string
	// Message group ID (FIFO)
	MessageGroupId string
	// sender ID
	SenderId string
	// Timestamp sent
	SentTimestamp time.Time
	// Sequence Number
	SequenceNumber int
}

Attributes represents the various attributes associated with a received message from Amazon Simple Queue Service (SQS). It includes information such as the approximate receipt count, the approximate timestamp of the first receipt, message deduplication ID (FIFO), message group ID (FIFO), sender ID, sent timestamp, and sequence number.

type ChangeMessageVisibilityBatchInput

type ChangeMessageVisibilityBatchInput struct {
	// The URL of the Amazon SQS queue whose messages' visibility is changed. Queue
	// URLs and names are case-sensitive.
	//
	// This member is required.
	QueueUrl string
	// Lists the receipt handles of the messages for which the visibility timeout must
	// be changed.
	//
	// This member is required.
	Entries []ChangeMessageVisibilityBatchRequestEntry
}

type ChangeMessageVisibilityBatchRequestEntry

type ChangeMessageVisibilityBatchRequestEntry struct {
	// An identifier for this particular receipt handler 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 (_).
	//
	// This member is required.
	Id string
	// A receipt handler.
	//
	// This member is required.
	ReceiptHandle string
	// The new value (in seconds) for the message's visibility timeout.
	VisibilityTimeout int32
}

type ChangeMessageVisibilityInput

type ChangeMessageVisibilityInput struct {
	// The URL of the Amazon SQS queue whose message's visibility is changed. Queue
	// URLs and names are case-sensitive.
	//
	// This member is required.
	QueueUrl string
	// The receipt handler associated with the message, whose visibility timeout is
	// changed. This parameter is returned by the ReceiveMessage action.
	//
	// This member is required.
	ReceiptHandle string
	// The new value for the message's visibility timeout (in seconds). Values range: 0
	// to 43200 . Maximum: 12 hours.
	//
	// This member is required.
	VisibilityTimeout time.Duration
}

type Context

type Context[Body, MessageAttributes any] struct {
	// context used to process the message, may have a timeout if you pass the option.Consumer.ConsumerMessageTimeout
	// as a parameter
	context.Context `json:"-"`
	// message queue url
	QueueUrl string
	// converted message to process
	Message MessageReceived[Body, MessageAttributes]
}

Context represents the execution context of a consumer handler in the package. It contains the necessary information for handling the message in the queue.

type DeleteMessageBatchInput

type DeleteMessageBatchInput struct {
	// The URL of the Amazon SQS queue from which messages are deleted. Queue URLs and
	// names are case-sensitive.
	//
	// This member is required.
	QueueUrl string
	// Lists the receipt handles for the messages to be deleted.
	//
	// This member is required.
	Entries []DeleteMessageBatchRequestEntry
}

type DeleteMessageBatchRequestEntry

type DeleteMessageBatchRequestEntry struct {
	// The identifier for this particular receipt handler. 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 (_).
	//
	// This member is required.
	Id string
	// A receipt handler.
	//
	// This member is required.
	ReceiptHandle string
}

type GetQueueAttributesInput

type GetQueueAttributesInput struct {
	// The URL of the Amazon SQS queue whose attribute information is retrieved. Queue
	// URLs and names are case-sensitive.
	//
	// This member is required.
	QueueUrl string
	// A list of attributes for which to retrieve information. The AttributeNames
	// parameter is optional, but if you don't specify values for this parameter, the
	// request returns empty results. In the future, new attributes might be added. If
	// you write code that calls this action, we recommend that you structure your code
	// so that it can handle new attributes gracefully. The following attributes are
	// supported: The ApproximateNumberOfMessagesDelayed ,
	// ApproximateNumberOfMessagesNotVisible , and ApproximateNumberOfMessages metrics
	// may not achieve consistency until at least 1 minute after the producers stop
	// sending messages. This period is required for the queue metadata to reach
	// eventual consistency.
	//   - All – Returns all values.
	//   - ApproximateNumberOfMessages – Returns the approximate number of messages
	//   available for retrieval from the queue.
	//   - ApproximateNumberOfMessagesDelayed – Returns the approximate number of
	//   messages in the queue that are delayed and not available for reading
	//   immediately. This can happen when the queue is configured as a delay queue or
	//   when a message has been sent with a delay parameter.
	//   - ApproximateNumberOfMessagesNotVisible – Returns the approximate number of
	//   messages that are in flight. Messages are considered to be in flight if they
	//   have been sent to a client but have not yet been deleted or have not yet reached
	//   the end of their visibility window.
	//   - CreatedTimestamp – Returns the time when the queue was created in seconds (
	//   epoch time (http://en.wikipedia.org/wiki/Unix_time) ).
	//   - DelaySeconds – Returns the default delay on the queue in seconds.
	//   - LastModifiedTimestamp – Returns the time when the queue was last changed in
	//   seconds ( epoch time (http://en.wikipedia.org/wiki/Unix_time) ).
	//   - MaximumMessageSize – Returns the limit of how many bytes a message can
	//   contain before Amazon SQS rejects it.
	//   - MessageRetentionPeriod – Returns the length of time, in seconds, for which
	//   Amazon SQS retains a message. 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 MessageRetentionPeriod attribute can
	//   take up to 15 minutes and will impact existing messages in the queue potentially
	//   causing them to be expired and deleted if the MessageRetentionPeriod is
	//   reduced below the age of existing messages.
	//   - Policy – Returns the policy of the queue.
	//   - QueueArn – Returns the Amazon resource name (ARN) of the queue.
	//   - ReceiveMessageWaitTimeSeconds – Returns the length of time, in seconds, for
	//   which the ReceiveMessage action waits for a message to arrive.
	//   - VisibilityTimeout – Returns the visibility timeout for the queue. For more
	//   information about the visibility timeout, see Visibility Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html)
	//   in the Amazon SQS Developer Guide.
	// The following attributes apply only to dead-letter queues: (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html)
	//   - RedrivePolicy – The string that includes the parameters for the dead-letter
	//   queue functionality of the source queue as a JSON object. The parameters are as
	//   follows:
	//   - deadLetterTargetArn – The Amazon Resource Name (ARN) of the dead-letter
	//   queue to which Amazon SQS moves messages after the value of maxReceiveCount is
	//   exceeded.
	//   - maxReceiveCount – The number of times a message is delivered to the source
	//   queue before being moved to the dead-letter queue. Default: 10. When the
	//   ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS
	//   moves the message to the dead-letter-queue.
	//   - RedriveAllowPolicy – The string that includes the parameters for the
	//   permissions for the dead-letter queue redrive permission and which source queues
	//   can specify dead-letter queues as a JSON object. The parameters are as follows:
	//   - redrivePermission – The permission type that defines which source queues can
	//   specify the current queue as the dead-letter queue. Valid values are:
	//   - allowAll – (Default) Any source queues in this Amazon Web Services account
	//   in the same Region can specify this queue as the dead-letter queue.
	//   - denyAll – No source queues can specify this queue as the dead-letter queue.
	//   - byQueue – Only queues specified by the sourceQueueArns parameter can specify
	//   this queue as the dead-letter queue.
	//   - sourceQueueArns – The Amazon Resource Names (ARN)s of the source queues that
	//   can specify this queue as the dead-letter queue and redrive messages. You can
	//   specify this parameter only when the redrivePermission parameter is set to
	//   byQueue . You can specify up to 10 source queue ARNs. To allow more than 10
	//   source queues to specify dead-letter queues, set the redrivePermission
	//   parameter to allowAll .
	// The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the
	// dead-letter queue of a standard queue must also be a standard queue. The
	// following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html)
	// :
	//   - KmsMasterKeyId – Returns the ID of an Amazon Web Services managed customer
	//   master key (CMK) for Amazon SQS or a custom CMK. For more information, see
	//   Key Terms (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms)
	//   .
	//   - KmsDataKeyReusePeriodSeconds – Returns the length of time, in seconds, for
	//   which Amazon SQS can reuse a data key to encrypt or decrypt messages before
	//   calling KMS again. For more information, see How Does the Data Key Reuse
	//   Period Work? (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work)
	//   .
	//   - SqsManagedSseEnabled – Returns information about whether the queue is using
	//   SSE-SQS encryption using SQS owned encryption keys. Only one server-side
	//   encryption option is supported per queue (for example, SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html)
	//   or SSE-SQS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html)
	//   ).
	// The following attributes apply only to FIFO (first-in-first-out) queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html)
	// :
	//   - FifoQueue – Returns information about whether the queue is FIFO. For more
	//   information, see FIFO queue logic (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html)
	//   in the Amazon SQS Developer Guide. To determine whether a queue is FIFO (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html)
	//   , you can check whether QueueName ends with the .fifo suffix.
	//   - ContentBasedDeduplication – Returns whether content-based deduplication is
	//   enabled for the queue. For more information, see Exactly-once processing (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html)
	//   in the Amazon SQS Developer Guide.
	// The following attributes apply only to high throughput for FIFO queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html)
	// :
	//   - DeduplicationScope – Specifies whether message deduplication occurs at the
	//   message group or queue level. Valid values are messageGroup and queue .
	//   - FifoThroughputLimit – Specifies whether the FIFO queue throughput quota
	//   applies to the entire queue or per message group. Valid values are perQueue
	//   and perMessageGroupId . The perMessageGroupId value is allowed only when the
	//   value for DeduplicationScope is messageGroup .
	// To enable high throughput for FIFO queues, do the following:
	//   - Set DeduplicationScope to messageGroup .
	//   - Set FifoThroughputLimit to perMessageGroupId .
	// If you set these attributes to anything other than the values shown for
	// enabling high throughput, normal throughput is in effect and deduplication
	// occurs as specified. For information on throughput quotas, see Quotas related
	// to messages (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html)
	// in the Amazon SQS Developer Guide.
	AttributeNames []types.QueueAttributeName
}

type GetQueueUrlInput

type GetQueueUrlInput struct {
	// The name of the queue whose URL must be fetched. Maximum 80 characters. Valid
	// values: alphanumeric characters, hyphens ( - ), and underscores ( _ ). Queue
	// URLs and names are case-sensitive.
	//
	// This member is required.
	QueueName string
	// The Amazon Web Services account ID of the account that created the queue.
	QueueOwnerAWSAccountId *string
}

type HandlerConsumerFunc

type HandlerConsumerFunc[Body, MessageAttributes any] func(ctx *Context[Body, MessageAttributes]) error

HandlerConsumerFunc is a function that consumes a message and returns an error if a failure occurs while processing the message.

type HandlerSimpleConsumerFunc

type HandlerSimpleConsumerFunc[Body any] func(ctx *SimpleContext[Body]) error

HandlerSimpleConsumerFunc is a function that consumes a message and returns an error if a failure occurs while processing the message.

type MessageReceived

type MessageReceived[Body, MessageAttributes any] struct {
	// A unique identifier for the message. An Id is considered unique across all
	// Amazon Web Services accounts for an extended period of time.
	Id string
	// An identifier associated with the act of receiving the message. A new receipt
	// handler is returned every time you receive a message. When deleting a message,
	// you provide the last received receipt handler to delete the message.
	ReceiptHandle string
	// Message body converted
	Body Body
	// Supported attributes:
	//   - ApproximateReceiveCount
	//   - ApproximateFirstReceiveTimestamp
	//   - MessageDeduplicationId
	//   - MessageGroupId
	//   - SenderId
	//   - SentTimestamp
	//   - SequenceNumber
	// ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an
	// integer representing the epoch time (http://en.wikipedia.org/wiki/Unix_time) in
	// milliseconds.
	Attributes Attributes
	// An MD5 digest of the non-URL-encoded message body string.
	MD5OfBody string
	// 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 (https://www.ietf.org/rfc/rfc1321.txt).
	MD5OfMessageAttributes *string
	// Converted message attributes
	MessageAttributes MessageAttributes
}

MessageReceived represents a received message from Amazon Simple Queue Service (SQS). It contains information about the message, such as its ID, receipt handle, body, attributes,

type SetQueueAttributesInput

type SetQueueAttributesInput struct {
	// The URL of the Amazon SQS queue whose attributes are set. Queue URLs and names
	// are case-sensitive.
	//
	// This member is required.
	QueueUrl string
	// A map of attributes to set. The following lists the names, descriptions, and
	// values of the special request parameters that the SetQueueAttributes action
	// uses:
	//   - DelaySeconds – The length of time, in seconds, for which the delivery of all
	//   messages in the queue is delayed. Valid values: An integer from 0 to 900 (15
	//   minutes). Default: 0.
	//   - MaximumMessageSize – The limit of how many bytes a message can contain
	//   before Amazon SQS rejects it. Valid values: An integer from 1,024 bytes (1 KiB)
	//   up to 262,144 bytes (256 KiB). Default: 262,144 (256 KiB).
	//   - MessageRetentionPeriod – The length of time, in seconds, for which Amazon
	//   SQS retains a message. Valid values: An integer representing seconds, from 60 (1
	//   minute) to 1,209,600 (14 days). Default: 345,600 (4 days). 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
	//   MessageRetentionPeriod attribute can take up to 15 minutes and will impact
	//   existing messages in the queue potentially causing them to be expired and
	//   deleted if the MessageRetentionPeriod is reduced below the age of existing
	//   messages.
	//   - Policy – The queue's policy. A valid Amazon Web Services policy. For more
	//   information about policy structure, see Overview of Amazon Web Services IAM
	//   Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html)
	//   in the Identity and Access Management User Guide.
	//   - ReceiveMessageWaitTimeSeconds – The length of time, in seconds, for which a
	//   ReceiveMessage action waits for a message to arrive. Valid values: An integer
	//   from 0 to 20 (seconds). Default: 0.
	//   - VisibilityTimeout – The visibility timeout for the queue, in seconds. Valid
	//   values: An integer from 0 to 43,200 (12 hours). Default: 30. For more
	//   information about the visibility timeout, see Visibility Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html)
	//   in the Amazon SQS Developer Guide.
	// The following attributes apply only to dead-letter queues: (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html)
	//   - RedrivePolicy – The string that includes the parameters for the dead-letter
	//   queue functionality of the source queue as a JSON object. The parameters are as
	//   follows:
	//   - deadLetterTargetArn – The Amazon Resource Name (ARN) of the dead-letter
	//   queue to which Amazon SQS moves messages after the value of maxReceiveCount is
	//   exceeded.
	//   - maxReceiveCount – The number of times a message is delivered to the source
	//   queue before being moved to the dead-letter queue. Default: 10. When the
	//   ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS
	//   moves the message to the dead-letter-queue.
	//   - RedriveAllowPolicy – The string that includes the parameters for the
	//   permissions for the dead-letter queue redrive permission and which source queues
	//   can specify dead-letter queues as a JSON object. The parameters are as follows:
	//   - redrivePermission – The permission type that defines which source queues can
	//   specify the current queue as the dead-letter queue. Valid values are:
	//   - allowAll – (Default) Any source queues in this Amazon Web Services account
	//   in the same Region can specify this queue as the dead-letter queue.
	//   - denyAll – No source queues can specify this queue as the dead-letter queue.
	//   - byQueue – Only queues specified by the sourceQueueArns parameter can specify
	//   this queue as the dead-letter queue.
	//   - sourceQueueArns – The Amazon Resource Names (ARN)s of the source queues that
	//   can specify this queue as the dead-letter queue and redrive messages. You can
	//   specify this parameter only when the redrivePermission parameter is set to
	//   byQueue . You can specify up to 10 source queue ARNs. To allow more than 10
	//   source queues to specify dead-letter queues, set the redrivePermission
	//   parameter to allowAll .
	// The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the
	// dead-letter queue of a standard queue must also be a standard queue. The
	// following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html)
	// :
	//   - KmsMasterKeyId – The ID of an Amazon Web Services managed customer master
	//   key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms)
	//   . While the alias of the AWS-managed CMK for Amazon SQS is always
	//   alias/aws/sqs , the alias of a custom CMK can, for example, be alias/MyAlias
	//   . For more examples, see KeyId (https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters)
	//   in the Key Management Service API Reference.
	//   - KmsDataKeyReusePeriodSeconds – The length of time, in seconds, for which
	//   Amazon SQS can reuse a data key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys)
	//   to encrypt or decrypt messages before calling KMS again. An integer representing
	//   seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). Default:
	//   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 How Does the Data Key Reuse Period Work? (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work)
	//   .
	//   - SqsManagedSseEnabled – Enables server-side queue encryption using SQS owned
	//   encryption keys. Only one server-side encryption option is supported per queue
	//   (for example, SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html)
	//   or SSE-SQS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html)
	//   ).
	// The following attribute applies only to FIFO (first-in-first-out) queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html)
	// :
	//   - ContentBasedDeduplication – Enables content-based deduplication. For more
	//   information, see Exactly-once processing (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html)
	//   in the Amazon SQS Developer Guide. Note the following:
	//   - Every message must have a unique MessageDeduplicationId .
	//   - You may provide a MessageDeduplicationId explicitly.
	//   - If you aren't able to provide a MessageDeduplicationId and you enable
	//   ContentBasedDeduplication for your queue, Amazon SQS uses an SHA-256 hash to
	//   generate the MessageDeduplicationId using the body of the message (but not the
	//   attributes of the message).
	//   - If you don't provide a MessageDeduplicationId and the queue doesn't have
	//   ContentBasedDeduplication set, the action fails with an error.
	//   - If the queue has ContentBasedDeduplication set, your MessageDeduplicationId
	//   overrides the generated one.
	//   - When ContentBasedDeduplication is in effect, messages with identical content
	//   sent within the deduplication interval are treated as duplicates and only one
	//   copy of the message is delivered.
	//   - If you send one message with ContentBasedDeduplication enabled and then
	//   another message with a MessageDeduplicationId that is the same as the one
	//   generated for the first MessageDeduplicationId , the two messages are treated
	//   as duplicates and only one copy of the message is delivered.
	// The following attributes apply only to high throughput for FIFO queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html)
	// :
	//   - DeduplicationScope – Specifies whether message deduplication occurs at the
	//   message group or queue level. Valid values are messageGroup and queue .
	//   - FifoThroughputLimit – Specifies whether the FIFO queue throughput quota
	//   applies to the entire queue or per message group. Valid values are perQueue
	//   and perMessageGroupId . The perMessageGroupId value is allowed only when the
	//   value for DeduplicationScope is messageGroup .
	// To enable high throughput for FIFO queues, do the following:
	//   - Set DeduplicationScope to messageGroup .
	//   - Set FifoThroughputLimit to perMessageGroupId .
	// If you set these attributes to anything other than the values shown for
	// enabling high throughput, normal throughput is in effect and deduplication
	// occurs as specified. For information on throughput quotas, see Quotas related
	// to messages (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html)
	// in the Amazon SQS Developer Guide.
	//
	// This member is required.
	Attributes map[string]string
}

type SimpleContext

type SimpleContext[Body any] Context[Body, map[string]types.MessageAttributeValue]

SimpleContext represents the execution context of a consumer handler in the package. It contains the necessary information for handling the message in the queue.

type StartMessageMoveTaskInput

type StartMessageMoveTaskInput struct {
	// The ARN of the queue that contains the messages to be moved to another queue.
	// Currently, only ARNs of dead-letter queues (DLQs) whose sources are other Amazon
	// SQS queues are accepted. DLQs whose sources are non-SQS queues, such as Lambda
	// or Amazon SNS topics, are not currently supported.
	//
	// This member is required.
	SourceArn string
	// The ARN of the queue that receives the moved messages. You can use this field
	// to specify the destination queue where you would like to redrive messages. If
	// this field is left blank, the messages will be redriven back to their respective
	// original source queues.
	DestinationArn *string
	// The number of messages to be moved per second (the message movement rate). You
	// can use this field to define a fixed message movement rate. The maximum value
	// for messages per second is 500. If this field is left blank, the system will
	// optimize the rate based on the queue message backlog size, which may vary
	// throughout the duration of the message movement task.
	MaxNumberOfMessagesPerSecond *int32
}

type TagQueueInput

type TagQueueInput struct {
	// The URL of the queue.
	//
	// This member is required.
	QueueUrl string
	// The list of tags to be added to the specified queue.
	//
	// This member is required.
	Tags map[string]string
}

type UntagQueueInput

type UntagQueueInput struct {
	// The URL of the queue.
	//
	// This member is required.
	QueueUrl string
	// The list of tags to be removed from the specified queue.
	//
	// This member is required.
	TagKeys []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL