Struct aws_sdk_iotanalytics::input::create_datastore_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for CreateDatastoreInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn datastore_name(self, input: impl Into<String>) -> Self
pub fn datastore_name(self, input: impl Into<String>) -> Self
The name of the data store.
sourcepub fn set_datastore_name(self, input: Option<String>) -> Self
pub fn set_datastore_name(self, input: Option<String>) -> Self
The name of the data store.
sourcepub fn datastore_storage(self, input: DatastoreStorage) -> Self
pub fn datastore_storage(self, input: DatastoreStorage) -> Self
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 set_datastore_storage(self, input: Option<DatastoreStorage>) -> Self
pub fn set_datastore_storage(self, input: Option<DatastoreStorage>) -> Self
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, input: RetentionPeriod) -> Self
pub fn retention_period(self, input: RetentionPeriod) -> Self
How long, in days, message data is kept for the data store. When customerManagedS3 storage is selected, this parameter is ignored.
sourcepub fn set_retention_period(self, input: Option<RetentionPeriod>) -> Self
pub fn set_retention_period(self, input: Option<RetentionPeriod>) -> Self
How long, in days, message data is kept for the data store. When customerManagedS3 storage is selected, this parameter is ignored.
Appends an item to tags.
To override the contents of this collection use set_tags.
Metadata which can be used to manage the data store.
sourcepub fn file_format_configuration(self, input: FileFormatConfiguration) -> Self
pub fn file_format_configuration(self, input: FileFormatConfiguration) -> Self
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 set_file_format_configuration(
self,
input: Option<FileFormatConfiguration>
) -> Self
pub fn set_file_format_configuration(
self,
input: Option<FileFormatConfiguration>
) -> Self
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, input: DatastorePartitions) -> Self
pub fn datastore_partitions(self, input: DatastorePartitions) -> Self
Contains information about the partition dimensions in a data store.
sourcepub fn set_datastore_partitions(self, input: Option<DatastorePartitions>) -> Self
pub fn set_datastore_partitions(self, input: Option<DatastorePartitions>) -> Self
Contains information about the partition dimensions in a data store.
sourcepub fn build(self) -> Result<CreateDatastoreInput, BuildError>
pub fn build(self) -> Result<CreateDatastoreInput, BuildError>
Consumes the builder and constructs a CreateDatastoreInput.
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
}