replace deprecated thing with the new hotness

This commit is contained in:
nyanotech 2024-04-08 20:36:00 -07:00
parent 2c5911fd23
commit b5785ef8fe
Signed by: nyanotech
GPG Key ID: D2D0A9E8F160472B

View File

@ -33,8 +33,8 @@ func main() {
// just a placeholder because it needs to be defined
// should be using the one from the endpoint regardless
config.WithRegion("us-east-1"),
config.WithEndpointResolver(aws.EndpointResolverFunc(
func(service, region string) (aws.Endpoint, error) {
config.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc(
func(service, region string, options ...interface{}) (aws.Endpoint, error) {
return aws.Endpoint{
URL: *endpoint,
}, nil