![]() |
Hazelcast C++ Client
Hazelcast C++ Client Library
|
The client_aws_config contains the configuration for client to connect to nodes in aws environment. More...
#include <client_aws_config.h>
Public Member Functions | |
const std::string & | get_access_key () const |
Gets the access key to access AWS. More... | |
client_aws_config & | set_access_key (const std::string &access_key) |
Sets the access key to access AWS. More... | |
const std::string & | get_secret_key () const |
Gets the secret key to access AWS. More... | |
client_aws_config & | set_secret_key (const std::string &secret_key) |
Sets the secret key to access AWS. More... | |
const std::string & | get_region () const |
Gets the region where the EC2 instances running the Hazelcast members will be running. More... | |
client_aws_config & | set_region (const std::string ®ion) |
Sets the region where the EC2 instances running the Hazelcast members will be running. More... | |
const std::string & | get_host_header () const |
Gets the host header; the address where the EC2 API can be found. More... | |
client_aws_config & | set_host_header (const std::string &host_header) |
Sets the host header; the address where the EC2 API can be found. More... | |
client_aws_config & | set_enabled (bool enabled) |
Enables or disables the aws join mechanism. More... | |
bool | is_enabled () const |
Checks if the aws join mechanism is enabled. More... | |
client_aws_config & | set_security_group_name (const std::string &security_group_name) |
Sets the security group name. More... | |
const std::string & | get_security_group_name () const |
Gets the security group name. More... | |
client_aws_config & | set_tag_key (const std::string &tag_key) |
Sets the tag key. More... | |
const std::string & | get_tag_key () const |
Gets the tag key. More... | |
client_aws_config & | set_tag_value (const std::string &tag_value) |
Sets the tag value. More... | |
const std::string & | get_tag_value () const |
Gets the tag value. More... | |
const std::string & | get_iam_role () const |
Gets the iamRole name. More... | |
client_aws_config & | set_iam_role (const std::string &iam_role) |
Sets the tag value. More... | |
bool | is_inside_aws () const |
If client is inside aws, it will use private ip addresses directly, otherwise it will convert private ip addresses to public addresses internally by calling AWS API. More... | |
client_aws_config & | set_inside_aws (bool inside_aws) |
Set to true if client is inside aws environment Default value is false. More... | |
The client_aws_config contains the configuration for client to connect to nodes in aws environment.
The client_aws_config contains the configuration for AWS join mechanism.
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.
There are 2 mechanisms for filtering out AWS instances and these mechanisms can be combined (AND).
Definition at line 52 of file client_aws_config.h.
const std::string & hazelcast::client::config::client_aws_config::get_access_key | ( | ) | const |
Gets the access key to access AWS.
Returns empty string if no access key is configured.
Definition at line 433 of file config.cpp.
const std::string & hazelcast::client::config::client_aws_config::get_host_header | ( | ) | const |
Gets the host header; the address where the EC2 API can be found.
Definition at line 460 of file config.cpp.
const std::string & hazelcast::client::config::client_aws_config::get_iam_role | ( | ) | const |
Gets the iamRole name.
Definition at line 506 of file config.cpp.
const std::string & hazelcast::client::config::client_aws_config::get_region | ( | ) | const |
Gets the region where the EC2 instances running the Hazelcast members will be running.
Definition at line 451 of file config.cpp.
const std::string & hazelcast::client::config::client_aws_config::get_secret_key | ( | ) | const |
Gets the secret key to access AWS.
Returns empty string if no access key is configured.
Definition at line 442 of file config.cpp.
const std::string & hazelcast::client::config::client_aws_config::get_security_group_name | ( | ) | const |
Gets the security group name.
If nothing has been configured, empty string is returned.
Definition at line 484 of file config.cpp.
const std::string & hazelcast::client::config::client_aws_config::get_tag_key | ( | ) | const |
Gets the tag key.
If nothing is specified, empty string is returned.
Definition at line 493 of file config.cpp.
const std::string & hazelcast::client::config::client_aws_config::get_tag_value | ( | ) | const |
Gets the tag value.
If nothing is specified, empty string is returned.
Definition at line 502 of file config.cpp.
bool hazelcast::client::config::client_aws_config::is_enabled | ( | ) | const |
Checks if the aws join mechanism is enabled.
Definition at line 475 of file config.cpp.
bool hazelcast::client::config::client_aws_config::is_inside_aws | ( | ) | const |
If client is inside aws, it will use private ip addresses directly, otherwise it will convert private ip addresses to public addresses internally by calling AWS API.
Definition at line 515 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_access_key | ( | const std::string & | access_key | ) |
Sets the access key to access AWS.
accessKey | the access key to access AWS |
illegal_argument | if accessKey is empty. |
Definition at line 437 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_enabled | ( | bool | enabled | ) |
Enables or disables the aws join mechanism.
enabled | true if enabled, false otherwise. |
Definition at line 469 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_host_header | ( | const std::string & | host_header | ) |
Sets the host header; the address where the EC2 API can be found.
hostHeader | the new host header; the address where the EC2 API can be found |
illegal_argument | if hostHeader is an empty string. |
Definition at line 464 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_iam_role | ( | const std::string & | iam_role | ) |
Sets the tag value.
See the filtering section above for more information.
iamRole | the IAM Role name. |
Definition at line 510 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_inside_aws | ( | bool | inside_aws | ) |
Set to true if client is inside aws environment Default value is false.
insideAws | isInsideAws |
Definition at line 519 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_region | ( | const std::string & | region | ) |
Sets the region where the EC2 instances running the Hazelcast members will be running.
region | the region where the EC2 instances running the Hazelcast members will be running |
illegal_argument | if region is empty. |
Definition at line 455 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_secret_key | ( | const std::string & | secret_key | ) |
Sets the secret key to access AWS.
secretKey | the secret key to access AWS |
illegal_argument | if secretKey is empty. |
Definition at line 446 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_security_group_name | ( | const std::string & | security_group_name | ) |
Sets the security group name.
See the filtering section above for more information.
securityGroupName | the security group name. |
Definition at line 479 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_tag_key | ( | const std::string & | tag_key | ) |
Sets the tag key.
See the filtering section above for more information.
tagKey | the tag key. See the filtering section above for more information. |
Definition at line 488 of file config.cpp.
client_aws_config & hazelcast::client::config::client_aws_config::set_tag_value | ( | const std::string & | tag_value | ) |
Sets the tag value.
See the filtering section above for more information.
tagValue | the tag value. See the filtering section above for more information. |
Definition at line 497 of file config.cpp.