awslogs: Replace depreacted WithEndpointResolver usage
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
70a4a9c969
commit
2aa13e950d
1 changed files with 3 additions and 4 deletions
|
@ -406,12 +406,11 @@ func newAWSLogsClient(info logger.Info, configOpts ...func(*config.LoadOptions)
|
|||
clientOpts = append(
|
||||
clientOpts,
|
||||
cloudwatchlogs.WithAPIOptions(middleware.AddUserAgentKeyValue("Docker", dockerversion.Version)),
|
||||
func(o *cloudwatchlogs.Options) {
|
||||
o.BaseEndpoint = endpoint
|
||||
},
|
||||
)
|
||||
|
||||
if endpoint != nil {
|
||||
clientOpts = append(clientOpts, cloudwatchlogs.WithEndpointResolver(cloudwatchlogs.EndpointResolverFromURL(*endpoint)))
|
||||
}
|
||||
|
||||
client := cloudwatchlogs.NewFromConfig(cfg, clientOpts...)
|
||||
|
||||
return client, nil
|
||||
|
|
Loading…
Reference in a new issue