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 ofClientEndpointProviderthat 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 from services section (e.g. '[services dev] s3.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
ServiceMetadatafor the service
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAwsClientEndpointProvider.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsClientEndpointProvider.Builderbuilder()URIclientEndpoint()Retrieve the endpoint to be used by the client.booleanisEndpointOverridden()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:
clientEndpointin 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:
isEndpointOverriddenin interfaceClientEndpointProvider- Throws:
SdkClientException- If the endpoint could not be loaded or was invalid
-
-