aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

Tighter client.send typing.

Open cpyle0819 opened this issue 1 year ago • 0 comments

Describe the feature

Currently, client.send takes any "Command". The send method should only take commands appropriate for that client.

Use Case

Sometimes I accidentally try to run a command with the wrong client, e.g. ec2Client.send(new TerminateInstanceInAutoScalingGroupCommand({}).

It would be nice if static type checkers could head me off at the pass.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

SDK version used

3.433.0

Environment details (OS name and version, etc.)

Mac OS Ventura 13.5.2

cpyle0819 avatar Nov 01 '23 15:11 cpyle0819