public class AwsConfig extends Object
what happens behind the scenes is that data about the running AWS instances in a specific region are downloaded using the accesskey/secretkey and are potential Hazelcast members.
| Constructor and Description |
|---|
AwsConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessKey()
Gets the access key to access AWS.
|
int |
getConnectionTimeoutSeconds()
Gets the connection timeout in seconds.
|
String |
getHostHeader()
Gets the host header; the address where the EC2 API can be found.
|
String |
getIamRole()
Gets the iamRole name
|
String |
getRegion()
Gets the region where the EC2 instances running the Hazelcast members will be running.
|
String |
getSecretKey()
Gets the secret key to access AWS.
|
String |
getSecurityGroupName()
Gets the security group name.
|
String |
getTagKey()
Gets the tag key.
|
String |
getTagValue()
Gets the tag value.
|
boolean |
isEnabled()
Checks if the AWS join mechanism is enabled.
|
AwsConfig |
setAccessKey(String accessKey)
Sets the access key to access AWS.
|
AwsConfig |
setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
Sets the connect timeout in seconds.
|
AwsConfig |
setEnabled(boolean enabled)
Enables or disables the AWS join mechanism.
|
AwsConfig |
setHostHeader(String hostHeader)
Sets the host header; the address where the EC2 API can be found.
|
AwsConfig |
setIamRole(String iamRole)
Sets the tag value.
|
AwsConfig |
setRegion(String region)
Sets the region where the EC2 instances running the Hazelcast members will be running.
|
AwsConfig |
setSecretKey(String secretKey)
Sets the secret key to access AWS.
|
AwsConfig |
setSecurityGroupName(String securityGroupName)
Sets the security group name.
|
AwsConfig |
setTagKey(String tagKey)
Sets the tag key.
|
AwsConfig |
setTagValue(String tagValue)
Sets the tag value.
|
String |
toString() |
public String getAccessKey()
setAccessKey(String)public AwsConfig setAccessKey(String accessKey)
accessKey - the access key to access AWSIllegalArgumentException - if accessKey is null or emptygetAccessKey(),
setSecretKey(String)public String getSecretKey()
null if no access key is configured.setSecretKey(String)public AwsConfig setSecretKey(String secretKey)
secretKey - the secret key to access AWSIllegalArgumentException - if secretKey is null or emptygetSecretKey(),
setAccessKey(String)public String getRegion()
setRegion(String)public AwsConfig setRegion(String region)
region - the region where the EC2 instances running the Hazelcast members will be runningIllegalArgumentException - if region is null or emptypublic String getHostHeader()
public AwsConfig setHostHeader(String hostHeader)
hostHeader - the new host header; the address where the EC2 API can be foundIllegalArgumentException - if hostHeader is null or an empty stringpublic AwsConfig setEnabled(boolean enabled)
enabled - true if enabled, false otherwisepublic boolean isEnabled()
true if enabled, false otherwisepublic AwsConfig setSecurityGroupName(String securityGroupName)
securityGroupName - the security group namegetSecurityGroupName()public String getSecurityGroupName()
null is returned.null if nothing has been configuredpublic AwsConfig setTagKey(String tagKey)
tagKey - the tag key (see the filtering section above for more information)setTagKey(String)public AwsConfig setTagValue(String tagValue)
tagValue - the tag value (see the filtering section above for more information)setTagKey(String),
getTagValue()public String getTagKey()
null is returned.null if nothing is returnedpublic String getTagValue()
null is returned.null if nothing is returnedpublic int getConnectionTimeoutSeconds()
setConnectionTimeoutSeconds(int)public AwsConfig setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
TcpIpConfig.setConnectionTimeoutSeconds(int) for more information.connectionTimeoutSeconds - the connectionTimeoutSeconds (connection timeout in seconds) to setgetConnectionTimeoutSeconds(),
TcpIpConfig.setConnectionTimeoutSeconds(int)public String getIamRole()
null if nothing is returned(int)public AwsConfig setIamRole(String iamRole)
iamRole - the IAM Role namegetIamRole()Copyright © 2018 Hazelcast, Inc.. All rights reserved.