Skip to content

missing PassthroughBehavior enum in types in apigateway(v1) #2755

Closed as not planned
@fgmarand

Description

Pre-Migration Checklist

Go Version Used

Go 1.23 (irrelevant).

Describe the Migration Issue

The constants apigatewayv2.PassthroughBehaviorWhenNoMatch, apigatewayv2.PassthroughBehaviorNever and apigatewayv2.PassthroughBehaviorWhenNoTemplates are missing from the v2 SDK.

As a consequence, the code in v2 uses plain magic constants in the source code instead of enum constants defined in the types package as happens for the other string constants.

Code Comparison

Client.PutIntegration method takes a PutIntegrationInput struct with a PassthroughBehavior field that is a *string in both v1 and v2, so no difference.

Observed Differences/Errors

One of the major changes in v2 is the use of the types package to store such enumerations and remove them as inline magic values, so one would expect these pre-existing constants to have been migrated, instead of just removed.

Additional Context

The likely cause is that the SDK is actually missing any use case for these constants, because there does not appear to be unit tests around their behaviour.

Metadata

Assignees

Labels

service-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

Issue actions