Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service/ec2: Fix generation of number and bool struct members to be pointers #1195

Merged
merged 7 commits into from
May 6, 2021

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Mar 26, 2021

Fix incorrectly modeled Amazon EC2 number and boolean members in structures. The Amazon EC2 API client has been updated with a breaking change to fix all structure number and boolean members to be pointer types instead of value types.

Fixes #1107, #1178, and #1190. This breaking change is made within the major version of the client' module, because the client's current operations are not usable with value type number and boolean members. The API's behavior requires parameters to be nullable. This translates to the AWS SDK for Go client as the members being pointer types.

The client's behavior could not be reliability patched without a breaking change due to the scope the parameters were used in and server side handling of the parameters.

@jasdel jasdel requested review from skmcgrail and skotambkar March 26, 2021 19:29
@jasdel jasdel added the breaking-change Issue requires a breaking change to remediate. label Mar 26, 2021
@jasdel jasdel force-pushed the ec2/BoxedBackfill branch from 3b5d9f8 to bb31bd4 Compare May 5, 2021 20:47
jasdel added 5 commits May 5, 2021 16:28
Adds a backfill customization to the Amazon EC2 API model so that all
unboxed number and boolean shapes are correctly decorated as boxed. The
API does not handle unboxed members. This causes the API client
generated from the model to be unusable in many cases.

The generated API client will contain breaking changes, but these
breaking changes are here to fix the API client that was unusable in
many ways.
@jasdel jasdel force-pushed the ec2/BoxedBackfill branch from bb31bd4 to 0274c45 Compare May 5, 2021 23:29
@jasdel jasdel merged commit 9b93441 into aws:main May 6, 2021
@jasdel jasdel deleted the ec2/BoxedBackfill branch May 6, 2021 18:01
jrichard8 pushed a commit to jrichard8/aws-sdk-go-v2 that referenced this pull request Feb 14, 2022
…ointers (aws#1195)

Adds a backfill customization to the Amazon EC2 API model so that all
unboxed number and boolean shapes are correctly decorated as boxed. The
API does not handle unboxed members. This causes the API client
generated from the model to be unusable in many cases.

The generated API client will contain breaking changes, but these
breaking changes are here to fix the API client that was unusable in
many ways.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Issue requires a breaking change to remediate.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

service/ec2: ModifyNetworkInterfaceAttribute fails when Value: false but works when Value: true
3 participants