Struct aws_sdk_codecommit::operation::update_repository_encryption_key::builders::UpdateRepositoryEncryptionKeyFluentBuilder
source · pub struct UpdateRepositoryEncryptionKeyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateRepositoryEncryptionKey
.
Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.
Implementations§
source§impl UpdateRepositoryEncryptionKeyFluentBuilder
impl UpdateRepositoryEncryptionKeyFluentBuilder
sourcepub fn as_input(&self) -> &UpdateRepositoryEncryptionKeyInputBuilder
pub fn as_input(&self) -> &UpdateRepositoryEncryptionKeyInputBuilder
Access the UpdateRepositoryEncryptionKey as a reference.
sourcepub async fn send(
self
) -> Result<UpdateRepositoryEncryptionKeyOutput, SdkError<UpdateRepositoryEncryptionKeyError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateRepositoryEncryptionKeyOutput, SdkError<UpdateRepositoryEncryptionKeyError, 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 fn customize(
self
) -> CustomizableOperation<UpdateRepositoryEncryptionKeyOutput, UpdateRepositoryEncryptionKeyError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateRepositoryEncryptionKeyOutput, UpdateRepositoryEncryptionKeyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository for which you want to update the KMS encryption key used to encrypt and decrypt the repository.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository for which you want to update the KMS encryption key used to encrypt and decrypt the repository.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The name of the repository for which you want to update the KMS encryption key used to encrypt and decrypt the repository.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for keyID, see KeyId in the Decrypt API description in the Key Management Service API Reference.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for keyID, see KeyId in the Decrypt API description in the Key Management Service API Reference.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for keyID, see KeyId in the Decrypt API description in the Key Management Service API Reference.
Trait Implementations§
source§impl Clone for UpdateRepositoryEncryptionKeyFluentBuilder
impl Clone for UpdateRepositoryEncryptionKeyFluentBuilder
source§fn clone(&self) -> UpdateRepositoryEncryptionKeyFluentBuilder
fn clone(&self) -> UpdateRepositoryEncryptionKeyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateRepositoryEncryptionKeyFluentBuilder
impl !RefUnwindSafe for UpdateRepositoryEncryptionKeyFluentBuilder
impl Send for UpdateRepositoryEncryptionKeyFluentBuilder
impl Sync for UpdateRepositoryEncryptionKeyFluentBuilder
impl Unpin for UpdateRepositoryEncryptionKeyFluentBuilder
impl !UnwindSafe for UpdateRepositoryEncryptionKeyFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more