aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
3.11k stars 578 forks source link

The type of Status in the DescribeEnvironmentHealthResult interfac is incorrect. #6567

Open jhpung opened 2 weeks ago

jhpung commented 2 weeks ago

Checkboxes for prior research

Describe the bug

Currently, the type is set to EnvironmentHealth, but it should be specified as EnvironmentStatus to match the response.

Regression Issue

SDK version number

@aws-sdk/client-elastic-beanstalk@3.670.0

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

20.18.0

Reproduction Steps

  1. Send a DescribeEnvironmentHealthCommand
  2. The received output and the typeof output's status do not match with EnvironmentHealth type.

Observed Behavior

DescribeEnvironmentHealthCommandOutput.Status is Ready but it's type is EnvironmentHealth that doesn't matched

Expected Behavior

DescribeEnvironmentHealthCommandOutput.Status's type should be EnvironmentStatus

Possible Solution

No response

Additional Information/Context

No response

kuhe commented 2 weeks ago

@aBurmeseDev please create a ticket with the service team to confirm the intended model structure. I have closed the related PR #6568 because it cannot be modified in this repository.

aBurmeseDev commented 2 weeks ago

Hi @jhpung - thanks for reaching out.

As my colleague mentioned above, The modifications related to service models need to be handled by the respective service teams upstream and we do not make direct changes to the models within SDK.

I have initiated an internal communication with the concerned service team to inquire about the type and model structure and will keep you updated here. (Ref: P162555824)

Best, John