Class EnhancedS3ServiceMetadata
java.lang.Object
software.amazon.awssdk.regions.servicemetadata.EnhancedS3ServiceMetadata
- All Implemented Interfaces:
ServiceMetadata
Decorator metadata class for S3 to allow customers to opt in to using the
regional S3 us-east-1 endpoint instead of the legacy
s3.amazonaws.com
when specifying the us-east-1 region.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the AWS endpoint that should be used for this service associated with the providedServiceEndpointKey
.reconfigure
(ServiceMetadataConfiguration configuration) Reconfigure this service metadata using the providedServiceMetadataConfiguration
.regions()
Retrieve the list of regions this service is currently available in.Retrieve the service-specific partition configuration of each partition in which this service is currently available.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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.regions.ServiceMetadata
endpointFor, reconfigure, signingRegion
-
Constructor Details
-
EnhancedS3ServiceMetadata
public EnhancedS3ServiceMetadata()
-
-
Method Details
-
endpointFor
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
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
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
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
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
-