@ConnectionManagement(friendlyName="Role Configuration", configElementName="role-config") public class SNSRoleConfig extends SNSCommonConfig
clientBuilder
Constructor and Description |
---|
SNSRoleConfig() |
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, getDefaultRegion, getMaxConnections, getRegion, getTestTopicArn, isConnected, setClientBuilder, setMaxConnections, setRegion, setTestTopicArn
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, @NotNull String secretKey, @NotNull String roleARN, @Optional boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- The access key provided by AmazonsecretKey
- The secret key provided by AmazonroleARN
- 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
- The access key provided by AmazonsecretKey
- The secret key provided by AmazonroleARN
- 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.