aws_db_esdk/deps/aws_cryptography_materialProviders/operation/
delete_cache_entry.rs

1// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
4/// Orchestration and serialization glue logic for `DeleteCacheEntry`.
5#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
6#[non_exhaustive]
7pub struct DeleteCacheEntry;
8impl DeleteCacheEntry {
9    /// Creates a new `DeleteCacheEntry`
10    pub fn new() -> Self {
11        Self
12    }
13
14    pub(crate) async fn send(
15        cryptographic_materials_cache: &crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_cache::CryptographicMaterialsCacheRef,
16        input: crate::deps::aws_cryptography_materialProviders::operation::delete_cache_entry::DeleteCacheEntryInput,
17    ) -> ::std::result::Result<
18        (),
19        crate::deps::aws_cryptography_materialProviders::types::error::Error,
20    > {
21        crate::deps::aws_cryptography_materialProviders::validation::validate_aws_Pcryptography_PmaterialProviders_HDeleteCacheEntryInput_for_CryptographicMaterialsCache_DeleteCacheEntry(&input)
22            .map_err(crate::deps::aws_cryptography_materialProviders::types::error::Error::wrap_validation_err)?;
23        cryptographic_materials_cache
24            .inner
25            .lock()
26            .unwrap()
27            .delete_cache_entry(input)
28    }
29}
30
31pub use crate::deps::aws_cryptography_materialProviders::operation::delete_cache_entry::_unit::Unit;
32
33pub use crate::deps::aws_cryptography_materialProviders::operation::delete_cache_entry::_delete_cache_entry_input::DeleteCacheEntryInput;
34
35pub(crate) mod _unit;
36
37pub(crate) mod _delete_cache_entry_input;
38
39/// Builders
40pub mod builders;