@ConnectionManagement(friendlyName="Role Configuration", configElementName="role-config") public class S3RoleConfig extends S3CommonConfig
clientBuilder
Constructor and Description |
---|
S3RoleConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String accessKey,
String secretKey,
String roleARN,
boolean tryDefaultAWSCredentialsProviderChain)
Login to Amazon S3
|
void |
testConnect(String accessKey,
String secretKey,
String roleARN,
boolean tryDefaultAWSCredentialsProviderChain)
Test Connectivity to Amazon S3.
|
connectionId, disconnect, getDefaultRegion, getMaxConnections, getStorageUrl, isConnected, setClientBuilder, setMaxConnections, setStorageUrl
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, String roleARN, @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 operationsroleARN
- The Role ARN allows you to cross account access without using security credentials.tryDefaultAWSCredentialsProviderChain
- 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
- Throws a Connection Exception.@TestConnectivity public void testConnect(@ConnectionKey String accessKey, String secretKey, String roleARN, @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 operationsroleARN
- The Role ARN allows you to cross account access without using security credentials.
//TODO check if the following parameter description is correct.tryDefaultAWSCredentialsProviderChain
- Try Default AWS Credentials Provider Chain (Boolean).org.mule.api.ConnectionException
- Throws a Connection Exception.Copyright © 2010–2021. All rights reserved.