pub struct DynamoDbClient { /* private fields */ }Implementations§
Source§impl DynamoDbClient
impl DynamoDbClient
pub fn new(config: AwsConfig) -> Self
Sourcepub async fn list_tables(&self) -> Result<Vec<DdbTable>>
pub async fn list_tables(&self) -> Result<Vec<DdbTable>>
List every table in the region, enriched with DescribeTable details.
Sourcepub async fn describe_settings(
&self,
table_name: &str,
) -> Result<DdbTableSettings>
pub async fn describe_settings( &self, table_name: &str, ) -> Result<DdbTableSettings>
TTL and point-in-time-recovery settings for a table.
Sourcepub async fn get_resource_policy(
&self,
resource_arn: &str,
) -> Result<Option<String>>
pub async fn get_resource_policy( &self, resource_arn: &str, ) -> Result<Option<String>>
Resource-based policy attached to a table or stream ARN, pretty-printed.
Returns None when no policy exists.
Tags on a table (Tags tab).
Sourcepub async fn list_backups(&self, table_name: &str) -> Result<Vec<DdbBackup>>
pub async fn list_backups(&self, table_name: &str) -> Result<Vec<DdbBackup>>
On-demand backups of a table, newest first (Backups tab).
Sourcepub async fn scan_items(
&self,
table_name: &str,
index_name: Option<&str>,
limit: i32,
projected_attributes: Option<&[String]>,
cursor: Option<DdbItemCursor>,
) -> Result<DdbItemsPage>
pub async fn scan_items( &self, table_name: &str, index_name: Option<&str>, limit: i32, projected_attributes: Option<&[String]>, cursor: Option<DdbItemCursor>, ) -> Result<DdbItemsPage>
Scan items from a table or one of its indexes (Items tab).
Sourcepub async fn query_items(
&self,
table_name: &str,
index_name: Option<&str>,
partition_key: &str,
partition_value: &str,
partition_type: &str,
limit: i32,
projected_attributes: Option<&[String]>,
cursor: Option<DdbItemCursor>,
) -> Result<DdbItemsPage>
pub async fn query_items( &self, table_name: &str, index_name: Option<&str>, partition_key: &str, partition_value: &str, partition_type: &str, limit: i32, projected_attributes: Option<&[String]>, cursor: Option<DdbItemCursor>, ) -> Result<DdbItemsPage>
Query items by partition-key value from a table or one of its indexes.
Sourcepub async fn get_monitoring_metrics(
&self,
table_name: &str,
) -> Result<DdbMonitoringData>
pub async fn get_monitoring_metrics( &self, table_name: &str, ) -> Result<DdbMonitoringData>
CloudWatch time series for the Monitor tab (last 3 hours, 1-minute period).
Auto Trait Implementations§
impl !RefUnwindSafe for DynamoDbClient
impl !UnwindSafe for DynamoDbClient
impl Freeze for DynamoDbClient
impl Send for DynamoDbClient
impl Sync for DynamoDbClient
impl Unpin for DynamoDbClient
impl UnsafeUnpin for DynamoDbClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.