Skip to content

S3Client parameter type doesn't accept documented values #6993

@gcb

Description

@gcb

Checkboxes for prior research

Describe the bug

Documentation tells to pass a single obj

const client = new S3Client({ region });

which causes error:

... is not assignable to parameter of type '[] | [S3ClientConfig]'.

It seems to be expecting a list of configs, which I tried and then it fails saying "Error: Region is missing", which led me to believe the code doesn't actually expect a list, so i did not debug any further.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

node v23.9.0

Reproduction Steps

follow https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/javascript_s3_code_examples.html

Observed Behavior

type error

Expected Behavior

no type error

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

closed-for-stalenessguidanceGeneral information and guidance, answers to FAQs, or recommended best practices/resources.p3This is a minor priority issueresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions