Skip to content

Commit

Permalink
Merge branch 'main' into td-migrate-codeartifact-to-aws-sdk-v2
Browse files Browse the repository at this point in the history
# Conflicts:
#	internal/conns/awsclient_gen.go
  • Loading branch information
ewbankkit committed Jan 29, 2024
2 parents bf6a84e + 8c5f6a3 commit 74f6621
Show file tree
Hide file tree
Showing 27 changed files with 1,573 additions and 210 deletions.
3 changes: 3 additions & 0 deletions .changelog/34617.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_lexv2models_slot
```
3 changes: 3 additions & 0 deletions .changelog/35535.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_eks_access_entry: Retry IAM eventual consistency errors on create
```
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## 5.35.0 (Unreleased)

FEATURES:

* **New Resource:** `aws_lexv2models_slot` ([#34617](https://github.com/hashicorp/terraform-provider-aws/issues/34617))

## 5.34.0 (January 26, 2024)

FEATURES:
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/codecommit v1.20.1
github.com/aws/aws-sdk-go-v2/service/codedeploy v1.22.3
github.com/aws/aws-sdk-go-v2/service/codeguruprofiler v1.18.6
github.com/aws/aws-sdk-go-v2/service/codegurureviewer v1.22.6
github.com/aws/aws-sdk-go-v2/service/codepipeline v1.22.6
github.com/aws/aws-sdk-go-v2/service/codestarconnections v1.22.1
github.com/aws/aws-sdk-go-v2/service/codestarnotifications v1.20.6
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ github.com/aws/aws-sdk-go-v2/service/codedeploy v1.22.3 h1:KUQmoqL05L+fftMgWLVlk
github.com/aws/aws-sdk-go-v2/service/codedeploy v1.22.3/go.mod h1:NqMyFU67rmETeGllV83ilhMC7r+7KnjeEvux4PYakPk=
github.com/aws/aws-sdk-go-v2/service/codeguruprofiler v1.18.6 h1:x5j98Y39PwTePUmTdY5XG7OX9+76sKnA9D88xeCtXcc=
github.com/aws/aws-sdk-go-v2/service/codeguruprofiler v1.18.6/go.mod h1:iDwHJEm4R1uHugNE19aiKPQ/hYNIPOgLSbbnI6YsPP4=
github.com/aws/aws-sdk-go-v2/service/codegurureviewer v1.22.6 h1:WFFgT8UwGwweIMUgDJZ1RfU1XESBQWNkOo0ohTtlJFE=
github.com/aws/aws-sdk-go-v2/service/codegurureviewer v1.22.6/go.mod h1:70WSgelOSLynj945kxLDv7J10zf0JN0s9HUOl49UdS4=
github.com/aws/aws-sdk-go-v2/service/codepipeline v1.22.6 h1:I1sVOeBvwB0k6urXzQNeyHmK4tsqhBI4bZrxPmDRwK8=
github.com/aws/aws-sdk-go-v2/service/codepipeline v1.22.6/go.mod h1:Kv4J83SNr492WbgfOKsEkcwqF8Xy10aAaGOh6mYgC8w=
github.com/aws/aws-sdk-go-v2/service/codestarconnections v1.22.1 h1:BDHWW50nyoLyg/J+Tkwsh/SdTd1uUOkW9LISJH82JCA=
Expand Down
6 changes: 3 additions & 3 deletions internal/conns/awsclient_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions internal/service/codegurureviewer/exports_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package codegurureviewer

// Exports for use in tests only.
var (
ResourceRepositoryAssociation = resourceRepositoryAssociation

FindRepositoryAssociationByID = findRepositoryAssociationByID
)
2 changes: 1 addition & 1 deletion internal/service/codegurureviewer/generate.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

//go:generate go run ../../generate/tags/main.go -ListTags -ServiceTagsMap -UpdateTags
//go:generate go run ../../generate/tags/main.go -AWSSDKVersion=2 -KVTValues -SkipTypesImp -ServiceTagsMap -ListTags -UpdateTags
//go:generate go run ../../generate/servicepackage/main.go
// ONLY generate directives and package declaration! Do not add anything else to this file.

Expand Down
30 changes: 30 additions & 0 deletions internal/service/codegurureviewer/list_pages.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package codegurureviewer

import (
"context"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/codegurureviewer"
)

// Custom CodeGuruReviewer service lister functions using the same format as generated code.

func listRepositoryAssociationsPages(ctx context.Context, conn *codegurureviewer.Client, input *codegurureviewer.ListRepositoryAssociationsInput, fn func(*codegurureviewer.ListRepositoryAssociationsOutput, bool) bool) error {
for {
output, err := conn.ListRepositoryAssociations(ctx, input)
if err != nil {
return err
}

lastPage := aws.ToString(output.NextToken) == ""
if !fn(output, lastPage) || lastPage {
break
}

input.NextToken = output.NextToken
}
return nil
}
Loading

0 comments on commit 74f6621

Please sign in to comment.