-
Notifications
You must be signed in to change notification settings - Fork 4
/
example.js
29 lines (26 loc) · 886 Bytes
/
example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import sqs from 'k6/x/sqs';
const client = sqs.newClient()
export default function () {
const params = {
DelaySeconds: 0,
MessageAttributes: {
"Title": {
DataType: "String",
StringValue: "The Whistler"
},
"Author": {
DataType: "String",
StringValue: "John Grisham"
},
"WeeksOn": {
DataType: "Number",
StringValue: "6"
}
},
MessageBody: "Information about current NY Times fiction bestseller for week of 12/11/2016.",
// MessageDeduplicationId: "TheWhistler", // Required for FIFO queues
// MessageGroupId: "Group1", // Required for FIFO queues
QueueUrl: "https://sqs.eu-west-1.amazonaws.com/XXXXXXXXXXXX/QUEUE_URL"
};
sqs.send(client, params)
}