@ReconnectOn(exceptions=SQSConnectorException.class) @ConnectionManagement(friendlyName="Role Configuration", configElementName="role-config") public class SQSRoleConfig extends SQSCommonConfig
clientBuilder
Constructor and Description |
---|
SQSRoleConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String accessKey,
String secretKey,
String roleARN,
boolean tryDefaultAWSCredentialsProviderChain) |
void |
testConnect(String accessKey,
String secretKey,
String roleARN,
boolean tryDefaultAWSCredentialsProviderChain) |
disconnect, getConfigRegion, getConnectionId, getDefaultQueueName, getDefaultRegion, getRegion, getUrl, getUrl, isConnected, setClientBuilder, setDefaultQueueName, setRegion, setUrl
getAsyncClient, getClientBuilder, 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, @NotNull String secretKey, @NotNull String roleARN, @Optional boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- AWS access keysecretKey
- AWS secret keyroleARN
- 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
- If a connection cannot be made due to invalid credentials or if a network connection is not available.@TestConnectivity public void testConnect(@ConnectionKey String accessKey, @NotNull String secretKey, @NotNull String roleARN, @Optional boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- AWS access keysecretKey
- AWS secret keyroleARN
- 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
- If a connection cannot be made due to invalid credentials or if a network connection is not available.Copyright © 2010–2020. All rights reserved.