Class 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 legacy s3.amazonaws.com when specifying the us-east-1 region.
    • Constructor Detail

      • EnhancedS3ServiceMetadata

        public EnhancedS3ServiceMetadata()
    • 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 provided ServiceEndpointKey.
        Specified by:
        endpointFor in interface ServiceMetadata
        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, like Region.AWS_GLOBAL.
        Specified by:
        signingRegion in interface ServiceMetadata
        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 interface ServiceMetadata
        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 interface ServiceMetadata
        Returns:
        The list of service-specific service metadata for each partition in which this service is available.