aws_sdk_codecommit/client/
update_repository_encryption_key.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateRepositoryEncryptionKey`](crate::operation::update_repository_encryption_key::builders::UpdateRepositoryEncryptionKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`repository_name(impl Into<String>)`](crate::operation::update_repository_encryption_key::builders::UpdateRepositoryEncryptionKeyFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::update_repository_encryption_key::builders::UpdateRepositoryEncryptionKeyFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository for which you want to update the KMS encryption key used to encrypt and decrypt the repository.</p><br>
7    ///   - [`kms_key_id(impl Into<String>)`](crate::operation::update_repository_encryption_key::builders::UpdateRepositoryEncryptionKeyFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::update_repository_encryption_key::builders::UpdateRepositoryEncryptionKeyFluentBuilder::set_kms_key_id):<br>required: **true**<br><p>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 <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId">KeyId</a> in the Decrypt API description in the <i>Key Management Service API Reference</i>.</p><br>
8    /// - On success, responds with [`UpdateRepositoryEncryptionKeyOutput`](crate::operation::update_repository_encryption_key::UpdateRepositoryEncryptionKeyOutput) with field(s):
9    ///   - [`repository_id(Option<String>)`](crate::operation::update_repository_encryption_key::UpdateRepositoryEncryptionKeyOutput::repository_id): <p>The ID of the repository.</p>
10    ///   - [`kms_key_id(Option<String>)`](crate::operation::update_repository_encryption_key::UpdateRepositoryEncryptionKeyOutput::kms_key_id): <p>The ID of the encryption key.</p>
11    ///   - [`original_kms_key_id(Option<String>)`](crate::operation::update_repository_encryption_key::UpdateRepositoryEncryptionKeyOutput::original_kms_key_id): <p>The ID of the encryption key formerly used to encrypt and decrypt the repository.</p>
12    /// - On failure, responds with [`SdkError<UpdateRepositoryEncryptionKeyError>`](crate::operation::update_repository_encryption_key::UpdateRepositoryEncryptionKeyError)
13    pub fn update_repository_encryption_key(
14        &self,
15    ) -> crate::operation::update_repository_encryption_key::builders::UpdateRepositoryEncryptionKeyFluentBuilder {
16        crate::operation::update_repository_encryption_key::builders::UpdateRepositoryEncryptionKeyFluentBuilder::new(self.handle.clone())
17    }
18}