Skip to content

Commit e543341

Browse files
authored
fix typo in jsdoc example (#5548)
use the imported fromContainerMetadata instead of fromInstanceMetadata
1 parent 6d10bff commit e543341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/credential-providers/src/fromContainerMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface RemoteProviderInit extends _RemoteProviderInit {}
1414
* // const { fromContainerMetadata } = require("@aws-sdk/credential-providers"); // CommonJS import
1515
*
1616
* const foo = new FooClient({
17-
* credentials: fromInstanceMetadata({
17+
* credentials: fromContainerMetadata({
1818
* // Optional. The connection timeout (in milliseconds) to apply to any remote requests. If not specified, a default value
1919
* // of`1000` (one second) is used.
2020
* timeout: 1000,

0 commit comments

Comments
 (0)