19 19 | /// <li>
|
20 20 | /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the Amazon Web Services Region has been disabled.</p><note>
|
21 21 | /// <p>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.</p>
|
22 22 | /// </note></li>
|
23 23 | /// <li>
|
24 24 | /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The KMS key used to encrypt the table is inaccessible.</p><note>
|
25 25 | /// <p>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.</p>
|
26 26 | /// </note></li>
|
27 27 | /// </ul>
|
28 28 | pub replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
|
29 + | /// <p>The Amazon Resource Name (ARN) of the global table replica.</p>
|
30 + | pub replica_arn: ::std::option::Option<::std::string::String>,
|
29 31 | /// <p>Detailed information about the replica status.</p>
|
30 32 | pub replica_status_description: ::std::option::Option<::std::string::String>,
|
31 33 | /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
32 34 | pub replica_status_percent_progress: ::std::option::Option<::std::string::String>,
|
33 35 | /// <p>The KMS key of the replica that will be used for KMS encryption.</p>
|
34 36 | pub kms_master_key_id: ::std::option::Option<::std::string::String>,
|
35 37 | /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
36 38 | pub provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
|
37 39 | /// <p>Overrides the maximum on-demand throughput settings for the specified replica table.</p>
|
38 40 | pub on_demand_throughput_override: ::std::option::Option<crate::types::OnDemandThroughputOverride>,
|
39 41 | /// <p>Represents the warm throughput value for this replica.</p>
|
40 42 | pub warm_throughput: ::std::option::Option<crate::types::TableWarmThroughputDescription>,
|
41 43 | /// <p>Replica-specific global secondary index settings.</p>
|
42 44 | pub global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>>,
|
43 45 | /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
44 46 | pub replica_inaccessible_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
45 47 | /// <p>Contains details of the table class.</p>
|
46 48 | pub replica_table_class_summary: ::std::option::Option<crate::types::TableClassSummary>,
|
49 + | /// <p>Indicates one of the settings synchronization modes for the global table replica:</p>
|
50 + | /// <ul>
|
51 + | /// <li>
|
52 + | /// <p><code>ENABLED</code>: Indicates that the settings synchronization mode for the global table replica is enabled.</p></li>
|
53 + | /// <li>
|
54 + | /// <p><code>DISABLED</code>: Indicates that the settings synchronization mode for the global table replica is disabled.</p></li>
|
55 + | /// <li>
|
56 + | /// <p><code>ENABLED_WITH_OVERRIDES</code>: This mode is set by default for a same account global table. Indicates that certain global table settings can be overridden.</p></li>
|
57 + | /// </ul>
|
58 + | pub global_table_settings_replication_mode: ::std::option::Option<crate::types::GlobalTableSettingsReplicationMode>,
|
47 59 | }
|
48 60 | impl ReplicaDescription {
|
49 61 | /// <p>The name of the Region.</p>
|
50 62 | pub fn region_name(&self) -> ::std::option::Option<&str> {
|
51 63 | self.region_name.as_deref()
|
52 64 | }
|
53 65 | /// <p>The current state of the replica:</p>
|
54 66 | /// <ul>
|
55 67 | /// <li>
|
56 68 | /// <p><code>CREATING</code> - The replica is being created.</p></li>
|
57 69 | /// <li>
|
58 70 | /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
|
59 71 | /// <li>
|
60 72 | /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
|
61 73 | /// <li>
|
62 74 | /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
|
63 75 | /// <li>
|
64 76 | /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the Amazon Web Services Region has been disabled.</p><note>
|
65 77 | /// <p>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.</p>
|
66 78 | /// </note></li>
|
67 79 | /// <li>
|
68 80 | /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The KMS key used to encrypt the table is inaccessible.</p><note>
|
69 81 | /// <p>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.</p>
|
70 82 | /// </note></li>
|
71 83 | /// </ul>
|
72 84 | pub fn replica_status(&self) -> ::std::option::Option<&crate::types::ReplicaStatus> {
|
73 85 | self.replica_status.as_ref()
|
74 86 | }
|
87 + | /// <p>The Amazon Resource Name (ARN) of the global table replica.</p>
|
88 + | pub fn replica_arn(&self) -> ::std::option::Option<&str> {
|
89 + | self.replica_arn.as_deref()
|
90 + | }
|
75 91 | /// <p>Detailed information about the replica status.</p>
|
76 92 | pub fn replica_status_description(&self) -> ::std::option::Option<&str> {
|
77 93 | self.replica_status_description.as_deref()
|
78 94 | }
|
79 95 | /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
80 96 | pub fn replica_status_percent_progress(&self) -> ::std::option::Option<&str> {
|
81 97 | self.replica_status_percent_progress.as_deref()
|
82 98 | }
|
83 99 | /// <p>The KMS key of the replica that will be used for KMS encryption.</p>
|
84 100 | pub fn kms_master_key_id(&self) -> ::std::option::Option<&str> {
|
85 101 | self.kms_master_key_id.as_deref()
|
86 102 | }
|
87 103 | /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
88 104 | pub fn provisioned_throughput_override(&self) -> ::std::option::Option<&crate::types::ProvisionedThroughputOverride> {
|
89 105 | self.provisioned_throughput_override.as_ref()
|
90 106 | }
|
91 107 | /// <p>Overrides the maximum on-demand throughput settings for the specified replica table.</p>
|
92 108 | pub fn on_demand_throughput_override(&self) -> ::std::option::Option<&crate::types::OnDemandThroughputOverride> {
|
93 109 | self.on_demand_throughput_override.as_ref()
|
94 110 | }
|
95 111 | /// <p>Represents the warm throughput value for this replica.</p>
|
96 112 | pub fn warm_throughput(&self) -> ::std::option::Option<&crate::types::TableWarmThroughputDescription> {
|
97 113 | self.warm_throughput.as_ref()
|
98 114 | }
|
99 115 | /// <p>Replica-specific global secondary index settings.</p>
|
100 116 | ///
|
101 117 | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.global_secondary_indexes.is_none()`.
|
102 118 | pub fn global_secondary_indexes(&self) -> &[crate::types::ReplicaGlobalSecondaryIndexDescription] {
|
103 119 | self.global_secondary_indexes.as_deref().unwrap_or_default()
|
104 120 | }
|
105 121 | /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
106 122 | pub fn replica_inaccessible_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
107 123 | self.replica_inaccessible_date_time.as_ref()
|
108 124 | }
|
109 125 | /// <p>Contains details of the table class.</p>
|
110 126 | pub fn replica_table_class_summary(&self) -> ::std::option::Option<&crate::types::TableClassSummary> {
|
111 127 | self.replica_table_class_summary.as_ref()
|
112 128 | }
|
129 + | /// <p>Indicates one of the settings synchronization modes for the global table replica:</p>
|
130 + | /// <ul>
|
131 + | /// <li>
|
132 + | /// <p><code>ENABLED</code>: Indicates that the settings synchronization mode for the global table replica is enabled.</p></li>
|
133 + | /// <li>
|
134 + | /// <p><code>DISABLED</code>: Indicates that the settings synchronization mode for the global table replica is disabled.</p></li>
|
135 + | /// <li>
|
136 + | /// <p><code>ENABLED_WITH_OVERRIDES</code>: This mode is set by default for a same account global table. Indicates that certain global table settings can be overridden.</p></li>
|
137 + | /// </ul>
|
138 + | pub fn global_table_settings_replication_mode(&self) -> ::std::option::Option<&crate::types::GlobalTableSettingsReplicationMode> {
|
139 + | self.global_table_settings_replication_mode.as_ref()
|
140 + | }
|
113 141 | }
|
114 142 | impl ReplicaDescription {
|
115 143 | /// Creates a new builder-style object to manufacture [`ReplicaDescription`](crate::types::ReplicaDescription).
|
116 144 | pub fn builder() -> crate::types::builders::ReplicaDescriptionBuilder {
|
117 145 | crate::types::builders::ReplicaDescriptionBuilder::default()
|
118 146 | }
|
119 147 | }
|
120 148 |
|
121 149 | /// A builder for [`ReplicaDescription`](crate::types::ReplicaDescription).
|
122 150 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
123 151 | #[non_exhaustive]
|
124 152 | pub struct ReplicaDescriptionBuilder {
|
125 153 | pub(crate) region_name: ::std::option::Option<::std::string::String>,
|
126 154 | pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
|
155 + | pub(crate) replica_arn: ::std::option::Option<::std::string::String>,
|
127 156 | pub(crate) replica_status_description: ::std::option::Option<::std::string::String>,
|
128 157 | pub(crate) replica_status_percent_progress: ::std::option::Option<::std::string::String>,
|
129 158 | pub(crate) kms_master_key_id: ::std::option::Option<::std::string::String>,
|
130 159 | pub(crate) provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
|
131 160 | pub(crate) on_demand_throughput_override: ::std::option::Option<crate::types::OnDemandThroughputOverride>,
|
132 161 | pub(crate) warm_throughput: ::std::option::Option<crate::types::TableWarmThroughputDescription>,
|
133 162 | pub(crate) global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>>,
|
134 163 | pub(crate) replica_inaccessible_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
135 164 | pub(crate) replica_table_class_summary: ::std::option::Option<crate::types::TableClassSummary>,
|
165 + | pub(crate) global_table_settings_replication_mode: ::std::option::Option<crate::types::GlobalTableSettingsReplicationMode>,
|
136 166 | }
|
137 167 | impl ReplicaDescriptionBuilder {
|
138 168 | /// <p>The name of the Region.</p>
|
139 169 | pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
140 170 | self.region_name = ::std::option::Option::Some(input.into());
|
141 171 | self
|
142 172 | }
|
143 173 | /// <p>The name of the Region.</p>
|
144 174 | pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
145 175 | self.region_name = input;
|
345 389 | }
|
346 390 | /// <p>Contains details of the table class.</p>
|
347 391 | pub fn set_replica_table_class_summary(mut self, input: ::std::option::Option<crate::types::TableClassSummary>) -> Self {
|
348 392 | self.replica_table_class_summary = input;
|
349 393 | self
|
350 394 | }
|
351 395 | /// <p>Contains details of the table class.</p>
|
352 396 | pub fn get_replica_table_class_summary(&self) -> &::std::option::Option<crate::types::TableClassSummary> {
|
353 397 | &self.replica_table_class_summary
|
354 398 | }
|
399 + | /// <p>Indicates one of the settings synchronization modes for the global table replica:</p>
|
400 + | /// <ul>
|
401 + | /// <li>
|
402 + | /// <p><code>ENABLED</code>: Indicates that the settings synchronization mode for the global table replica is enabled.</p></li>
|
403 + | /// <li>
|
404 + | /// <p><code>DISABLED</code>: Indicates that the settings synchronization mode for the global table replica is disabled.</p></li>
|
405 + | /// <li>
|
406 + | /// <p><code>ENABLED_WITH_OVERRIDES</code>: This mode is set by default for a same account global table. Indicates that certain global table settings can be overridden.</p></li>
|
407 + | /// </ul>
|
408 + | pub fn global_table_settings_replication_mode(mut self, input: crate::types::GlobalTableSettingsReplicationMode) -> Self {
|
409 + | self.global_table_settings_replication_mode = ::std::option::Option::Some(input);
|
410 + | self
|
411 + | }
|
412 + | /// <p>Indicates one of the settings synchronization modes for the global table replica:</p>
|
413 + | /// <ul>
|
414 + | /// <li>
|
415 + | /// <p><code>ENABLED</code>: Indicates that the settings synchronization mode for the global table replica is enabled.</p></li>
|
416 + | /// <li>
|
417 + | /// <p><code>DISABLED</code>: Indicates that the settings synchronization mode for the global table replica is disabled.</p></li>
|
418 + | /// <li>
|
419 + | /// <p><code>ENABLED_WITH_OVERRIDES</code>: This mode is set by default for a same account global table. Indicates that certain global table settings can be overridden.</p></li>
|
420 + | /// </ul>
|
421 + | pub fn set_global_table_settings_replication_mode(
|
422 + | mut self,
|
423 + | input: ::std::option::Option<crate::types::GlobalTableSettingsReplicationMode>,
|
424 + | ) -> Self {
|
425 + | self.global_table_settings_replication_mode = input;
|
426 + | self
|
427 + | }
|
428 + | /// <p>Indicates one of the settings synchronization modes for the global table replica:</p>
|
429 + | /// <ul>
|
430 + | /// <li>
|
431 + | /// <p><code>ENABLED</code>: Indicates that the settings synchronization mode for the global table replica is enabled.</p></li>
|
432 + | /// <li>
|
433 + | /// <p><code>DISABLED</code>: Indicates that the settings synchronization mode for the global table replica is disabled.</p></li>
|
434 + | /// <li>
|
435 + | /// <p><code>ENABLED_WITH_OVERRIDES</code>: This mode is set by default for a same account global table. Indicates that certain global table settings can be overridden.</p></li>
|
436 + | /// </ul>
|
437 + | pub fn get_global_table_settings_replication_mode(&self) -> &::std::option::Option<crate::types::GlobalTableSettingsReplicationMode> {
|
438 + | &self.global_table_settings_replication_mode
|
439 + | }
|
355 440 | /// Consumes the builder and constructs a [`ReplicaDescription`](crate::types::ReplicaDescription).
|
356 441 | pub fn build(self) -> crate::types::ReplicaDescription {
|
357 442 | crate::types::ReplicaDescription {
|
358 443 | region_name: self.region_name,
|
359 444 | replica_status: self.replica_status,
|
445 + | replica_arn: self.replica_arn,
|
360 446 | replica_status_description: self.replica_status_description,
|
361 447 | replica_status_percent_progress: self.replica_status_percent_progress,
|
362 448 | kms_master_key_id: self.kms_master_key_id,
|
363 449 | provisioned_throughput_override: self.provisioned_throughput_override,
|
364 450 | on_demand_throughput_override: self.on_demand_throughput_override,
|
365 451 | warm_throughput: self.warm_throughput,
|
366 452 | global_secondary_indexes: self.global_secondary_indexes,
|
367 453 | replica_inaccessible_date_time: self.replica_inaccessible_date_time,
|
368 454 | replica_table_class_summary: self.replica_table_class_summary,
|
455 + | global_table_settings_replication_mode: self.global_table_settings_replication_mode,
|
369 456 | }
|
370 457 | }
|
371 458 | }
|