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

codegen: Add flag to direct if SDK is allowed to modify a custom endpoint or not #848

Merged
merged 5 commits into from Oct 27, 2020

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Oct 21, 2020

Adds a new member to the aws.Endpoint struct, HostnameImmutable. This member directs if the SDK is allowed to modify the resolved endpoint to meet the requirements of the API. If HostnameImmutable is true, the SDK will not attempt to modify the hostname via any customizations, or prefix behavior. Flag defaults to false.

Depends on aws/smithy-go#222

@jasdel jasdel force-pushed the jasdel/cust/EndpointResolver branch 6 times, most recently from 820bca7 to 5a6aa47 Compare October 23, 2020 17:43
@jasdel jasdel marked this pull request as ready for review October 23, 2020 18:21
@jasdel jasdel force-pushed the jasdel/cust/EndpointResolver branch from 89ad0e2 to 56b5074 Compare October 23, 2020 21:52
@jasdel jasdel force-pushed the jasdel/cust/EndpointResolver branch 4 times, most recently from a6d3fa6 to 045c367 Compare October 25, 2020 22:23
@jasdel
Copy link
Contributor Author

jasdel commented Oct 25, 2020

Fixes up a bug with the S3 endpoint resolve tests for virtual host path style that should resolve to path style for bucket names that are not valid hostname labels. This fallback is not used when accelerate is enabled.

Applies a couple fixes to s3 and s3control endpoint resolve tests to cover hostname immutable support.

@jasdel jasdel force-pushed the jasdel/cust/EndpointResolver branch from 045c367 to 7c42e83 Compare October 27, 2020 00:59
…oint or not

Adds a new member to the `aws.Endpoint` struct, `HostnameImmutable`. This member
directs if the SDK is allowed to modify the resolved endpoint to meet the
requirements of the API.  If `HostnameImmutable` is true, the SDK will not
attempt to modify the hostname via any customizations, or prefix behavior. Flag
 defaults to false.

- Fixes #827 (SDK requiring region for endpoint resolution)
- Fixes #328
- Fixes #364
- Related to #836 When Amazon S3 Accesspoint support is implemented.
- Related to #479

Depends on aws/smithy-go#222
@jasdel jasdel force-pushed the jasdel/cust/EndpointResolver branch 3 times, most recently from c458604 to fc76253 Compare October 27, 2020 17:53
@jasdel jasdel force-pushed the jasdel/cust/EndpointResolver branch from 5a591c3 to 8eb8fc3 Compare October 27, 2020 18:40
@jasdel jasdel merged commit 6ecaaba into master Oct 27, 2020
@jasdel jasdel deleted the jasdel/cust/EndpointResolver branch October 27, 2020 20:05
lggomez added a commit to lggomez/aws-sdk-go-v2 that referenced this pull request Apr 26, 2022
lggomez added a commit to lggomez/aws-sdk-go-v2 that referenced this pull request Apr 26, 2022
jasdel pushed a commit that referenced this pull request May 5, 2022
…es (#1683)

Updates the doc string for hostCompatibleBucketName adding link to the resolved Endpoint member driving the behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants