#[non_exhaustive]pub struct TimestreamSettings {
pub database_name: String,
pub memory_duration: i32,
pub magnetic_duration: i32,
pub cdc_inserts_and_updates: Option<bool>,
pub enable_magnetic_store_writes: Option<bool>,
}
Expand description
Provides information that defines an Amazon Timestream endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.database_name: String
Database name for the endpoint.
memory_duration: i32
Set this attribute to specify the length of time to store all of the tables in memory that are migrated into Amazon Timestream from the source database. Time is measured in units of hours. When Timestream data comes in, it first resides in memory for the specified duration, which allows quick access to it.
magnetic_duration: i32
Set this attribute to specify the default magnetic duration applied to the Amazon Timestream tables in days. This is the number of days that records remain in magnetic store before being discarded. For more information, see Storage in the Amazon Timestream Developer Guide.
cdc_inserts_and_updates: Option<bool>
Set this attribute to true
to specify that DMS only applies inserts and updates, and not deletes. Amazon Timestream does not allow deleting records, so if this value is false
, DMS nulls out the corresponding record in the Timestream database rather than deleting it.
enable_magnetic_store_writes: Option<bool>
Set this attribute to true
to enable memory store writes. When this value is false
, DMS does not write records that are older in days than the value specified in MagneticDuration
, because Amazon Timestream does not allow memory writes by default. For more information, see Storage in the Amazon Timestream Developer Guide.
Implementations§
source§impl TimestreamSettings
impl TimestreamSettings
sourcepub fn database_name(&self) -> &str
pub fn database_name(&self) -> &str
Database name for the endpoint.
sourcepub fn memory_duration(&self) -> i32
pub fn memory_duration(&self) -> i32
Set this attribute to specify the length of time to store all of the tables in memory that are migrated into Amazon Timestream from the source database. Time is measured in units of hours. When Timestream data comes in, it first resides in memory for the specified duration, which allows quick access to it.
sourcepub fn magnetic_duration(&self) -> i32
pub fn magnetic_duration(&self) -> i32
Set this attribute to specify the default magnetic duration applied to the Amazon Timestream tables in days. This is the number of days that records remain in magnetic store before being discarded. For more information, see Storage in the Amazon Timestream Developer Guide.
sourcepub fn cdc_inserts_and_updates(&self) -> Option<bool>
pub fn cdc_inserts_and_updates(&self) -> Option<bool>
Set this attribute to true
to specify that DMS only applies inserts and updates, and not deletes. Amazon Timestream does not allow deleting records, so if this value is false
, DMS nulls out the corresponding record in the Timestream database rather than deleting it.
sourcepub fn enable_magnetic_store_writes(&self) -> Option<bool>
pub fn enable_magnetic_store_writes(&self) -> Option<bool>
Set this attribute to true
to enable memory store writes. When this value is false
, DMS does not write records that are older in days than the value specified in MagneticDuration
, because Amazon Timestream does not allow memory writes by default. For more information, see Storage in the Amazon Timestream Developer Guide.
source§impl TimestreamSettings
impl TimestreamSettings
sourcepub fn builder() -> TimestreamSettingsBuilder
pub fn builder() -> TimestreamSettingsBuilder
Creates a new builder-style object to manufacture TimestreamSettings
.
Trait Implementations§
source§impl Clone for TimestreamSettings
impl Clone for TimestreamSettings
source§fn clone(&self) -> TimestreamSettings
fn clone(&self) -> TimestreamSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimestreamSettings
impl Debug for TimestreamSettings
source§impl PartialEq for TimestreamSettings
impl PartialEq for TimestreamSettings
source§fn eq(&self, other: &TimestreamSettings) -> bool
fn eq(&self, other: &TimestreamSettings) -> bool
self
and other
values to be equal, and is used
by ==
.