Struct aws_sdk_iotanalytics::input::CreateDatastoreInput
source · #[non_exhaustive]pub struct CreateDatastoreInput { /* private fields */ }Implementations§
source§impl CreateDatastoreInput
impl CreateDatastoreInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDatastore, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDatastore, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateDatastore>
Examples found in repository?
1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateDatastore,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateDatastoreError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateDatastoreOutput,
aws_smithy_http::result::SdkError<crate::error::CreateDatastoreError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateDatastoreInput.
source§impl CreateDatastoreInput
impl CreateDatastoreInput
sourcepub fn datastore_name(&self) -> Option<&str>
pub fn datastore_name(&self) -> Option<&str>
The name of the data store.
sourcepub fn datastore_storage(&self) -> Option<&DatastoreStorage>
pub fn datastore_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 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.
Metadata which can be used to manage the data store.
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.
Trait Implementations§
source§impl Clone for CreateDatastoreInput
impl Clone for CreateDatastoreInput
source§fn clone(&self) -> CreateDatastoreInput
fn clone(&self) -> CreateDatastoreInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more