Skip to content

bug: NetworkInterfaceType includes "natGateway" instead of "nat_gateway" #7082

Open
@markandrus

Description

@markandrus

Checkboxes for prior research

Describe the bug

The NetworkInterfaceType enum includes "natGateway" when the actual value is "nat_gateway":

The NetworkInterfaceType enum should include "nat_gateway" instead of "natGateway".

Regression Issue

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

SDK version number

8883679

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

N/A

Reproduction Steps

See above.

Observed Behavior

See above.

Expected Behavior

See above.

Possible Solution

Change the enum.

Additional Information/Context

This bug is present in the JavaScript AWS SDK v2, and possibly others: aws/aws-sdk-js#4702

Activity

added
bugThis issue is a bug.
needs-triageThis issue or PR still needs to be triaged.
on May 15, 2025
zshzbh

zshzbh commented on May 20, 2025

@zshzbh
Contributor

@markandrus
Thanks for the feedback!

In the repo , it is natGateway: "natGateway", ;
In internal codebase it is also <enumValue value="natGateway"/>,;
On doc it is nat_gateway

Let me check with the service team to see what should be the correct value.

Meanwhile, did you put natGateway and it is not working? Is nat_gateway working on your end?

Thanks!
Maggie

added
p2This is a standard priority issue
service-apiThis issue is due to a problem in a service API, not the SDK implementation.
and removed
needs-triageThis issue or PR still needs to be triaged.
on May 20, 2025
self-assigned this
on May 20, 2025
markandrus

markandrus commented on May 30, 2025

@markandrus
Author

Hi @zshzbh 👋 thanks for taking a look!

Yes, when we get API results back, the value we see is "nat_gateway". That's the value we need to match on, not "natGateway". So the SDK's enum definition appears incorrect (and I guess this may affect other languages' SDKs, too; I already saw it affects the previous JavaScript SDK).

Thanks!
Mark

zshzbh

zshzbh commented on Jun 27, 2025

@zshzbh
Contributor

Hey @markandrus ,

Thanks for the followup, in the repo , it is natGateway: "natGateway", and that value comes from service team. The change in service model will fix this issue. The service team is actively working on that.

Please keep an eye on the release note for the fix. Thanks! : )

added
queuedThis issues is on the AWS team's backlog
on Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p2This is a standard priority issuequeuedThis issues is on the AWS team's backlogservice-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @markandrus@zshzbh

      Issue actions

        bug: NetworkInterfaceType includes "natGateway" instead of "nat_gateway" · Issue #7082 · aws/aws-sdk-js-v3