aws_sdk_inspector2/client/
update_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 [`UpdateEncryptionKey`](crate::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`kms_key_id(impl Into<String>)`](crate::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder::set_kms_key_id):<br>required: **true**<br><p>A KMS key ID for the encryption key.</p><br>
7    ///   - [`scan_type(ScanType)`](crate::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder::scan_type) / [`set_scan_type(Option<ScanType>)`](crate::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder::set_scan_type):<br>required: **true**<br><p>The scan type for the encryption key.</p><br>
8    ///   - [`resource_type(ResourceType)`](crate::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder::resource_type) / [`set_resource_type(Option<ResourceType>)`](crate::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder::set_resource_type):<br>required: **true**<br><p>The resource type for the encryption key.</p><br>
9    /// - On success, responds with [`UpdateEncryptionKeyOutput`](crate::operation::update_encryption_key::UpdateEncryptionKeyOutput)
10    /// - On failure, responds with [`SdkError<UpdateEncryptionKeyError>`](crate::operation::update_encryption_key::UpdateEncryptionKeyError)
11    pub fn update_encryption_key(&self) -> crate::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder {
12        crate::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder::new(self.handle.clone())
13    }
14}