Class EnhancedS3ServiceMetadata
- java.lang.Object
-
- software.amazon.awssdk.regions.servicemetadata.EnhancedS3ServiceMetadata
-
- All Implemented Interfaces:
ServiceMetadata
public final class EnhancedS3ServiceMetadata extends Object implements ServiceMetadata
Decorator metadata class for S3 to allow customers to opt in to using the regional S3 us-east-1 endpoint instead of the legacys3.amazonaws.com
when specifying the us-east-1 region.
-
-
Constructor Summary
Constructors Constructor Description EnhancedS3ServiceMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
endpointFor(ServiceEndpointKey key)
Retrieve the AWS endpoint that should be used for this service associated with the providedServiceEndpointKey
.ServiceMetadata
reconfigure(ServiceMetadataConfiguration configuration)
Reconfigure this service metadata using the providedServiceMetadataConfiguration
.List<Region>
regions()
Retrieve the list of regions this service is currently available in.List<ServicePartitionMetadata>
servicePartitions()
Retrieve the service-specific partition configuration of each partition in which this service is currently available.Region
signingRegion(ServiceEndpointKey key)
Retrieve the region that should be used for message signing when communicating with this service in the provided region and with the provided endpoint tags.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.regions.ServiceMetadata
endpointFor, reconfigure, signingRegion
-
-
-
-
Method Detail
-
endpointFor
public URI endpointFor(ServiceEndpointKey key)
Description copied from interface:ServiceMetadata
Retrieve the AWS endpoint that should be used for this service associated with the providedServiceEndpointKey
.- Specified by:
endpointFor
in interfaceServiceMetadata
- Parameters:
key
- The service endpoint key with which an endpoint should be retrieved.- Returns:
- The region-specific endpoint for this service.
-
signingRegion
public Region signingRegion(ServiceEndpointKey key)
Description copied from interface:ServiceMetadata
Retrieve the region that should be used for message signing when communicating with this service in the provided region and with the provided endpoint tags. For most services, this will match the provided region, but it may differ for unusual services or when using a region that does not correspond to a physical location, likeRegion.AWS_GLOBAL
.- Specified by:
signingRegion
in interfaceServiceMetadata
- Parameters:
key
- The service endpoint key with which an endpoint should be retrieved.- Returns:
- The region that should be used for signing messages when communicating with this service in the requested region.
-
regions
public List<Region> regions()
Description copied from interface:ServiceMetadata
Retrieve the list of regions this service is currently available in.- Specified by:
regions
in interfaceServiceMetadata
- Returns:
- The list of regions this service is currently available in.
-
servicePartitions
public List<ServicePartitionMetadata> servicePartitions()
Description copied from interface:ServiceMetadata
Retrieve the service-specific partition configuration of each partition in which this service is currently available.- Specified by:
servicePartitions
in interfaceServiceMetadata
- Returns:
- The list of service-specific service metadata for each partition in which this service is available.
-
reconfigure
public ServiceMetadata reconfigure(ServiceMetadataConfiguration configuration)
Description copied from interface:ServiceMetadata
Reconfigure this service metadata using the providedServiceMetadataConfiguration
. This is useful, because some service metadata instances refer to external configuration that might wish to be modified, like aProfileFile
.- Specified by:
reconfigure
in interfaceServiceMetadata
-
-