Skip to content

Commit a7e90d5

Browse files
committed
Document AWSConfig.fromEnvironment
1 parent 52a3692 commit a7e90d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/data/markdown/docs/20 jslib/01 jslib/01 aws/05 AwsConfig.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ It takes an options object as its single parameter, with the following propertie
1818
| secretAccessKey | string | The AWS secret access credential to use for authentication. |
1919
| sessionToken (optional) | string | The AWS secret access token to use for authentication. |
2020

21+
### Methods
22+
23+
| Name | Description |
24+
| :------------------ | :----------------------------------------------------------------------------------------------------------------------------------------- |
25+
| `fromEnvironment()` | Creates an `AWSConfig` using the `AWS_REGION`, `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_SESSION_TOKEN` environment variables. |
26+
2127
### Throws
2228

2329
S3 Client methods will throw errors in case of failure.

0 commit comments

Comments
 (0)