22#include "hazelcast/util/export.h"
24#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
26#pragma warning(disable : 4251)
53class HAZELCAST_API client_aws_config
114 client_aws_config&
set_region(
const std::string& region);
155 const std::string& security_group_name);
174 client_aws_config&
set_tag_key(
const std::string& tag_key);
192 client_aws_config&
set_tag_value(
const std::string& tag_value);
216 client_aws_config&
set_iam_role(
const std::string& iam_role);
237 std::string access_key_;
238 std::string secret_key_;
240 std::string security_group_name_;
241 std::string tag_key_;
242 std::string tag_value_;
243 std::string host_header_;
244 std::string iam_role_;
249std::ostream HAZELCAST_API&
255#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
The client_aws_config contains the configuration for client to connect to nodes in aws environment.
const std::string & get_access_key() const
Gets the access key to access AWS.
const std::string & get_tag_key() const
Gets the tag key.
const std::string & get_security_group_name() const
Gets the security group name.
const std::string & get_region() const
Gets the region where the EC2 instances running the Hazelcast members will be running.
const std::string & get_host_header() const
Gets the host header; the address where the EC2 API can be found.
client_aws_config & set_secret_key(const std::string &secret_key)
Sets the secret key to access AWS.
client_aws_config & set_host_header(const std::string &host_header)
Sets the host header; the address where the EC2 API can be found.
client_aws_config & set_tag_key(const std::string &tag_key)
Sets the tag key.
client_aws_config & set_iam_role(const std::string &iam_role)
Sets the tag value.
client_aws_config & set_inside_aws(bool inside_aws)
Set to true if client is inside aws environment Default value is false.
client_aws_config & set_region(const std::string ®ion)
Sets the region where the EC2 instances running the Hazelcast members will be running.
bool is_enabled() const
Checks if the aws join mechanism is enabled.
bool is_inside_aws() const
If client is inside aws, it will use private ip addresses directly, otherwise it will convert private...
const std::string & get_secret_key() const
Gets the secret key to access AWS.
client_aws_config & set_enabled(bool enabled)
Enables or disables the aws join mechanism.
const std::string & get_tag_value() const
Gets the tag value.
client_aws_config & set_access_key(const std::string &access_key)
Sets the access key to access AWS.
client_aws_config & set_tag_value(const std::string &tag_value)
Sets the tag value.
const std::string & get_iam_role() const
Gets the iamRole name.
client_aws_config & set_security_group_name(const std::string &security_group_name)
Sets the security group name.