Closed kibertoad closed 8 months ago
Hi @kibertoad, thanks for opening this feature request. I understand the value for this, but since this file is auto generated from the service model itself I have to relay this feature request to them so they can have it in consideration. I will post the ticket id here once is done.
Thanks!
V944691875
This issue is now closed.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
@yenfryherrerafeliz Thanks a lot for addressing this! I've also opened a symmetric entry for SNS, as it has the same problem now (even in the latest version) - https://github.com/aws/aws-sdk/issues/626
Describe the feature
See https://github.com/aws/aws-sdk-js-v3/blob/6c8730a9646e324cc2c01b6e86df974a9f39fc64/clients/client-sqs/src/models/models_0.ts#L719
Attributes are defined simply as
Attributes?: Record<string, string>;
, without any type-safety. Supported options are only listed in documentation.Use Case
When project that relies on SQS client is using TypeScript, it is very helpful to have compilation time type-safety, so that compilation will fail, if unsupported parameter is passed. Otherwise this error will only be caught in the runtime, which may be too late.
Proposed Solution
Provide stronger types in
/clients/client-sqs/src/models/models_0.ts
Other Information
No response
Acknowledgements
SDK version used
3.357.0
Environment details (OS name and version, etc.)
Windows 11