aws_db_esdk/deps/aws_cryptography_materialProviders/operation/
get_encryption_materials.rs1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
6#[non_exhaustive]
7pub struct GetEncryptionMaterials;
8impl GetEncryptionMaterials {
9 pub fn new() -> Self {
11 Self
12 }
13
14 pub(crate) async fn send(
15 cryptographic_materials_manager: &crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef,
16 input: crate::deps::aws_cryptography_materialProviders::operation::get_encryption_materials::GetEncryptionMaterialsInput,
17 ) -> ::std::result::Result<
18 crate::deps::aws_cryptography_materialProviders::operation::get_encryption_materials::GetEncryptionMaterialsOutput,
19 crate::deps::aws_cryptography_materialProviders::types::error::Error,
20 >{
21 crate::deps::aws_cryptography_materialProviders::validation::validate_aws_Pcryptography_PmaterialProviders_HGetEncryptionMaterialsInput_for_CryptographicMaterialsManager_GetEncryptionMaterials(&input)
22 .map_err(crate::deps::aws_cryptography_materialProviders::types::error::Error::wrap_validation_err)?;
23 cryptographic_materials_manager
24 .inner
25 .lock()
26 .unwrap()
27 .get_encryption_materials(input)
28 }
29}
30
31pub use crate::deps::aws_cryptography_materialProviders::operation::get_encryption_materials::_get_encryption_materials_output::GetEncryptionMaterialsOutput;
32
33pub use crate::deps::aws_cryptography_materialProviders::operation::get_encryption_materials::_get_encryption_materials_input::GetEncryptionMaterialsInput;
34
35pub(crate) mod _get_encryption_materials_output;
36
37pub(crate) mod _get_encryption_materials_input;
38
39pub mod builders;