Learn R Programming

paws (version 0.1.12)

sqs: Amazon Simple Queue Service

Description

Welcome to the Amazon Simple Queue Service API Reference.

Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.

For information on the permissions you need to use this API, see Identity and access management in the Amazon Simple Queue Service Developer Guide.

You can use AWS SDKs to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:

  • Cryptographically sign your service requests

  • Retry requests

  • Handle error responses

Additional Information

Usage

sqs(config = list())

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

Service syntax

svc <- sqs(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string"
    ),
    endpoint = "string",
    region = "string"
  )
)

Operations

add_permissionAdds a permission to a queue for a specific principal
change_message_visibilityChanges the visibility timeout of a specified message in a queue to a new value
change_message_visibility_batchChanges the visibility timeout of multiple messages
create_queueCreates a new standard or FIFO queue
delete_messageDeletes the specified message from the specified queue
delete_message_batchDeletes up to ten messages from the specified queue
delete_queueDeletes the queue specified by the QueueUrl, regardless of the queue's contents
get_queue_attributesGets attributes for the specified queue
get_queue_urlReturns the URL of an existing Amazon SQS queue
list_dead_letter_source_queuesReturns a list of your queues that have the RedrivePolicy queue attribute configured with a dead-letter queue
list_queuesReturns a list of your queues in the current region
list_queue_tagsList all cost allocation tags added to the specified Amazon SQS queue
purge_queueDeletes the messages in a queue specified by the QueueURL parameter
receive_messageRetrieves one or more messages (up to 10), from the specified queue
remove_permissionRevokes any permissions in the queue policy that matches the specified Label parameter
send_messageDelivers a message to the specified queue
send_message_batchDelivers up to ten messages to the specified queue
set_queue_attributesSets the value of one or more queue attributes
tag_queueAdd cost allocation tags to the specified Amazon SQS queue
untag_queueRemove cost allocation tags from the specified Amazon SQS queue

Examples

Run this code
if (FALSE) {
svc <- sqs()
svc$add_permission(
  Foo = 123
)
}

Run the code above in your browser using DataLab