Struct aws_sdk_timestreamwrite::operation::create_database::builders::CreateDatabaseFluentBuilder
source · pub struct CreateDatabaseFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDatabase
.
Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. For more information, see Amazon Web Services managed keys. Service quotas apply. For details, see code sample.
Implementations§
source§impl CreateDatabaseFluentBuilder
impl CreateDatabaseFluentBuilder
sourcepub fn as_input(&self) -> &CreateDatabaseInputBuilder
pub fn as_input(&self) -> &CreateDatabaseInputBuilder
Access the CreateDatabase as a reference.
sourcepub async fn send(
self
) -> Result<CreateDatabaseOutput, SdkError<CreateDatabaseError, HttpResponse>>
pub async fn send( self ) -> Result<CreateDatabaseOutput, SdkError<CreateDatabaseError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateDatabaseOutput, CreateDatabaseError, Self>, SdkError<CreateDatabaseError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateDatabaseOutput, CreateDatabaseError, Self>, SdkError<CreateDatabaseError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The name of the Timestream database.
sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
The name of the Timestream database.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
The name of the Timestream database.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. For more information, see Amazon Web Services managed keys.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. For more information, see Amazon Web Services managed keys.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. For more information, see Amazon Web Services managed keys.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of key-value pairs to label the table.
A list of key-value pairs to label the table.
A list of key-value pairs to label the table.
Trait Implementations§
source§impl Clone for CreateDatabaseFluentBuilder
impl Clone for CreateDatabaseFluentBuilder
source§fn clone(&self) -> CreateDatabaseFluentBuilder
fn clone(&self) -> CreateDatabaseFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more