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

sesv2: Use AWS SDK v2 #26846

Merged
merged 2 commits into from
Sep 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ require (
gopkg.in/yaml.v2 v2.4.0
)

require github.com/aws/aws-sdk-go-v2/service/sesv2 v1.13.18

require (
github.com/agext/levenshtein v1.2.2 // indirect
github.com/apparentlymart/go-cidr v1.1.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.0.7 h1:YS25eOZbV8rgop8q8LS
github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.0.7/go.mod h1:9e8oiSvNZ34idHDRxBeWRFXu6rYpdprGHtb0eY14EVk=
github.com/aws/aws-sdk-go-v2/service/route53domains v1.12.15 h1:Gguq7HoRraxMF7c14eJc+kuaxmdxL00va/VuYEducl4=
github.com/aws/aws-sdk-go-v2/service/route53domains v1.12.15/go.mod h1:K2O7EHT8o+x3bb3QKnIQUtCL+GIMto2QsltnHVAyvEg=
github.com/aws/aws-sdk-go-v2/service/sesv2 v1.13.18 h1:Efm2CjXDoWK1NOu+w2+Ik0xne0BKDtq6T5ti/+9/NiQ=
github.com/aws/aws-sdk-go-v2/service/sesv2 v1.13.18/go.mod h1:y+PVz3TeQYhlvP7NbmYDXuwflXBbK1s5I2O7SVTiWyw=
github.com/aws/aws-sdk-go-v2/service/sso v1.11.4 h1:Uw5wBybFQ1UeA9ts0Y07gbv0ncZnIAyw858tDW0NP2o=
github.com/aws/aws-sdk-go-v2/service/sso v1.11.4/go.mod h1:cPDwJwsP4Kff9mldCXAmddjJL6JGQqtA3Mzer2zyr88=
github.com/aws/aws-sdk-go-v2/service/sts v1.16.4 h1:+xtV90n3abQmgzk1pS++FdxZTrPEDgQng6e4/56WR2A=
Expand Down
4 changes: 2 additions & 2 deletions internal/conns/awsclient_gen.go

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

7 changes: 7 additions & 0 deletions internal/conns/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/medialive"
"github.com/aws/aws-sdk-go-v2/service/rolesanywhere"
"github.com/aws/aws-sdk-go-v2/service/route53domains"
"github.com/aws/aws-sdk-go-v2/service/sesv2"
"github.com/aws/aws-sdk-go-v2/service/transcribe"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/endpoints"
Expand Down Expand Up @@ -249,6 +250,12 @@ func (c *Config) ConfigureProvider(ctx context.Context, client *AWSClient) (*AWS
}
})

client.SESV2Conn = sesv2.NewFromConfig(cfg, func(o *sesv2.Options) {
if endpoint := c.Endpoints[names.SESV2]; endpoint != "" {
o.EndpointResolver = sesv2.EndpointResolverFromURL(endpoint)
}
})

client.TranscribeConn = transcribe.NewFromConfig(cfg, func(o *transcribe.Options) {
if endpoint := c.Endpoints[names.Transcribe]; endpoint != "" {
o.EndpointResolver = transcribe.EndpointResolverFromURL(endpoint)
Expand Down
2 changes: 0 additions & 2 deletions internal/conns/config_gen.go

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

1 change: 1 addition & 0 deletions names/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const (
MediaLiveEndpointID = "medialive"
RolesAnywhereEndpointID = "rolesanywhere"
Route53DomainsEndpointID = "route53domains"
SESV2EndpointID = "sesv2"
TranscribeEndpointID = "transcribe"
)

Expand Down
2 changes: 1 addition & 1 deletion names/names_data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ servicecatalog,servicecatalog,servicecatalog,servicecatalog,,servicecatalog,,,Se
servicecatalog-appregistry,servicecatalogappregistry,appregistry,servicecatalogappregistry,,servicecatalogappregistry,,appregistry,ServiceCatalogAppRegistry,AppRegistry,,1,,aws_servicecatalogappregistry_,,servicecatalogappregistry_,Service Catalog AppRegistry,AWS,,,,,
service-quotas,servicequotas,servicequotas,servicequotas,,servicequotas,,,ServiceQuotas,ServiceQuotas,,1,,aws_servicequotas_,,servicequotas_,Service Quotas,,,,,,
ses,ses,ses,ses,,ses,,,SES,SES,,1,,aws_ses_,,ses_,SES (Simple Email),Amazon,,,,,
sesv2,sesv2,sesv2,sesv2,,sesv2,,,SESV2,SESV2,,1,,aws_sesv2_,,sesv2_,SESv2 (Simple Email V2),Amazon,,,,,
sesv2,sesv2,sesv2,sesv2,,sesv2,,,SESV2,SESV2,x,2,,aws_sesv2_,,sesv2_,SESv2 (Simple Email V2),Amazon,,,,,
stepfunctions,stepfunctions,sfn,sfn,,sfn,,stepfunctions,SFN,SFN,,1,,aws_sfn_,,sfn_,SFN (Step Functions),AWS,,,,,
shield,shield,shield,shield,,shield,,,Shield,Shield,x,1,,aws_shield_,,shield_,Shield,AWS,,,,,
signer,signer,signer,signer,,signer,,,Signer,Signer,,1,,aws_signer_,,signer_,Signer,AWS,,,,,
Expand Down