aws_db_esdk/deps/aws_cryptography_materialProviders/operation/
put_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 `PutCacheEntry`.
5#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
6#[non_exhaustive]
7pub struct PutCacheEntry;
8impl PutCacheEntry {
9    /// Creates a new `PutCacheEntry`
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::put_cache_entry::PutCacheEntryInput,
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_HPutCacheEntryInput_for_CryptographicMaterialsCache_PutCacheEntry(&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            .put_cache_entry(input)
28    }
29}
30
31pub use crate::deps::aws_cryptography_materialProviders::operation::put_cache_entry::_unit::Unit;
32
33pub use crate::deps::aws_cryptography_materialProviders::operation::put_cache_entry::_put_cache_entry_input::PutCacheEntryInput;
34
35pub(crate) mod _unit;
36
37pub(crate) mod _put_cache_entry_input;
38
39/// Builders
40pub mod builders;