Struct aws_sdk_iotanalytics::types::Datastore
source · #[non_exhaustive]pub struct Datastore {
pub name: Option<String>,
pub storage: Option<DatastoreStorage>,
pub arn: Option<String>,
pub status: Option<DatastoreStatus>,
pub retention_period: Option<RetentionPeriod>,
pub creation_time: Option<DateTime>,
pub last_update_time: Option<DateTime>,
pub last_message_arrival_time: Option<DateTime>,
pub file_format_configuration: Option<FileFormatConfiguration>,
pub datastore_partitions: Option<DatastorePartitions>,
}
Expand description
Information about a data store.
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.name: Option<String>
The name of the data store.
storage: Option<DatastoreStorage>
Where data in a data store is stored.. You can choose serviceManagedS3
storage, customerManagedS3
storage, or iotSiteWiseMultiLayerStorage
storage. The default is serviceManagedS3
. You can't change the choice of Amazon S3 storage after your data store is created.
arn: Option<String>
The ARN of the data store.
status: Option<DatastoreStatus>
The status of a data store:
- CREATING
-
The data store is being created.
- ACTIVE
-
The data store has been created and can be used.
- DELETING
-
The data store is being deleted.
retention_period: Option<RetentionPeriod>
How long, in days, message data is kept for the data store. When customerManagedS3
storage is selected, this parameter is ignored.
creation_time: Option<DateTime>
When the data store was created.
last_update_time: Option<DateTime>
The last time the data store was updated.
last_message_arrival_time: Option<DateTime>
The last time when a new message arrived in the data store.
IoT Analytics updates this value at most once per minute for Amazon Simple Storage Service one data store. Hence, the lastMessageArrivalTime
value is an approximation.
This feature only applies to messages that arrived in the data store after October 23, 2020.
file_format_configuration: Option<FileFormatConfiguration>
Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.
The default file format is JSON. You can specify only one format.
You can't change the file format after you create the data store.
datastore_partitions: Option<DatastorePartitions>
Contains information about the partition dimensions in a data store.
Implementations§
source§impl Datastore
impl Datastore
sourcepub fn storage(&self) -> Option<&DatastoreStorage>
pub fn storage(&self) -> Option<&DatastoreStorage>
Where data in a data store is stored.. You can choose serviceManagedS3
storage, customerManagedS3
storage, or iotSiteWiseMultiLayerStorage
storage. The default is serviceManagedS3
. You can't change the choice of Amazon S3 storage after your data store is created.
sourcepub fn status(&self) -> Option<&DatastoreStatus>
pub fn status(&self) -> Option<&DatastoreStatus>
The status of a data store:
- CREATING
-
The data store is being created.
- ACTIVE
-
The data store has been created and can be used.
- DELETING
-
The data store is being deleted.
sourcepub fn retention_period(&self) -> Option<&RetentionPeriod>
pub fn retention_period(&self) -> Option<&RetentionPeriod>
How long, in days, message data is kept for the data store. When customerManagedS3
storage is selected, this parameter is ignored.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
When the data store was created.
sourcepub fn last_update_time(&self) -> Option<&DateTime>
pub fn last_update_time(&self) -> Option<&DateTime>
The last time the data store was updated.
sourcepub fn last_message_arrival_time(&self) -> Option<&DateTime>
pub fn last_message_arrival_time(&self) -> Option<&DateTime>
The last time when a new message arrived in the data store.
IoT Analytics updates this value at most once per minute for Amazon Simple Storage Service one data store. Hence, the lastMessageArrivalTime
value is an approximation.
This feature only applies to messages that arrived in the data store after October 23, 2020.
sourcepub fn file_format_configuration(&self) -> Option<&FileFormatConfiguration>
pub fn file_format_configuration(&self) -> Option<&FileFormatConfiguration>
Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.
The default file format is JSON. You can specify only one format.
You can't change the file format after you create the data store.
sourcepub fn datastore_partitions(&self) -> Option<&DatastorePartitions>
pub fn datastore_partitions(&self) -> Option<&DatastorePartitions>
Contains information about the partition dimensions in a data store.