Skip to content

Commit 192704b

Browse files
authored
Merge pull request #639 from hashicorp/release-2.0.0-beta35
Prepare release `v2.0.0-beta.35`
2 parents 95ea2bd + 609ac43 commit 192704b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<!-- markdownlint-disable single-title -->
22
# v2.0.0 (Unreleased)
33

4+
# v2.0.0-beta.35 (2023-09-05)
5+
6+
ENHANCEMENTS
7+
8+
* Adds `AllowedAccountIds` and `ForbiddenAccountIds` fields and a `VerifyAccountIDAllowed` method to `Config` ([#638](https://github.com/hashicorp/aws-sdk-go-base/pull/638))
9+
* Adds `tfawserr.ErrHTTPStatusCodeEquals` ([#642](https://github.com/hashicorp/aws-sdk-go-base/pull/642))
10+
411
# v2.0.0-beta.34 (2023-08-17)
512

613
BREAKING CHANGES

internal/config/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ func (c Config) ResolveSharedCredentialsFiles() ([]string, error) {
136136

137137
// VerifyAccountIDAllowed verifies an account ID is not explicitly forbidden
138138
// or omitted from an allow list, if configured.
139+
//
140+
// If the AllowedAccountIds and ForbiddenAccountIds fields are both empty, this
141+
// function will return nil.
139142
func (c Config) VerifyAccountIDAllowed(accountID string) error {
140143
if len(c.ForbiddenAccountIds) > 0 {
141144
for _, forbiddenAccountID := range c.ForbiddenAccountIds {

0 commit comments

Comments
 (0)