aws_db_esdk/deps/aws_cryptography_materialProviders/operation/
create_multi_keyring.rs1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
6#[non_exhaustive]
7pub struct CreateMultiKeyring;
8impl CreateMultiKeyring {
9 pub fn new() -> Self {
11 Self
12 }
13
14 pub(crate) async fn send(
15 client: &crate::deps::aws_cryptography_materialProviders::client::Client,
16 input: crate::deps::aws_cryptography_materialProviders::operation::create_multi_keyring::CreateMultiKeyringInput,
17 ) -> ::std::result::Result<
18 crate::deps::aws_cryptography_materialProviders::types::keyring::KeyringRef,
19 crate::deps::aws_cryptography_materialProviders::types::error::Error,
20 > {
21 crate::deps::aws_cryptography_materialProviders::validation::validate_aws_Pcryptography_PmaterialProviders_HCreateMultiKeyringInput_for_AwsCryptographicMaterialProviders_CreateMultiKeyring(&input)
22 .map_err(crate::deps::aws_cryptography_materialProviders::types::error::Error::wrap_validation_err)?;
23 let inner_input = crate::deps::aws_cryptography_materialProviders::conversions::create_multi_keyring::_create_multi_keyring_input::to_dafny(input);
24 let inner_result =
25 ::dafny_runtime::md!(client.dafny_client.clone()).CreateMultiKeyring(&inner_input);
26 if matches!(
27 inner_result.as_ref(),
28 crate::r#_Wrappers_Compile::Result::Success { .. }
29 ) {
30 Ok(
31 crate::deps::aws_cryptography_materialProviders::conversions::keyring::from_dafny(
32 inner_result.value().clone(),
33 ),
34 )
35 } else {
36 Err(
37 crate::deps::aws_cryptography_materialProviders::conversions::error::from_dafny(
38 inner_result.error().clone(),
39 ),
40 )
41 }
42 }
43}
44
45pub use crate::deps::aws_cryptography_materialProviders::operation::create_multi_keyring::_create_keyring_output::CreateKeyringOutput;
46
47pub use crate::deps::aws_cryptography_materialProviders::operation::create_multi_keyring::_create_multi_keyring_input::CreateMultiKeyringInput;
48
49pub(crate) mod _create_keyring_output;
50
51pub(crate) mod _create_multi_keyring_input;
52
53pub mod builders;