pub struct Manager { /* private fields */ }
Expand description
Manages connections to the cache. Create one via a ManagerBuilder
.
Ideally, only one of these should exist in a single executable (cloning is fine as it will reuse the connections).
Implementations§
Source§impl Manager
impl Manager
Sourcepub fn get_secret(&self, query: impl Query) -> Secret
pub fn get_secret(&self, query: impl Query) -> Secret
Get a representation of a secret that matches a given query.
Note that this does not return the value of the secret; see Secret
for how to get it.
Sourcepub fn get_parameter(
&self,
param_name: &str,
with_decryption: bool,
) -> Parameter
pub fn get_parameter( &self, param_name: &str, with_decryption: bool, ) -> Parameter
Get a representation of a parameter that matches a given parameter name.
For parameters of type SecureString
, with_decryption
must be set to true. Additionally, the lambda role must have the
kms:Decrypt` permission.
Note that this does not return the value of the parameter; see Parameter
for how to get it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manager
impl !RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more