Class AWSConnection
- All Implemented Interfaces:
AWSCredentialsProviderBuilder.BuilderConfig,AdaptrisComponent,AdaptrisConnection,ComponentLifecycle,ComponentLifecycleExtension,StateManagedComponent
-
Field Summary
Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns something that can configure a normal AWS builder with a custom endpoint or a region...Any specific client configuration.How to provide Credentials for AWS.The custom endpoint for this connection.Set the region for the client.The Retry policy.voidsetClientConfiguration(KeyValuePairSet clientConfiguration) Any specific client configuration.voidsetCredentials(AWSCredentialsProviderBuilder credentials) How to provide Credentials for AWS.voidsetCustomEndpoint(CustomEndpoint customEndpoint) The custom endpoint for this connection.voidSet the region for the client.voidsetRetryPolicy(RetryPolicyFactory retryPolicy) The Retry policy.<T extends AWSConnection>
T<T extends AWSConnection>
T<T extends AWSConnection>
TwithCustomEndpoint(CustomEndpoint endpoint) <T extends AWSConnection>
TwithRegion(String s) <T extends AWSConnection>
TMethods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, closeConnection, connectionErrorHandler, connectionStateHandler, getConnectionErrorHandler, getConnectionStateHandler, getRuntimeComponent, getUniqueId, getWorkersFirstOnShutdown, init, initConnection, prepare, prepareConnection, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setConnectionStateHandler, setRuntimeComponent, setUniqueId, setWorkersFirstOnShutdown, start, startConnection, stop, stopConnection, workersFirstOnShutdown
-
Constructor Details
-
AWSConnection
public AWSConnection()
-
-
Method Details
-
credentialsProvider
-
clientConfiguration
- Specified by:
clientConfigurationin interfaceAWSCredentialsProviderBuilder.BuilderConfig
-
retryPolicy
- Specified by:
retryPolicyin interfaceAWSCredentialsProviderBuilder.BuilderConfig
-
withCustomEndpoint
-
withCredentialsProviderBuilder
public <T extends AWSConnection> T withCredentialsProviderBuilder(AWSCredentialsProviderBuilder builder) -
withClientConfiguration
-
withRetryPolicy
-
withRegion
-
endpointBuilder
Returns something that can configure a normal AWS builder with a custom endpoint or a region...- Specified by:
endpointBuilderin interfaceAWSCredentialsProviderBuilder.BuilderConfig
-
getRegion
Set the region for the client.If the region is not specified, then
DefaultAwsRegionProviderChainis used to determine the region. You can always specify a region using the standard system propertyaws2.regionor via environment variables. -
setRegion
Set the region for the client.If the region is not specified, then
DefaultAwsRegionProviderChainis used to determine the region. You can always specify a region using the standard system propertyaws2.regionor via environment variables. -
getCredentials
How to provide Credentials for AWS.If not specified, then a static credentials provider with a default provider chain will be used.
-
setCredentials
How to provide Credentials for AWS.If not specified, then a static credentials provider with a default provider chain will be used.
-
getClientConfiguration
Any specific client configuration. -
setClientConfiguration
Any specific client configuration. -
getRetryPolicy
The Retry policy. -
setRetryPolicy
The Retry policy. -
getCustomEndpoint
The custom endpoint for this connection.Generally speaking, you don't need to configure this; use
*setRegion(String)instead. This is only required if you are planning to use a non-standard service endpoint such as localstack to provide AWS services. Explicitly configuring this means that yoursetRegion(String)will have no effect (i.e.AwsClientBuilder#setRegion(String)will never be invoked. -
setCustomEndpoint
The custom endpoint for this connection.Generally speaking, you don't need to configure this; use
*setRegion(String)instead. This is only required if you are planning to use a non-standard service endpoint such as localstack to provide AWS services. Explicitly configuring this means that yoursetRegion(String)will have no effect (i.e.AwsClientBuilder#setRegion(String)will never be invoked.
-