Struct aws_sdk_dynamodb::model::replica_description::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ReplicaDescription
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn region_name(self, input: impl Into<String>) -> Self
pub fn region_name(self, input: impl Into<String>) -> Self
The name of the Region.
sourcepub fn set_region_name(self, input: Option<String>) -> Self
pub fn set_region_name(self, input: Option<String>) -> Self
The name of the Region.
sourcepub fn replica_status(self, input: ReplicaStatus) -> Self
pub fn replica_status(self, input: ReplicaStatus) -> Self
The current state of the replica:
-
CREATING
- The replica is being created. -
UPDATING
- The replica is being updated. -
DELETING
- The replica is being deleted. -
ACTIVE
- The replica is ready for use. -
REGION_DISABLED
- The replica is inaccessible because the Amazon Web Services Region has been disabled.If the Amazon Web Services Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.
-
INACCESSIBLE_ENCRYPTION_CREDENTIALS
- The KMS key used to encrypt the table is inaccessible.If the KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.
sourcepub fn set_replica_status(self, input: Option<ReplicaStatus>) -> Self
pub fn set_replica_status(self, input: Option<ReplicaStatus>) -> Self
The current state of the replica:
-
CREATING
- The replica is being created. -
UPDATING
- The replica is being updated. -
DELETING
- The replica is being deleted. -
ACTIVE
- The replica is ready for use. -
REGION_DISABLED
- The replica is inaccessible because the Amazon Web Services Region has been disabled.If the Amazon Web Services Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.
-
INACCESSIBLE_ENCRYPTION_CREDENTIALS
- The KMS key used to encrypt the table is inaccessible.If the KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.
sourcepub fn replica_status_description(self, input: impl Into<String>) -> Self
pub fn replica_status_description(self, input: impl Into<String>) -> Self
Detailed information about the replica status.
sourcepub fn set_replica_status_description(self, input: Option<String>) -> Self
pub fn set_replica_status_description(self, input: Option<String>) -> Self
Detailed information about the replica status.
sourcepub fn replica_status_percent_progress(self, input: impl Into<String>) -> Self
pub fn replica_status_percent_progress(self, input: impl Into<String>) -> Self
Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.
sourcepub fn set_replica_status_percent_progress(self, input: Option<String>) -> Self
pub fn set_replica_status_percent_progress(self, input: Option<String>) -> Self
Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.
sourcepub fn kms_master_key_id(self, input: impl Into<String>) -> Self
pub fn kms_master_key_id(self, input: impl Into<String>) -> Self
The KMS key of the replica that will be used for KMS encryption.
sourcepub fn set_kms_master_key_id(self, input: Option<String>) -> Self
pub fn set_kms_master_key_id(self, input: Option<String>) -> Self
The KMS key of the replica that will be used for KMS encryption.
sourcepub fn provisioned_throughput_override(
self,
input: ProvisionedThroughputOverride
) -> Self
pub fn provisioned_throughput_override(
self,
input: ProvisionedThroughputOverride
) -> Self
Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.
sourcepub fn set_provisioned_throughput_override(
self,
input: Option<ProvisionedThroughputOverride>
) -> Self
pub fn set_provisioned_throughput_override(
self,
input: Option<ProvisionedThroughputOverride>
) -> Self
Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.
sourcepub fn global_secondary_indexes(
self,
input: ReplicaGlobalSecondaryIndexDescription
) -> Self
pub fn global_secondary_indexes(
self,
input: ReplicaGlobalSecondaryIndexDescription
) -> Self
Appends an item to global_secondary_indexes
.
To override the contents of this collection use set_global_secondary_indexes
.
Replica-specific global secondary index settings.
sourcepub fn set_global_secondary_indexes(
self,
input: Option<Vec<ReplicaGlobalSecondaryIndexDescription>>
) -> Self
pub fn set_global_secondary_indexes(
self,
input: Option<Vec<ReplicaGlobalSecondaryIndexDescription>>
) -> Self
Replica-specific global secondary index settings.
sourcepub fn replica_inaccessible_date_time(self, input: DateTime) -> Self
pub fn replica_inaccessible_date_time(self, input: DateTime) -> Self
The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the ReplicaStatus
property.
sourcepub fn set_replica_inaccessible_date_time(self, input: Option<DateTime>) -> Self
pub fn set_replica_inaccessible_date_time(self, input: Option<DateTime>) -> Self
The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the ReplicaStatus
property.
sourcepub fn replica_table_class_summary(self, input: TableClassSummary) -> Self
pub fn replica_table_class_summary(self, input: TableClassSummary) -> Self
Contains details of the table class.
sourcepub fn set_replica_table_class_summary(
self,
input: Option<TableClassSummary>
) -> Self
pub fn set_replica_table_class_summary(
self,
input: Option<TableClassSummary>
) -> Self
Contains details of the table class.
sourcepub fn build(self) -> ReplicaDescription
pub fn build(self) -> ReplicaDescription
Consumes the builder and constructs a ReplicaDescription
.