chore: upgrade dependencies
This commit is contained in:
34
vendor/github.com/aws/aws-sdk-go-v2/service/s3/internal/endpoints/endpoints.go
generated
vendored
34
vendor/github.com/aws/aws-sdk-go-v2/service/s3/internal/endpoints/endpoints.go
generated
vendored
@@ -221,6 +221,15 @@ var defaultPartitions = endpoints.Partitions{
|
||||
Hostname: "s3.dualstack.ap-southeast-2.amazonaws.com",
|
||||
SignatureVersions: []string{"s3", "s3v4"},
|
||||
},
|
||||
endpoints.EndpointKey{
|
||||
Region: "ap-southeast-3",
|
||||
}: endpoints.Endpoint{},
|
||||
endpoints.EndpointKey{
|
||||
Region: "ap-southeast-3",
|
||||
Variant: endpoints.DualStackVariant,
|
||||
}: {
|
||||
Hostname: "s3.dualstack.ap-southeast-3.amazonaws.com",
|
||||
},
|
||||
endpoints.EndpointKey{
|
||||
Region: "aws-global",
|
||||
}: endpoints.Endpoint{
|
||||
@@ -791,3 +800,28 @@ func GetDNSSuffix(id string, options Options) (string, error) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// GetDNSSuffixFromRegion returns the DNS suffix for the provided region and
|
||||
// options.
|
||||
func GetDNSSuffixFromRegion(region string, options Options) (string, error) {
|
||||
switch {
|
||||
case partitionRegexp.Aws.MatchString(region):
|
||||
return GetDNSSuffix("aws", options)
|
||||
|
||||
case partitionRegexp.AwsCn.MatchString(region):
|
||||
return GetDNSSuffix("aws-cn", options)
|
||||
|
||||
case partitionRegexp.AwsIso.MatchString(region):
|
||||
return GetDNSSuffix("aws-iso", options)
|
||||
|
||||
case partitionRegexp.AwsIsoB.MatchString(region):
|
||||
return GetDNSSuffix("aws-iso-b", options)
|
||||
|
||||
case partitionRegexp.AwsUsGov.MatchString(region):
|
||||
return GetDNSSuffix("aws-us-gov", options)
|
||||
|
||||
default:
|
||||
return GetDNSSuffix("aws", options)
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user