@ConnectionManagement(friendlyName="Configuration") public class Config extends Object
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() |
com.amazonaws.services.s3.AmazonS3 |
getClient() |
Integer |
getConnectionTimeout() |
Integer |
getMaxConnections() |
com.amazonaws.Protocol |
getProtocol() |
String |
getProxyDomain() |
String |
getProxyHost() |
String |
getProxyPassword() |
Integer |
getProxyPort() |
String |
getProxyUsername() |
String |
getProxyWorkstation() |
String |
getRoleARN() |
Integer |
getSocketTimeout() |
String |
getStorageUrl() |
boolean |
isConnected() |
void |
setClient(com.amazonaws.services.s3.AmazonS3 client) |
void |
setConnectionTimeout(Integer connectionTimeout) |
void |
setMaxConnections(Integer maxConnections) |
void |
setProtocol(com.amazonaws.Protocol protocol) |
void |
setProxyDomain(String proxyDomain) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(Integer proxyPort) |
void |
setProxyUsername(String proxyUsername) |
void |
setProxyWorkstation(String proxyWorkstation) |
void |
setRoleARN(String roleARN) |
void |
setSocketTimeout(Integer socketTimeout) |
void |
setStorageUrl(String storageUrl) |
void |
testConnect(String accessKey,
String secretKey,
boolean tryDefaultAWSCredentialsProviderChain)
Test Connectivity to Amazon S3.
|
@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 operationsorg.mule.api.ConnectionException
@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
@ConnectionIdentifier public String connectionId()
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
public Integer getProxyPort()
public void setProxyPort(Integer proxyPort)
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public Integer getSocketTimeout()
public void setSocketTimeout(Integer socketTimeout)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
public com.amazonaws.services.s3.AmazonS3 getClient()
public void setClient(com.amazonaws.services.s3.AmazonS3 client)
public com.amazonaws.Protocol getProtocol()
public void setProtocol(com.amazonaws.Protocol protocol)
public String getProxyDomain()
public void setProxyDomain(String proxyDomain)
public String getProxyWorkstation()
public void setProxyWorkstation(String proxyWorkstation)
public Integer getMaxConnections()
public void setMaxConnections(Integer maxConnections)
public String getStorageUrl()
public void setStorageUrl(String storageUrl)
public String getRoleARN()
public void setRoleARN(String roleARN)
Copyright © 2010–2017. All rights reserved.