Struct aws_sdk_timestreamwrite::operation::update_database::builders::UpdateDatabaseFluentBuilder
source · pub struct UpdateDatabaseFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateDatabase
.
Modifies the KMS key for an existing database. While updating the database, you must specify the database name and the identifier of the new KMS key to be used (KmsKeyId
). If there are any concurrent UpdateDatabase
requests, first writer wins.
See code sample for details.
Implementations§
source§impl UpdateDatabaseFluentBuilder
impl UpdateDatabaseFluentBuilder
sourcepub fn as_input(&self) -> &UpdateDatabaseInputBuilder
pub fn as_input(&self) -> &UpdateDatabaseInputBuilder
Access the UpdateDatabase as a reference.
sourcepub async fn send(
self
) -> Result<UpdateDatabaseOutput, SdkError<UpdateDatabaseError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateDatabaseOutput, SdkError<UpdateDatabaseError, 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<UpdateDatabaseOutput, UpdateDatabaseError, Self>, SdkError<UpdateDatabaseError>>
pub async fn customize( self ) -> Result<CustomizableOperation<UpdateDatabaseOutput, UpdateDatabaseError, Self>, SdkError<UpdateDatabaseError>>
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 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 database.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
The name of the database.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The identifier of the new KMS key (KmsKeyId
) to be used to encrypt the data stored in the database. If the KmsKeyId
currently registered with the database is the same as the KmsKeyId
in the request, there will not be any update.
You can specify the KmsKeyId
using any of the following:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
-
Alias name:
alias/ExampleAlias
-
Alias ARN:
arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The identifier of the new KMS key (KmsKeyId
) to be used to encrypt the data stored in the database. If the KmsKeyId
currently registered with the database is the same as the KmsKeyId
in the request, there will not be any update.
You can specify the KmsKeyId
using any of the following:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
-
Alias name:
alias/ExampleAlias
-
Alias ARN:
arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The identifier of the new KMS key (KmsKeyId
) to be used to encrypt the data stored in the database. If the KmsKeyId
currently registered with the database is the same as the KmsKeyId
in the request, there will not be any update.
You can specify the KmsKeyId
using any of the following:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
-
Alias name:
alias/ExampleAlias
-
Alias ARN:
arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
Trait Implementations§
source§impl Clone for UpdateDatabaseFluentBuilder
impl Clone for UpdateDatabaseFluentBuilder
source§fn clone(&self) -> UpdateDatabaseFluentBuilder
fn clone(&self) -> UpdateDatabaseFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more