Package com.hazelcast.aws
Enum AwsProperties
- All Implemented Interfaces:
Serializable
,Comparable<AwsProperties>
,java.lang.constant.Constable
public enum AwsProperties extends Enum<AwsProperties>
Configuration properties for the Hazelcast Discovery Plugin for AWS. For more information
see
AwsConfig
.-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_KEY
Access key of your account on EC2CONNECTION_RETRIES
Number of retries while connecting to AWS Services.CONNECTION_TIMEOUT_SECONDS
Sets the connect timeout in seconds.HOST_HEADER
The URL that is the entry point for a web service (the address where the EC2 API can be found).IAM_ROLE
IAM roles are used to make secure requests from your clients.PORT
The discovery mechanism will discover only IP addresses.REGION
The region where your members are running.SECRET_KEY
Secret key of your account on EC2SECURITY_GROUP_NAME
Name of the security group you specified at the EC2 management console.TAG_KEY
Tag key as specified in the EC2 console.TAG_VALUE
Tag value as specified in the EC2 console. -
Method Summary
Modifier and Type Method Description PropertyDefinition
getDefinition()
static AwsProperties
valueOf(String name)
Returns the enum constant of this type with the specified name.static AwsProperties[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACCESS_KEY
Access key of your account on EC2 -
SECRET_KEY
Secret key of your account on EC2 -
REGION
The region where your members are running. Default value is us-east-1. You need to specify this if the region is other than the default one. -
IAM_ROLE
IAM roles are used to make secure requests from your clients. You can provide the name of your IAM role that you created previously on your AWS console. -
HOST_HEADER
The URL that is the entry point for a web service (the address where the EC2 API can be found). Default value is ec2.amazonaws.com. -
SECURITY_GROUP_NAME
Name of the security group you specified at the EC2 management console. It is used to narrow the Hazelcast members to be within this group. It is optional. -
TAG_KEY
Tag key as specified in the EC2 console. It is used to narrow the members returned by the discovery mechanism. -
TAG_VALUE
Tag value as specified in the EC2 console. It is used to narrow the members returned by the discovery mechanism. -
CONNECTION_TIMEOUT_SECONDS
Sets the connect timeout in seconds. SeeTcpIpConfig.setConnectionTimeoutSeconds(int)
for more information. Its default value is 5. -
CONNECTION_RETRIES
Number of retries while connecting to AWS Services. Its default value is 10.Hazelcast AWS plugin uses two AWS services: Describe Instances and EC2 Instance Metadata.
-
PORT
The discovery mechanism will discover only IP addresses. You can define the port or the port range on which Hazelcast is expected to be running.Sample values: "5701", "5701-5710".
The default value is "5701-5708".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefinition
-