Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3383499

Browse files
authoredMar 8, 2018
Release v2.0.0-preview.3 (2018-03-08) (#147)
Services --- * Synced the V2 SDK with latests AWS service API definitions. Breaking Changes --- * `private/mode/api`: Refactor service paginator helpers to iterator pattern (#119) * Refactors the generated service client paginators to be an iterator pattern. This pattern improves usability while removing the need for callbacks. * See the linked PR for an example. * `private/model/api`: Removes setter helpers from service API types (#101) * Removes the setter helper methods from service API types. Removing clutter and noise from the API type's signature. * Based on feedback #81 * `aws`: Rename CanceledErrorCode to ErrCodeRequestCanceled (#131) * Renames CanceledErrorCode to correct naming scheme. SDK Bugs --- * `internal/awsutil`: Fix DeepEqual to consider string alias type equal to string (#102) * Fixes SDK waiters not detecting the correct condition is met. #92 * `aws/external`: Fix EnvConfig misspelled container endpoint path getter (#106) * This caused the type to not satisfy the ContainerCredentialsEndpointPathProvider interface. * Fixes #105 * `service/s3/s3crypto`: Fix S3Crypto's handling of TagLen (#107) * Fixes the S3Crypto's handling of TagLen to only be set if present. * V2 Fix for aws/aws-sdk-go#1742 * `private/model/api`: Update SDK service client initialization documentation (#141) * Updates the SDK's service initialization doc template to reflect the v2 SDK's configuration update change from v1. * Related to #136 SDK Enhancements --- * `aws`: Improve pagination unit tests (#97) * V2 port of aws/aws-sdk-go#1733 * `aws/external`: Add example for shared config and static credential helper (#109) * Adds examples for the config helpers; WithSharedConfigProfile, WithCredentialsValue, WithMFATokenFunc. * `private/model/api`: Add validation to prevent collision of api defintions (#112) * V2 port of aws/aws-sdk-go#1758 * `aws/ec2metadata`: Add support for AWS_EC2_METADATA_DISABLED env var (#128) * When this environment variable is set. The SDK's EC2 Metadata Client will not attempt to make requests. All requests made with the EC2 Metadata Client will fail. * V2 port of aws/aws-sdk-go#1799 * Add code of conduct (#138) * Update SDK README dep usage (#140)
1 parent 309ad1c commit 3383499

File tree

221 files changed

+21967
-3358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+21967
-3358
lines changed
 

‎CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
Release v2.0.0-preview.3 (2018-03-08)
2+
===
3+
4+
### Services
5+
* Synced the V2 SDK with latests AWS service API definitions.
6+
7+
### Breaking Changes
8+
* `private/mode/api`: Refactor service paginator helpers to iterator pattern ([#119](https://github.com/aws/aws-sdk-go-v2/pull/119))
9+
* Refactors the generated service client paginators to be an iterator pattern. This pattern improves usability while removing the need for callbacks.
10+
* See the linked PR for an example.
11+
* `private/model/api`: Removes setter helpers from service API types ([#101](https://github.com/aws/aws-sdk-go-v2/pull/101))
12+
* Removes the setter helper methods from service API types. Removing clutter and noise from the API type's signature.
13+
* Based on feedback [#81][https://github.com/aws/aws-sdk-go-v2/issues/81]
14+
* `aws`: Rename CanceledErrorCode to ErrCodeRequestCanceled ([#131](https://github.com/aws/aws-sdk-go-v2/pull/131))
15+
* Renames CanceledErrorCode to correct naming scheme.
16+
17+
### SDK Bugs
18+
* `internal/awsutil`: Fix DeepEqual to consider string alias type equal to string ([#102](https://github.com/aws/aws-sdk-go-v2/pull/102))
19+
* Fixes SDK waiters not detecting the correct condition is met. [#92](https://github.com/aws/aws-sdk-go-v2/issues/92)
20+
* `aws/external`: Fix EnvConfig misspelled container endpoint path getter ([#106](https://github.com/aws/aws-sdk-go-v2/pull/106))
21+
* This caused the type to not satisfy the ContainerCredentialsEndpointPathProvider interface.
22+
* Fixes [#105](https://github.com/aws/aws-sdk-go-v2/issues/105)
23+
* `service/s3/s3crypto`: Fix S3Crypto's handling of TagLen ([#107](https://github.com/aws/aws-sdk-go-v2/pull/107))
24+
* Fixes the S3Crypto's handling of TagLen to only be set if present.
25+
* V2 Fix for [aws/aws-sdk-go#1742](https://github.com/aws/aws-sdk-go/issues/1742)
26+
* `private/model/api`: Update SDK service client initialization documentation ([#141](https://github.com/aws/aws-sdk-go-v2/pull/141))
27+
* Updates the SDK's service initialization doc template to reflect the v2 SDK's configuration update change from v1.
28+
* Related to [#136](https://github.com/aws/aws-sdk-go-v2/issues/136)
29+
30+
### SDK Enhancements
31+
* `aws`: Improve pagination unit tests ([#97](https://github.com/aws/aws-sdk-go-v2/pull/97))
32+
* V2 port of [aws/aws-sdk-go#1733](https://github.com/aws/aws-sdk-go/pull/1733)
33+
* `aws/external`: Add example for shared config and static credential helper ([#109](https://github.com/aws/aws-sdk-go-v2/pull/109))
34+
* Adds examples for the config helpers; WithSharedConfigProfile, WithCredentialsValue, WithMFATokenFunc.
35+
* `private/model/api`: Add validation to prevent collision of api defintions ([#112](https://github.com/aws/aws-sdk-go-v2/pull/112))
36+
* V2 port of [aws/aws-sdk-go#1758](https://github.com/aws/aws-sdk-go/pull/1758)
37+
* `aws/ec2metadata`: Add support for AWS_EC2_METADATA_DISABLED env var ([#128](https://github.com/aws/aws-sdk-go-v2/pull/128))
38+
* When this environment variable is set. The SDK's EC2 Metadata Client will not attempt to make requests. All requests made with the EC2 Metadata Client will fail.
39+
* V2 port of [aws/aws-sdk-go#1799](https://github.com/aws/aws-sdk-go/pull/1799)
40+
* Add code of conduct ([#138](https://github.com/aws/aws-sdk-go-v2/pull/138))
41+
* Update SDK README dep usage ([#140](https://github.com/aws/aws-sdk-go-v2/pull/140))
42+
143
Release v2.0.0-preview.2 (2018-01-15)
244
===
345

‎aws/endpoints/decode.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"encoding/json"
55
"fmt"
66
"io"
7-
"os"
87

98
"github.com/aws/aws-sdk-go-v2/aws/awserr"
109
)
@@ -85,34 +84,11 @@ func decodeV3Endpoints(modelDef modelDefinition, opts DecodeModelOptions) (*Reso
8584
custAddEC2Metadata(p)
8685
custAddS3DualStack(p)
8786
custSetUnresolveServices(p)
88-
89-
custFixCloudHSMv2SigningName(p)
9087
}
9188

9289
return &Resolver{partitions: ps}, nil
9390
}
9491

95-
func custFixCloudHSMv2SigningName(p *partition) {
96-
// Workaround for aws/aws-sdk-go#1745 until the endpoint model can be
97-
// fixed upstream. TODO remove this once the endpoints model is updated.
98-
99-
s, ok := p.Services["cloudhsmv2"]
100-
if !ok {
101-
return
102-
}
103-
104-
if len(s.Defaults.CredentialScope.Service) != 0 {
105-
fmt.Fprintf(os.Stderr, "cloudhsmv2 signing name already set, ignoring override.\n")
106-
// If the value is already set don't override
107-
return
108-
}
109-
110-
s.Defaults.CredentialScope.Service = "cloudhsm"
111-
fmt.Fprintf(os.Stderr, "cloudhsmv2 signing name not set, overriding.\n")
112-
113-
p.Services["cloudhsmv2"] = s
114-
}
115-
11692
func custAddS3DualStack(p *partition) {
11793
if p.ID != "aws" {
11894
return

0 commit comments

Comments
 (0)
Please sign in to comment.