aws_db_esdk/deps/aws_cryptography_materialProviders/operation/
decrypt_materials.rs1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
6#[non_exhaustive]
7pub struct DecryptMaterials;
8impl DecryptMaterials {
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::decrypt_materials::DecryptMaterialsInput,
17 ) -> ::std::result::Result<
18 crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::DecryptMaterialsOutput,
19 crate::deps::aws_cryptography_materialProviders::types::error::Error,
20 >{
21 crate::deps::aws_cryptography_materialProviders::validation::validate_aws_Pcryptography_PmaterialProviders_HDecryptMaterialsInput_for_CryptographicMaterialsManager_DecryptMaterials(&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 .decrypt_materials(input)
28 }
29}
30
31pub use crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::_decrypt_materials_output::DecryptMaterialsOutput;
32
33pub use crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::_decrypt_materials_input::DecryptMaterialsInput;
34
35pub(crate) mod _decrypt_materials_output;
36
37pub(crate) mod _decrypt_materials_input;
38
39pub mod builders;