Struct aws_sdk_inspector2::operation::update_encryption_key::builders::UpdateEncryptionKeyFluentBuilder
source · pub struct UpdateEncryptionKeyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateEncryptionKey
.
Updates an encryption key. A ResourceNotFoundException
means that an AWS owned key is being used for encryption.
Implementations§
source§impl UpdateEncryptionKeyFluentBuilder
impl UpdateEncryptionKeyFluentBuilder
sourcepub fn as_input(&self) -> &UpdateEncryptionKeyInputBuilder
pub fn as_input(&self) -> &UpdateEncryptionKeyInputBuilder
Access the UpdateEncryptionKey as a reference.
sourcepub async fn send(
self
) -> Result<UpdateEncryptionKeyOutput, SdkError<UpdateEncryptionKeyError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateEncryptionKeyOutput, SdkError<UpdateEncryptionKeyError, 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<UpdateEncryptionKeyOutput, UpdateEncryptionKeyError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateEncryptionKeyOutput, UpdateEncryptionKeyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
A KMS key ID for the encryption key.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
A KMS key ID for the encryption key.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
A KMS key ID for the encryption key.
sourcepub fn set_scan_type(self, input: Option<ScanType>) -> Self
pub fn set_scan_type(self, input: Option<ScanType>) -> Self
The scan type for the encryption key.
sourcepub fn get_scan_type(&self) -> &Option<ScanType>
pub fn get_scan_type(&self) -> &Option<ScanType>
The scan type for the encryption key.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The resource type for the encryption key.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The resource type for the encryption key.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The resource type for the encryption key.
Trait Implementations§
source§impl Clone for UpdateEncryptionKeyFluentBuilder
impl Clone for UpdateEncryptionKeyFluentBuilder
source§fn clone(&self) -> UpdateEncryptionKeyFluentBuilder
fn clone(&self) -> UpdateEncryptionKeyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more