Struct aws_sdk_opensearch::model::cluster_config::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ClusterConfig.
Implementations§
source§impl Builder
impl Builder
sourcepub fn instance_type(self, input: OpenSearchPartitionInstanceType) -> Self
pub fn instance_type(self, input: OpenSearchPartitionInstanceType) -> Self
Instance type of data nodes in the cluster.
sourcepub fn set_instance_type(
self,
input: Option<OpenSearchPartitionInstanceType>
) -> Self
pub fn set_instance_type(
self,
input: Option<OpenSearchPartitionInstanceType>
) -> Self
Instance type of data nodes in the cluster.
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
Number of dedicated master nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
Number of dedicated master nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
sourcepub fn dedicated_master_enabled(self, input: bool) -> Self
pub fn dedicated_master_enabled(self, input: bool) -> Self
Indicates whether dedicated master nodes are enabled for the cluster.True if the cluster will use a dedicated master node.False if the cluster will not.
sourcepub fn set_dedicated_master_enabled(self, input: Option<bool>) -> Self
pub fn set_dedicated_master_enabled(self, input: Option<bool>) -> Self
Indicates whether dedicated master nodes are enabled for the cluster.True if the cluster will use a dedicated master node.False if the cluster will not.
sourcepub fn zone_awareness_enabled(self, input: bool) -> Self
pub fn zone_awareness_enabled(self, input: bool) -> Self
Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
sourcepub fn set_zone_awareness_enabled(self, input: Option<bool>) -> Self
pub fn set_zone_awareness_enabled(self, input: Option<bool>) -> Self
Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
sourcepub fn zone_awareness_config(self, input: ZoneAwarenessConfig) -> Self
pub fn zone_awareness_config(self, input: ZoneAwarenessConfig) -> Self
Container for zone awareness configuration options. Only required if ZoneAwarenessEnabled is true.
sourcepub fn set_zone_awareness_config(
self,
input: Option<ZoneAwarenessConfig>
) -> Self
pub fn set_zone_awareness_config(
self,
input: Option<ZoneAwarenessConfig>
) -> Self
Container for zone awareness configuration options. Only required if ZoneAwarenessEnabled is true.
sourcepub fn dedicated_master_type(
self,
input: OpenSearchPartitionInstanceType
) -> Self
pub fn dedicated_master_type(
self,
input: OpenSearchPartitionInstanceType
) -> Self
OpenSearch Service instance type of the dedicated master nodes in the cluster.
sourcepub fn set_dedicated_master_type(
self,
input: Option<OpenSearchPartitionInstanceType>
) -> Self
pub fn set_dedicated_master_type(
self,
input: Option<OpenSearchPartitionInstanceType>
) -> Self
OpenSearch Service instance type of the dedicated master nodes in the cluster.
sourcepub fn dedicated_master_count(self, input: i32) -> Self
pub fn dedicated_master_count(self, input: i32) -> Self
Number of dedicated master nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
sourcepub fn set_dedicated_master_count(self, input: Option<i32>) -> Self
pub fn set_dedicated_master_count(self, input: Option<i32>) -> Self
Number of dedicated master nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
sourcepub fn warm_enabled(self, input: bool) -> Self
pub fn warm_enabled(self, input: bool) -> Self
Whether to enable warm storage for the cluster.
sourcepub fn set_warm_enabled(self, input: Option<bool>) -> Self
pub fn set_warm_enabled(self, input: Option<bool>) -> Self
Whether to enable warm storage for the cluster.
sourcepub fn warm_type(self, input: OpenSearchWarmPartitionInstanceType) -> Self
pub fn warm_type(self, input: OpenSearchWarmPartitionInstanceType) -> Self
The instance type for the cluster's warm nodes.
sourcepub fn set_warm_type(
self,
input: Option<OpenSearchWarmPartitionInstanceType>
) -> Self
pub fn set_warm_type(
self,
input: Option<OpenSearchWarmPartitionInstanceType>
) -> Self
The instance type for the cluster's warm nodes.
sourcepub fn warm_count(self, input: i32) -> Self
pub fn warm_count(self, input: i32) -> Self
The number of warm nodes in the cluster.
sourcepub fn set_warm_count(self, input: Option<i32>) -> Self
pub fn set_warm_count(self, input: Option<i32>) -> Self
The number of warm nodes in the cluster.
sourcepub fn cold_storage_options(self, input: ColdStorageOptions) -> Self
pub fn cold_storage_options(self, input: ColdStorageOptions) -> Self
Container for cold storage configuration options.
sourcepub fn set_cold_storage_options(self, input: Option<ColdStorageOptions>) -> Self
pub fn set_cold_storage_options(self, input: Option<ColdStorageOptions>) -> Self
Container for cold storage configuration options.
sourcepub fn build(self) -> ClusterConfig
pub fn build(self) -> ClusterConfig
Consumes the builder and constructs a ClusterConfig.