pub trait SecretsExt {
// 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,
Self: 'async_trait,
'life0: '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 Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
Trait for str
types, enables interaction with AWS Secrets Manager.
Required Methods§
Sourcefn 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,
Self: 'async_trait,
'life0: '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,
Self: 'async_trait,
'life0: 'async_trait,
Retrieves and de-serializes a secret from AWS Secrets Manager; taken from the Get Secret Value example.
Sourcefn 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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Set or update the value of a tag on a secret that lives in AWS Secrets Manager.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.