aws_sdk_iotfleetwise/client/
get_encryption_configuration.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 [`GetEncryptionConfiguration`](crate::operation::get_encryption_configuration::builders::GetEncryptionConfigurationFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::get_encryption_configuration::builders::GetEncryptionConfigurationFluentBuilder::send) it.
6    /// - On success, responds with [`GetEncryptionConfigurationOutput`](crate::operation::get_encryption_configuration::GetEncryptionConfigurationOutput) with field(s):
7    ///   - [`kms_key_id(Option<String>)`](crate::operation::get_encryption_configuration::GetEncryptionConfigurationOutput::kms_key_id): <p>The ID of the KMS key that is used for encryption.</p>
8    ///   - [`encryption_status(EncryptionStatus)`](crate::operation::get_encryption_configuration::GetEncryptionConfigurationOutput::encryption_status): <p>The encryption status.</p>
9    ///   - [`encryption_type(EncryptionType)`](crate::operation::get_encryption_configuration::GetEncryptionConfigurationOutput::encryption_type): <p>The type of encryption. Set to <code>KMS_BASED_ENCRYPTION</code> to use a KMS key that you own and manage. Set to <code>FLEETWISE_DEFAULT_ENCRYPTION</code> to use an Amazon Web Services managed key that is owned by the Amazon Web Services IoT FleetWise service account.</p>
10    ///   - [`error_message(Option<String>)`](crate::operation::get_encryption_configuration::GetEncryptionConfigurationOutput::error_message): <p>The error message that describes why encryption settings couldn't be configured, if applicable.</p>
11    ///   - [`creation_time(Option<DateTime>)`](crate::operation::get_encryption_configuration::GetEncryptionConfigurationOutput::creation_time): <p>The time when encryption was configured in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
12    ///   - [`last_modification_time(Option<DateTime>)`](crate::operation::get_encryption_configuration::GetEncryptionConfigurationOutput::last_modification_time): <p>The time when encryption was last updated in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
13    /// - On failure, responds with [`SdkError<GetEncryptionConfigurationError>`](crate::operation::get_encryption_configuration::GetEncryptionConfigurationError)
14    pub fn get_encryption_configuration(&self) -> crate::operation::get_encryption_configuration::builders::GetEncryptionConfigurationFluentBuilder {
15        crate::operation::get_encryption_configuration::builders::GetEncryptionConfigurationFluentBuilder::new(self.handle.clone())
16    }
17}