#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateCryptographicMaterialsCache;
impl CreateCryptographicMaterialsCache {
pub fn new() -> Self {
Self
}
pub(crate) async fn send(
client: &crate::deps::aws_cryptography_materialProviders::client::Client,
input: crate::deps::aws_cryptography_materialProviders::operation::create_cryptographic_materials_cache::CreateCryptographicMaterialsCacheInput,
) -> ::std::result::Result<
crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_cache::CryptographicMaterialsCacheRef,
crate::deps::aws_cryptography_materialProviders::types::error::Error,
>{
crate::deps::aws_cryptography_materialProviders::validation::validate_aws_Pcryptography_PmaterialProviders_HCreateCryptographicMaterialsCacheInput_for_AwsCryptographicMaterialProviders_CreateCryptographicMaterialsCache(&input)
.map_err(crate::deps::aws_cryptography_materialProviders::types::error::Error::wrap_validation_err)?;
let inner_input = crate::deps::aws_cryptography_materialProviders::conversions::create_cryptographic_materials_cache::_create_cryptographic_materials_cache_input::to_dafny(input);
let inner_result = ::dafny_runtime::md!(client.dafny_client.clone())
.CreateCryptographicMaterialsCache(&inner_input);
if matches!(
inner_result.as_ref(),
crate::r#_Wrappers_Compile::Result::Success { .. }
) {
Ok(
crate::deps::aws_cryptography_materialProviders::conversions::cryptographic_materials_cache::from_dafny(inner_result.value().clone())
,
)
} else {
Err(
crate::deps::aws_cryptography_materialProviders::conversions::error::from_dafny(
inner_result.error().clone(),
),
)
}
}
}
pub use crate::deps::aws_cryptography_materialProviders::operation::create_cryptographic_materials_cache::_create_cryptographic_materials_cache_output::CreateCryptographicMaterialsCacheOutput;
pub use crate::deps::aws_cryptography_materialProviders::operation::create_cryptographic_materials_cache::_create_cryptographic_materials_cache_input::CreateCryptographicMaterialsCacheInput;
pub(crate) mod _create_cryptographic_materials_cache_output;
pub(crate) mod _create_cryptographic_materials_cache_input;
pub mod builders;