public abstract class BasicConfig<T extends com.amazonaws.AmazonWebServiceClient> extends GenericConfig<T>
clientBuilder, clientConfig, clientCredentials, regions
Constructor and Description |
---|
BasicConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String accessKey,
String secretKey,
boolean tryDefaultAWSCredentialsProviderChain)
Login to Amazon S3
|
protected void |
createClientCredentials(String accessKey,
String secretKey,
boolean tryDefaultAWSCredentialsProviderChain)
Creates AWS basic credentials for the client
|
protected abstract void |
performClientConnectionTest()
Executes a requests in AWS server to check if the client configuration is correct.
|
void |
testConnect(String accessKey,
String secretKey,
boolean tryDefaultAWSCredentialsProviderChain)
Test Connectivity to Amazon S3.
|
connectionId, createClient, createClientBuilder, createClientConfiguration, disconnect, getClient, getConnectionTimeout, getMaxConnections, getProtocol, getProxyDomain, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getProxyWorkstation, getRegions, getSocketTimeout, isConnected, setClient, setClientBuilder, setConnectionTimeout, setCustomClientConfiguration, setMaxConnections, setProtocol, setProxyDomain, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setProxyWorkstation, setRegion, setSocketTimeout
@Connect public void connect(@ConnectionKey String accessKey, String secretKey, @Optional boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- The access key provided by Amazon, needed for non anonymous operationssecretKey
- The secrete key provided by Amazon, needed for non anonymous operationstryDefaultAWSCredentialsProviderChain
- Set it to true to try first to obtain credentials from AWS environment. See:
http://docs.aws.amazon.com/java-sdk/latest/developer-guide/credentials.html#using-the-default-credential-provider-chainorg.mule.api.ConnectionException
@TestConnectivity public void testConnect(@ConnectionKey String accessKey, String secretKey, @Optional boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- The access key provided by Amazon, needed for non anonymous operationssecretKey
- The secret key provided by Amazon, needed for non anonymous operationstryDefaultAWSCredentialsProviderChain
- Set it to true to try first to obtain credentials from AWS environment. See:
http://docs.aws.amazon.com/java-sdk/latest/developer-guide/credentials.html#using-the-default-credential-provider-chainorg.mule.api.ConnectionException
protected void createClientCredentials(String accessKey, String secretKey, boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- secretKey
- tryDefaultAWSCredentialsProviderChain
- org.mule.api.ConnectionException
protected abstract void performClientConnectionTest()
Copyright © 2010–2020. All rights reserved.