You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/markdown/docs/20 jslib/01 jslib/01 aws.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,26 @@ excerpt: "aws is a library implementing APIs for accessing a selection of AWS se
4
4
description: "aws is a library implementing APIs for accessing a selection of AWS servicese"
5
5
---
6
6
7
-
The `aws` module is a JavaScript library that wraps around some Amazon AWS services API.
7
+
The `aws` module is a JavaScript library that wraps around some Amazon AWS services API.
8
8
9
9
The library exposes a couple of configuration and client classes allowing to interact with a subset of AWS services in the context of k6 load test scripts:
10
10
-[S3Client](/javascript-api/jslib/aws/s3client): a class to list S3 buckets and the objects they contain, as well as uploading, downloading and deleting objects from them.
11
11
-[SecretsManagerClient](/javascript-api/jslib/aws/secretsmanagerclient): a class to list, get, create, update, and delete secrets from the AWS secrets manager service.
12
12
-[KMSClient](/javascript-api/jslib/aws/kmsclient): a class to list and generate keys from the AWS Key Management Service.
13
13
-[SystemsManagerClient](/javascript-api/jslib/aws/systemsmanagerclient): a class to fetch parameters from the AWS Systems Manager Service.
14
+
-[SQSClient](/javascript-api/jslib/aws/sqsclient): a class to list and send messages to SQS queues.
14
15
-[SignatureV4](/javascript-api/jslib/aws/signaturev4): a class to sign and pre-sign requests to AWS services using the [Signature V4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) algorithm.
15
16
-[AWSConfig](/javascript-api/jslib/aws/awsconfig/): a class is used by each client classes to provide them access to AWS credentials as well as configuration.
16
17
17
-
> ⭐️ Source code available on [GitHub](https://github.com/grafana/k6-jslib-aws).
18
+
> ⭐️ Source code available on [GitHub](https://github.com/grafana/k6-jslib-aws).
18
19
> Please request features and report bugs through [GitHub issues](https://github.com/grafana/k6-jslib-aws/issues).
19
20
20
21
21
22
<Blockquotemod='info'>
22
23
23
24
#### This library is in active development
24
25
25
-
This library is stable enough to be useful, but pay attention to the new versions released on [jslib.k6.io](https://jslib.k6.io) and [k6-jslib-aws/releases](https://github.com/grafana/k6-jslib-aws/releases).
26
+
This library is stable enough to be useful, but pay attention to the new versions released on [jslib.k6.io](https://jslib.k6.io) and [k6-jslib-aws/releases](https://github.com/grafana/k6-jslib-aws/releases).
26
27
27
28
This documentation is for the last version only. If you discover that some code below does not work, it most likely means that you are using an older version.
28
29
@@ -35,5 +36,6 @@ This documentation is for the last version only. If you discover that some code
35
36
|[S3Client](/javascript-api/jslib/aws/s3client)| Client class to interact with AWS S3 buckets and objects. |
36
37
|[SecretsManager](/javascript-api/jslib/aws/secretsmanagerclient)| Client class to interact with AWS secrets stored in Secrets Manager. |
37
38
|[KMSClient](/javascript-api/jslib/aws/kmsclient)| Client class to interact with AWS Key Management Service. |
39
+
|[SQSClient](/javascript-api/jslib/aws/sqsclient)| Client class to interact with AWS Simple Queue Service. |
38
40
|[SystemsManagerClient](/javascript-api/jslib/aws/systemsmanagerclient)| Client class to interact with AWS Systems Manager Service. |
39
41
|[AWSConfig](/javascript-api/jslib/aws/awsconfig)| Class to configure AWS client classes. |
description: 'SQSClient enables interaction with the AWS Simple Queue Service (SQS)'
5
+
excerpt: 'SQSClient allows interacting with the AWS Simple Queue Service (SQS)'
6
+
---
7
+
8
+
`SQSClient` interacts with the AWS Simple Queue Service (SQS). With it, the user can send messages to specified queues and list available queues in the current region. `SQSClient` operations are blocking. k6 recommends reserving their use for the [`setup`](/using-k6/test-lifecycle/) and [`teardown`](/using-k6/test-lifecycle/) stages as much as possible.
9
+
10
+
Both the dedicated `sqs.js` jslib bundle and the all-encompassing `aws.js` bundle include the `SQSClient`.
|`queueUrl`| string | The URL of the Amazon SQS queue to which a message is sent. Queue URLs and names are case-sensitive. |
14
+
|`messageBody`| string | The message to send. The minimum size is one character. The maximum size is 256 KB. |
15
+
|`options`| object (optional) | Options for the request. Accepted properties are `messageDeduplicationId` (optional string) setting the message deduplication id, and `messageGroupId` (optional string) setting the message group ID for FIFO queues |
|`object`| The message that was sent, as an object containing an `id` string property holding the unique identifier for the message, and a `bodyMD5` string property holding the MD5 digest of the non-URL-encoded message body string. |
|`options`| object (optional) | Options for the request. Accepted properties are: `queueNamePrefix` (optional string) setting the prefix filter for the returned queue list, `maxResults` (optional number) setting the maximum number of results to include in the response (1 <= `maxResults` <= 1000>), and `nextToken` (optional string) setting the pagination token to request the next set of results. |
|`object`| An object with an `urls` property containing an array of queue URLs, and an optional `nextToken` containing a pagination token to include in the next request when relevant. |
0 commit comments