@ConnectionManagement(friendlyName="Basic Configuration", configElementName="config") public class SQSBasicConfig extends SQSCommonConfig
clientBuilder
Constructor and Description |
---|
SQSBasicConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String accessKey,
String secretKey,
String sessionToken,
boolean tryDefaultAWSCredentialsProviderChain) |
void |
testConnect(String accessKey,
String secretKey,
String sessionToken,
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, @Optional String sessionToken, @Optional boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- AWS access keysecretKey
- AWS secret keysessionToken
- Temporary security credentials which are used to access the AWS resources.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, @Optional String sessionToken, @Optional boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- AWS access keysecretKey
- AWS secret keysessionToken
- Temporary security credentials which are used to access the AWS resources.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–2019. All rights reserved.