Class AwsClientEndpointProvider
- java.lang.Object
-
- software.amazon.awssdk.awscore.endpoint.AwsClientEndpointProvider
-
- All Implemented Interfaces:
ClientEndpointProvider
public final class AwsClientEndpointProvider extends Object implements ClientEndpointProvider
An implementation ofClientEndpointProvider
that loads the default client endpoint from:- The client-level endpoint override
- The service-specific endpoint override system property (e.g. 'aws.endpointUrlS3')
- The service-agnostic endpoint override system property (i.e. 'aws.endpointUrl')
- The service-specific endpoint override environment variable (e.g. 'AWS_ENDPOINT_URL_S3')
- The service-agnostic endpoint override environment variable (i.e. 'AWS_ENDPOINT_URL')
- The service-specific endpoint override profile property (e.g. 's3.endpoint_url')
- The service-agnostic endpoint override profile property (i.e. 'endpoint_url')
- The
ServiceMetadata
for the service
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwsClientEndpointProvider.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsClientEndpointProvider.Builder
builder()
URI
clientEndpoint()
Retrieve the endpoint to be used by the client.boolean
isEndpointOverridden()
Return true if the endpoint was overridden by the customer, or false if it was loaded from theServiceMetadata
.
-
-
-
Method Detail
-
builder
public static AwsClientEndpointProvider.Builder builder()
-
clientEndpoint
public URI clientEndpoint()
Retrieve the endpoint to be used by the client.- Specified by:
clientEndpoint
in interfaceClientEndpointProvider
- Throws:
SdkClientException
- If the endpoint could not be loaded or was invalid
-
isEndpointOverridden
public boolean isEndpointOverridden()
Return true if the endpoint was overridden by the customer, or false if it was loaded from theServiceMetadata
.- Specified by:
isEndpointOverridden
in interfaceClientEndpointProvider
- Throws:
SdkClientException
- If the endpoint could not be loaded or was invalid
-
-