aws_db_esdk/deps/aws_cryptography_keyStore/
client.rs1use aws_smithy_types::error::operation::BuildError;
5
6#[derive(::std::clone::Clone, ::std::fmt::Debug, ::std::cmp::PartialEq)]
7#[allow(missing_docs)]
8pub struct Client {
9 pub(crate) dafny_client: ::dafny_runtime::Object<dyn crate::r#software::amazon::cryptography::keystore::internaldafny::types::IKeyStoreClient>
10}
11
12impl Client {
13 #[track_caller]
15 pub fn from_conf(
16 input: crate::deps::aws_cryptography_keyStore::types::key_store_config::KeyStoreConfig,
17 ) -> Result<Self, crate::deps::aws_cryptography_keyStore::types::error::Error> {
18 crate::deps::aws_cryptography_keyStore::validation::validate_aws_Pcryptography_PkeyStore_HKeyStoreConfig(&input)
19 .map_err(crate::deps::aws_cryptography_keyStore::types::error::Error::wrap_validation_err)?;
20 let inner =
21 crate::software::amazon::cryptography::keystore::internaldafny::_default::KeyStore(
22 &crate::deps::aws_cryptography_keyStore::conversions::key_store_config::_key_store_config::to_dafny(input),
23 );
24 if matches!(
25 inner.as_ref(),
26 crate::_Wrappers_Compile::Result::Failure { .. }
27 ) {
28 return Err(
29 crate::deps::aws_cryptography_keyStore::conversions::error::from_dafny(
30 inner.as_ref().error().clone(),
31 ),
32 );
33 }
34 Ok(Self {
35 dafny_client: ::dafny_runtime::upcast_object()(inner.Extract()),
36 })
37 }
38}
39
40mod get_key_store_info;
41
42mod create_key_store;
43
44mod create_key;
45
46mod version_key;
47
48mod get_active_branch_key;
49
50mod get_branch_key_version;
51
52mod get_beacon_key;