Trait aws_secrets::SecretsExt
source · [−]pub trait SecretsExt {
fn get_secret<'life0, 'async_trait, T>(
self,
config: &'life0 SdkConfig
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
where
T: 'async_trait + DeserializeOwned,
'life0: 'async_trait,
Self: 'async_trait;
fn set_tag<'life0, 'life1, 'life2, 'async_trait>(
self,
config: &'life0 SdkConfig,
key: &'life1 str,
value: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<TagResourceOutput>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}
Expand description
Trait for str
types, enables interaction with AWS Secrets Manager.
Required Methods
fn get_secret<'life0, 'async_trait, T>(
self,
config: &'life0 SdkConfig
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>> where
T: 'async_trait + DeserializeOwned,
'life0: 'async_trait,
Self: 'async_trait,
fn get_secret<'life0, 'async_trait, T>(
self,
config: &'life0 SdkConfig
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>> where
T: 'async_trait + DeserializeOwned,
'life0: 'async_trait,
Self: 'async_trait,
Retrieves and de-serializes a secret from AWS Secrets Manager; taken from the Get Secret Value example.
Set or update the value of a tag on a secret that lives in AWS Secrets Manager.