Struct aws_sdk_elasticache::model::replication_group::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ReplicationGroup
Implementations
sourceimpl Builder
impl Builder
sourcepub fn replication_group_id(self, input: impl Into<String>) -> Self
pub fn replication_group_id(self, input: impl Into<String>) -> Self
The identifier for the replication group.
sourcepub fn set_replication_group_id(self, input: Option<String>) -> Self
pub fn set_replication_group_id(self, input: Option<String>) -> Self
The identifier for the replication group.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The user supplied description of the replication group.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The user supplied description of the replication group.
sourcepub fn global_replication_group_info(
self,
input: GlobalReplicationGroupInfo
) -> Self
pub fn global_replication_group_info(
self,
input: GlobalReplicationGroupInfo
) -> Self
The name of the Global datastore and role of this replication group in the Global datastore.
sourcepub fn set_global_replication_group_info(
self,
input: Option<GlobalReplicationGroupInfo>
) -> Self
pub fn set_global_replication_group_info(
self,
input: Option<GlobalReplicationGroupInfo>
) -> Self
The name of the Global datastore and role of this replication group in the Global datastore.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The current state of this replication group - creating
, available
, modifying
, deleting
, create-failed
, snapshotting
.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The current state of this replication group - creating
, available
, modifying
, deleting
, create-failed
, snapshotting
.
sourcepub fn pending_modified_values(
self,
input: ReplicationGroupPendingModifiedValues
) -> Self
pub fn pending_modified_values(
self,
input: ReplicationGroupPendingModifiedValues
) -> Self
A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
sourcepub fn set_pending_modified_values(
self,
input: Option<ReplicationGroupPendingModifiedValues>
) -> Self
pub fn set_pending_modified_values(
self,
input: Option<ReplicationGroupPendingModifiedValues>
) -> Self
A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
sourcepub fn member_clusters(self, input: impl Into<String>) -> Self
pub fn member_clusters(self, input: impl Into<String>) -> Self
Appends an item to member_clusters
.
To override the contents of this collection use set_member_clusters
.
The names of all the cache clusters that are part of this replication group.
sourcepub fn set_member_clusters(self, input: Option<Vec<String>>) -> Self
pub fn set_member_clusters(self, input: Option<Vec<String>>) -> Self
The names of all the cache clusters that are part of this replication group.
sourcepub fn node_groups(self, input: NodeGroup) -> Self
pub fn node_groups(self, input: NodeGroup) -> Self
Appends an item to node_groups
.
To override the contents of this collection use set_node_groups
.
A list of node groups in this replication group. For Redis (cluster mode disabled) replication groups, this is a single-element list. For Redis (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).
sourcepub fn set_node_groups(self, input: Option<Vec<NodeGroup>>) -> Self
pub fn set_node_groups(self, input: Option<Vec<NodeGroup>>) -> Self
A list of node groups in this replication group. For Redis (cluster mode disabled) replication groups, this is a single-element list. For Redis (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).
sourcepub fn snapshotting_cluster_id(self, input: impl Into<String>) -> Self
pub fn snapshotting_cluster_id(self, input: impl Into<String>) -> Self
The cluster ID that is used as the daily snapshot source for the replication group.
sourcepub fn set_snapshotting_cluster_id(self, input: Option<String>) -> Self
pub fn set_snapshotting_cluster_id(self, input: Option<String>) -> Self
The cluster ID that is used as the daily snapshot source for the replication group.
sourcepub fn automatic_failover(self, input: AutomaticFailoverStatus) -> Self
pub fn automatic_failover(self, input: AutomaticFailoverStatus) -> Self
Indicates the status of automatic failover for this Redis replication group.
sourcepub fn set_automatic_failover(
self,
input: Option<AutomaticFailoverStatus>
) -> Self
pub fn set_automatic_failover(
self,
input: Option<AutomaticFailoverStatus>
) -> Self
Indicates the status of automatic failover for this Redis replication group.
sourcepub fn multi_az(self, input: MultiAzStatus) -> Self
pub fn multi_az(self, input: MultiAzStatus) -> Self
A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ
sourcepub fn set_multi_az(self, input: Option<MultiAzStatus>) -> Self
pub fn set_multi_az(self, input: Option<MultiAzStatus>) -> Self
A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ
sourcepub fn configuration_endpoint(self, input: Endpoint) -> Self
pub fn configuration_endpoint(self, input: Endpoint) -> Self
The configuration endpoint for this replication group. Use the configuration endpoint to connect to this replication group.
sourcepub fn set_configuration_endpoint(self, input: Option<Endpoint>) -> Self
pub fn set_configuration_endpoint(self, input: Option<Endpoint>) -> Self
The configuration endpoint for this replication group. Use the configuration endpoint to connect to this replication group.
sourcepub fn snapshot_retention_limit(self, input: i32) -> Self
pub fn snapshot_retention_limit(self, input: i32) -> Self
The number of days for which ElastiCache retains automatic cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5 days before being deleted.
If the value of SnapshotRetentionLimit
is set to zero (0), backups are turned off.
sourcepub fn set_snapshot_retention_limit(self, input: Option<i32>) -> Self
pub fn set_snapshot_retention_limit(self, input: Option<i32>) -> Self
The number of days for which ElastiCache retains automatic cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5 days before being deleted.
If the value of SnapshotRetentionLimit
is set to zero (0), backups are turned off.
sourcepub fn snapshot_window(self, input: impl Into<String>) -> Self
pub fn snapshot_window(self, input: impl Into<String>) -> Self
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
Example: 05:00-09:00
If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
This parameter is only valid if the Engine
parameter is redis
.
sourcepub fn set_snapshot_window(self, input: Option<String>) -> Self
pub fn set_snapshot_window(self, input: Option<String>) -> Self
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
Example: 05:00-09:00
If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
This parameter is only valid if the Engine
parameter is redis
.
sourcepub fn cluster_enabled(self, input: bool) -> Self
pub fn cluster_enabled(self, input: bool) -> Self
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).
Valid values: true
| false
sourcepub fn set_cluster_enabled(self, input: Option<bool>) -> Self
pub fn set_cluster_enabled(self, input: Option<bool>) -> Self
A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).
Valid values: true
| false
sourcepub fn cache_node_type(self, input: impl Into<String>) -> Self
pub fn cache_node_type(self, input: impl Into<String>) -> Self
The name of the compute and memory capacity node type for each node in the replication group.
sourcepub fn set_cache_node_type(self, input: Option<String>) -> Self
pub fn set_cache_node_type(self, input: Option<String>) -> Self
The name of the compute and memory capacity node type for each node in the replication group.
sourcepub fn auth_token_enabled(self, input: bool) -> Self
pub fn auth_token_enabled(self, input: bool) -> Self
A flag that enables using an AuthToken
(password) when issuing Redis commands.
Default: false
sourcepub fn set_auth_token_enabled(self, input: Option<bool>) -> Self
pub fn set_auth_token_enabled(self, input: Option<bool>) -> Self
A flag that enables using an AuthToken
(password) when issuing Redis commands.
Default: false
sourcepub fn auth_token_last_modified_date(self, input: DateTime) -> Self
pub fn auth_token_last_modified_date(self, input: DateTime) -> Self
The date the auth token was last modified
sourcepub fn set_auth_token_last_modified_date(self, input: Option<DateTime>) -> Self
pub fn set_auth_token_last_modified_date(self, input: Option<DateTime>) -> Self
The date the auth token was last modified
sourcepub fn transit_encryption_enabled(self, input: bool) -> Self
pub fn transit_encryption_enabled(self, input: bool) -> Self
A flag that enables in-transit encryption when set to true
.
You cannot modify the value of TransitEncryptionEnabled
after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled
to true
when you create a cluster.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
Default: false
sourcepub fn set_transit_encryption_enabled(self, input: Option<bool>) -> Self
pub fn set_transit_encryption_enabled(self, input: Option<bool>) -> Self
A flag that enables in-transit encryption when set to true
.
You cannot modify the value of TransitEncryptionEnabled
after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled
to true
when you create a cluster.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
Default: false
sourcepub fn at_rest_encryption_enabled(self, input: bool) -> Self
pub fn at_rest_encryption_enabled(self, input: bool) -> Self
A flag that enables encryption at-rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the cluster is created. To enable encryption at-rest on a cluster you must set AtRestEncryptionEnabled
to true
when you create a cluster.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
Default: false
sourcepub fn set_at_rest_encryption_enabled(self, input: Option<bool>) -> Self
pub fn set_at_rest_encryption_enabled(self, input: Option<bool>) -> Self
A flag that enables encryption at-rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the cluster is created. To enable encryption at-rest on a cluster you must set AtRestEncryptionEnabled
to true
when you create a cluster.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
Default: false
sourcepub fn member_clusters_outpost_arns(self, input: impl Into<String>) -> Self
pub fn member_clusters_outpost_arns(self, input: impl Into<String>) -> Self
Appends an item to member_clusters_outpost_arns
.
To override the contents of this collection use set_member_clusters_outpost_arns
.
The outpost ARNs of the replication group's member clusters.
sourcepub fn set_member_clusters_outpost_arns(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_member_clusters_outpost_arns(
self,
input: Option<Vec<String>>
) -> Self
The outpost ARNs of the replication group's member clusters.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of the KMS key used to encrypt the disk in the cluster.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of the KMS key used to encrypt the disk in the cluster.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN (Amazon Resource Name) of the replication group.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN (Amazon Resource Name) of the replication group.
sourcepub fn user_group_ids(self, input: impl Into<String>) -> Self
pub fn user_group_ids(self, input: impl Into<String>) -> Self
Appends an item to user_group_ids
.
To override the contents of this collection use set_user_group_ids
.
The ID of the user group associated to the replication group.
sourcepub fn set_user_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_user_group_ids(self, input: Option<Vec<String>>) -> Self
The ID of the user group associated to the replication group.
sourcepub fn log_delivery_configurations(
self,
input: LogDeliveryConfiguration
) -> Self
pub fn log_delivery_configurations(
self,
input: LogDeliveryConfiguration
) -> Self
Appends an item to log_delivery_configurations
.
To override the contents of this collection use set_log_delivery_configurations
.
Returns the destination, format and type of the logs.
sourcepub fn set_log_delivery_configurations(
self,
input: Option<Vec<LogDeliveryConfiguration>>
) -> Self
pub fn set_log_delivery_configurations(
self,
input: Option<Vec<LogDeliveryConfiguration>>
) -> Self
Returns the destination, format and type of the logs.
sourcepub fn replication_group_create_time(self, input: DateTime) -> Self
pub fn replication_group_create_time(self, input: DateTime) -> Self
The date and time when the cluster was created.
sourcepub fn set_replication_group_create_time(self, input: Option<DateTime>) -> Self
pub fn set_replication_group_create_time(self, input: Option<DateTime>) -> Self
The date and time when the cluster was created.
sourcepub fn data_tiering(self, input: DataTieringStatus) -> Self
pub fn data_tiering(self, input: DataTieringStatus) -> Self
Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
sourcepub fn set_data_tiering(self, input: Option<DataTieringStatus>) -> Self
pub fn set_data_tiering(self, input: Option<DataTieringStatus>) -> Self
Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
sourcepub fn build(self) -> ReplicationGroup
pub fn build(self) -> ReplicationGroup
Consumes the builder and constructs a ReplicationGroup
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more