B
- The type of builder that should be returned by the fluent builder methods in this interface.C
- The type of client generated by this builder.public interface AwsClientBuilder<B extends AwsClientBuilder<B,C>,C> extends SdkClientBuilder<B,C>
Implementations of this interface are mutable and not thread-safe.
Modifier and Type | Method and Description |
---|---|
B |
credentialsProvider(AwsCredentialsProvider credentialsProvider)
Configure the credentials that should be used to authenticate with AWS.
|
B |
region(Region region)
Configure the region with which the SDK should communicate.
|
endpointOverride, overrideConfiguration, overrideConfiguration
apply, build
B credentialsProvider(AwsCredentialsProvider credentialsProvider)
The default provider will attempt to identify the credentials automatically using the following checks:
aws.accessKeyId
and aws.secretKey
AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
If the credentials are not found in any of the locations above, an exception will be thrown at SdkBuilder.build()
time.
B region(Region region)
If this is not specified, the SDK will attempt to identify the endpoint automatically using the following logic:
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.