#include <kms_keyring.h>
|
| std::shared_ptr< KMS::KMSClient > | GetClient (const Aws::String ®ion, std::function< void()> &report_success) |
| |
| virtual | ~ClientSupplier () |
| |
|
| std::mutex | cache_mutex |
| |
| Aws::Map< Aws::String, std::shared_ptr< Aws::KMS::KMSClient > > | cache |
| |
Definition at line 196 of file kms_keyring.h.
◆ Create()
| static std::shared_ptr< CachingClientSupplier > Aws::Cryptosdk::KmsKeyring::CachingClientSupplier::Create |
( |
| ) |
|
|
static |
◆ GetClient()
| std::shared_ptr< KMS::KMSClient > Aws::Cryptosdk::KmsKeyring::CachingClientSupplier::GetClient |
( |
const Aws::String & | region, |
|
|
std::function< void()> & | report_success ) |
|
virtual |
If
- Parameters
-
| region | is the empty string, then returns a KMS client in the SDK's default region. If a client is already cached for this region, returns that one and provides a no-op callable. If a client is not already cached for this region, returns a KMS client with default settings and provides a callable which will cache the client. Never returns nullptr. |
Implements Aws::Cryptosdk::KmsKeyring::ClientSupplier.
◆ cache
| Aws::Map<Aws::String, std::shared_ptr<Aws::KMS::KMSClient> > Aws::Cryptosdk::KmsKeyring::CachingClientSupplier::cache |
|
protected |
◆ cache_mutex
| std::mutex Aws::Cryptosdk::KmsKeyring::CachingClientSupplier::cache_mutex |
|
mutableprotected |
The documentation for this class was generated from the following file: