send_msg {aws.sqs} | R Documentation |
Send a message to an SQS queue
send_msg(queue, msg, attributes = NULL, delay = NULL, query = NULL, ...)
queue |
A character string containing a queue URL, or the name of the queue. |
msg |
A character vector containing one or more message bodies. |
attributes |
Currently ignored. (If |
delay |
A numeric value indicating the number of seconds between 0 and 900 to delay a specific message. If |
query |
A list specifying additional query arguments to be passed to the |
... |
Additional arguments passed to |
A list of message information, including the MessageId and an MD5 checksum of the message body.
Thomas J. Leeper
link{receive_msg}
link{delete_msg}
## Not run: # list current queues list_queues() # create a queue queue <- create_queue("ExampleQueue") get_queue_url("ExampleQueue") # send message to queue send_msg("ExampleQueue", "This is a test message") # receive a message (m <- receive_msg("ExampleQueue", timeout = 0)) # delete a message from queue delete_msg("ExampleQueue", m$ReceiptHandle[1]) # delete queue delete_queue("ExampleQueue") ## End(Not run)