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

Add HostnameImmutable context value for middleware #222

Merged
merged 2 commits into from
Oct 26, 2020

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Oct 23, 2020

Adds a new HostnameImmutable context value getter/setter helpers to transport/http package.

Updates EndpointTrait's HostPrefix handling to use the HostnameImmutable to skip modifying the endpoint.

Also refactors EndpointTrait HostPrefix handling to be an integration instead of implemented directly in the operation serializer.

@jasdel jasdel force-pushed the jasdel/AddHostnameImmutable branch from fccb102 to 7102625 Compare October 23, 2020 00:27
Adds metadata helpers for HostnameImmutable flag, and updates endpoint
prefix middleware code generation to check the flag before modifying the
hostname.
@jasdel jasdel force-pushed the jasdel/AddHostnameImmutable branch from 804fb91 to 3452900 Compare October 26, 2020 23:14
@jasdel jasdel merged commit cdb13e4 into master Oct 26, 2020
@jasdel jasdel deleted the jasdel/AddHostnameImmutable branch October 26, 2020 23:35
jasdel added a commit to aws/aws-sdk-go-v2 that referenced this pull request Oct 27, 2020
…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 added a commit to aws/aws-sdk-go-v2 that referenced this pull request Oct 27, 2020
…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 added a commit to aws/aws-sdk-go-v2 that referenced this pull request Oct 27, 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.

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants