Skip to content

Commit

Permalink
appmesh: Migrate to AWS SDKv2
Browse files Browse the repository at this point in the history
  • Loading branch information
mattburgess committed Apr 29, 2024
1 parent 4ec8ee8 commit 515081e
Show file tree
Hide file tree
Showing 40 changed files with 1,400 additions and 1,386 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ require (
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.5 // indirect
github.com/aws/aws-sdk-go-v2/service/appmesh v1.25.4 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.7 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.6 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ github.com/aws/aws-sdk-go-v2/service/appflow v1.41.4 h1:ARn6qYIxhMRnatsonKQ4y3Wg
github.com/aws/aws-sdk-go-v2/service/appflow v1.41.4/go.mod h1:EGStqkGOjo1Mm1IMelC8W3BPq6n3Qiw+aUCgYTwjV/o=
github.com/aws/aws-sdk-go-v2/service/appintegrations v1.25.4 h1:B2DOglYz+zxaSrOfOTCX7bFp9J6LqvyIA25rpwYqOeQ=
github.com/aws/aws-sdk-go-v2/service/appintegrations v1.25.4/go.mod h1:tvRY6xn3fG25GW4n1W76MqTViTTzVfCXKmURxXloT9o=
github.com/aws/aws-sdk-go-v2/service/appmesh v1.25.4 h1:yldwOImLv8iJ4kRY1jkLrM+EC9SsUCQ9cX3Pbq6ElFQ=
github.com/aws/aws-sdk-go-v2/service/appmesh v1.25.4/go.mod h1:IMMyp0/5krom1km1radu+4OuZtHhU0iP7uu5EjeIYMA=
github.com/aws/aws-sdk-go-v2/service/apprunner v1.28.4 h1:WPPJVRvjvIHeFEqDyjX5yUocKOBAqDOJpvHIaN+LY30=
github.com/aws/aws-sdk-go-v2/service/apprunner v1.28.4/go.mod h1:HBEDVCiXAhDxrCJ8meNd1ao+PSQkkB02RfXaEuwyp6U=
github.com/aws/aws-sdk-go-v2/service/athena v1.40.4 h1:tiHIjFXSyb5DbNfnu3ql2r86s6llLdzwWAVJkPgw/I0=
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.

8 changes: 8 additions & 0 deletions internal/flex/flex.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ func FlattenInt64Set(list []*int64) *schema.Set {
return schema.NewSet(schema.HashInt, FlattenInt64List(list))
}

func FlattenInt32ValueSet(list []int32) *schema.Set {
return schema.NewSet(schema.HashInt, FlattenInt32ValueList(list))
}

// Takes the result of flatmap.Expand for an array of int32
// and returns a []int32
func ExpandInt32ValueList(configured []interface{}) []int32 {
Expand All @@ -248,6 +252,10 @@ func ExpandInt32ValueList(configured []interface{}) []int32 {
})
}

func ExpandInt32ValueSet(configured *schema.Set) []int32 {
return ExpandInt32ValueList(configured.List())
}

// Takes the result of flatmap.Expand for an array of int64
// and returns a []*int64
func ExpandInt64List(configured []interface{}) []*int64 {
Expand Down
Loading

0 comments on commit 515081e

Please sign in to comment.