aws_db_esdk/deps/aws_cryptography_materialProviders/operation/
get_client.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 `GetClient`.
5#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
6#[non_exhaustive]
7pub struct GetClient;
8impl GetClient {
9    /// Creates a new `GetClient`
10    pub fn new() -> Self {
11        Self
12    }
13
14    pub(crate) async fn send(
15        client_supplier: &crate::deps::aws_cryptography_materialProviders::types::client_supplier::ClientSupplierRef,
16        input: crate::deps::aws_cryptography_materialProviders::operation::get_client::GetClientInput,
17    ) -> ::std::result::Result<
18        crate::deps::com_amazonaws_kms::client::Client,
19        crate::deps::aws_cryptography_materialProviders::types::error::Error,
20    > {
21        crate::deps::aws_cryptography_materialProviders::validation::validate_aws_Pcryptography_PmaterialProviders_HGetClientInput_for_ClientSupplier_GetClient(&input)
22            .map_err(crate::deps::aws_cryptography_materialProviders::types::error::Error::wrap_validation_err)?;
23        client_supplier.inner.lock().unwrap().get_client(input)
24    }
25}
26
27pub use crate::deps::aws_cryptography_materialProviders::operation::get_client::_get_client_output::GetClientOutput;
28
29pub use crate::deps::aws_cryptography_materialProviders::operation::get_client::_get_client_input::GetClientInput;
30
31pub(crate) mod _get_client_output;
32
33pub(crate) mod _get_client_input;
34
35/// Builders
36pub mod builders;