@ConnectionManagement(friendlyName="Configuration") public class Config extends CommonConfig<com.amazonaws.services.ec2.AmazonEC2Client>
clientBuilder
Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String accessKey,
String secretKey,
boolean tryDefaultAWSCredentialsProviderChain)
Login to Amazon S3
|
String |
connectionId() |
void |
disconnect() |
protected String |
getDefaultRegion() |
Integer |
getMaxConnections() |
RegionEndpoint |
getRegion() |
boolean |
isConnected() |
protected void |
setClientBuilder() |
void |
setMaxConnections(Integer maxConnections) |
void |
setRegion(RegionEndpoint region) |
void |
testConnect(String accessKey,
String secretKey,
boolean tryDefaultAWSCredentialsProviderChain)
Test Connectivity to Amazon S3.
|
getAsyncClient, getClientBuilder, getConfigRegion, getConnectionTimeout, getProtocol, getProxyDomain, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getProxyWorkstation, getSocketTimeout, getSyncClient, setConnectionTimeout, setProtocol, setProxyDomain, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setProxyWorkstation, 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
- an Exception indicating connection failure@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
- Boolean value indicating whether credentials provider chain needs to be usedorg.mule.api.ConnectionException
- an Exception indicating connection failure@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
@ConnectionIdentifier public String connectionId()
public Integer getMaxConnections()
public void setMaxConnections(Integer maxConnections)
public RegionEndpoint getRegion()
public void setRegion(RegionEndpoint region)
protected String getDefaultRegion()
getDefaultRegion
in class CommonConfig<com.amazonaws.services.ec2.AmazonEC2Client>
protected void setClientBuilder()
setClientBuilder
in class CommonConfig<com.amazonaws.services.ec2.AmazonEC2Client>
Copyright © 2010–2020. All rights reserved.