pub struct TimestreamWriteState {
pub databases: HashMap<String, Database>,
pub tables: HashMap<(String, String), Table>,
pub batch_load_tasks: HashMap<String, BatchLoadTask>,
}Expand description
In-memory state for the Timestream Write service.
Fields§
§databases: HashMap<String, Database>Databases keyed by database name.
tables: HashMap<(String, String), Table>Tables keyed by (database_name, table_name).
batch_load_tasks: HashMap<String, BatchLoadTask>Batch load tasks keyed by task_id.
Implementations§
Source§impl TimestreamWriteState
impl TimestreamWriteState
pub fn create_database( &mut self, database_name: &str, account_id: &str, region: &str, kms_key_id: Option<&str>, ) -> Result<&Database, TimestreamWriteError>
pub fn describe_database( &self, database_name: &str, ) -> Result<&Database, TimestreamWriteError>
pub fn delete_database( &mut self, database_name: &str, ) -> Result<(), TimestreamWriteError>
pub fn list_databases(&self) -> Vec<&Database>
pub fn update_database( &mut self, database_name: &str, kms_key_id: &str, ) -> Result<&Database, TimestreamWriteError>
pub fn create_table( &mut self, database_name: &str, table_name: &str, account_id: &str, region: &str, retention_properties: Option<RetentionProperties>, magnetic_store_write_properties: Option<MagneticStoreWriteProperties>, ) -> Result<&Table, TimestreamWriteError>
pub fn describe_table( &self, database_name: &str, table_name: &str, ) -> Result<&Table, TimestreamWriteError>
pub fn delete_table( &mut self, database_name: &str, table_name: &str, ) -> Result<(), TimestreamWriteError>
pub fn list_tables( &self, database_name: &str, ) -> Result<Vec<&Table>, TimestreamWriteError>
pub fn update_table( &mut self, database_name: &str, table_name: &str, retention_properties: Option<RetentionProperties>, magnetic_store_write_properties: Option<MagneticStoreWriteProperties>, ) -> Result<&Table, TimestreamWriteError>
pub fn write_records( &mut self, database_name: &str, table_name: &str, records: Vec<Record>, ) -> Result<i32, TimestreamWriteError>
pub fn tag_resource( &mut self, resource_arn: &str, tags: HashMap<String, String>, ) -> Result<(), TimestreamWriteError>
pub fn untag_resource( &mut self, resource_arn: &str, tag_keys: &[String], ) -> Result<(), TimestreamWriteError>
pub fn create_batch_load_task( &mut self, task_id: String, database_name: &str, table_name: &str, data_source_configuration: Value, report_configuration: Value, data_model_configuration: Option<Value>, ) -> &BatchLoadTask
pub fn describe_batch_load_task( &self, task_id: &str, ) -> Result<&BatchLoadTask, TimestreamWriteError>
pub fn list_batch_load_tasks( &self, task_status_filter: Option<&str>, ) -> Vec<&BatchLoadTask>
pub fn resume_batch_load_task( &mut self, task_id: &str, ) -> Result<(), TimestreamWriteError>
Trait Implementations§
Source§impl Debug for TimestreamWriteState
impl Debug for TimestreamWriteState
Source§impl Default for TimestreamWriteState
impl Default for TimestreamWriteState
Source§fn default() -> TimestreamWriteState
fn default() -> TimestreamWriteState
Returns the “default value” for a type. Read more
Source§impl From<&TimestreamWriteState> for TimestreamWriteStateView
impl From<&TimestreamWriteState> for TimestreamWriteStateView
Source§fn from(state: &TimestreamWriteState) -> Self
fn from(state: &TimestreamWriteState) -> Self
Converts to this type from the input type.
Source§impl From<TimestreamWriteStateView> for TimestreamWriteState
impl From<TimestreamWriteStateView> for TimestreamWriteState
Source§fn from(view: TimestreamWriteStateView) -> Self
fn from(view: TimestreamWriteStateView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TimestreamWriteState
impl RefUnwindSafe for TimestreamWriteState
impl Send for TimestreamWriteState
impl Sync for TimestreamWriteState
impl Unpin for TimestreamWriteState
impl UnsafeUnpin for TimestreamWriteState
impl UnwindSafe for TimestreamWriteState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.