Skip to content

Commit cd241ad

Browse files
Add endpoint to AWSConfig (#1987)
* Apply #1569 to next * Remove code shortcode, update example explanation
1 parent 11b3e83 commit cd241ad

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/sources/k6/next/javascript-api/jslib/aws/awsconfig.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ It takes an options object as its single parameter, with the following propertie
2020
| accessKeyID | string | The AWS access key ID credential to use for authentication. |
2121
| secretAccessKey | string | The AWS secret access credential to use for authentication. |
2222
| sessionToken (optional) | string | The AWS secret access token to use for authentication. |
23+
| endpoint (optional) | string | The AWS endpoint. Useful for local testing. |
2324

2425
### Methods
2526

@@ -37,7 +38,9 @@ S3 Client methods will throw errors in case of failure.
3738

3839
### Example
3940

40-
{{< code >}}
41+
An example showing how you can use k6 to instantiate an `AWSConfig` object and use it to configure a `SecretsManagerClient` instance.
42+
43+
<!-- md-k6:skip -->
4144

4245
```javascript
4346
import exec from 'k6/execution';
@@ -61,7 +64,3 @@ export default function () {
6164
// ...
6265
}
6366
```
64-
65-
_k6 will instantiate an `AWSConfig` object and use it to configure a `SecretsManagerClient` instance_
66-
67-
{{< /code >}}

0 commit comments

Comments
 (0)