pub struct SecretsManagerState {
pub account_id: String,
pub region: String,
pub secrets: BTreeMap<String, Secret>,
}Fields§
§account_id: String§region: String§secrets: BTreeMap<String, Secret>Implementations§
Source§impl SecretsManagerState
impl SecretsManagerState
pub fn new(account_id: &str, region: &str) -> Self
pub fn reset(&mut self)
Sourcepub fn clear_name_for_create(
&mut self,
name: &str,
now: DateTime<Utc>,
) -> Result<(), AwsServiceError>
pub fn clear_name_for_create( &mut self, name: &str, now: DateTime<Utc>, ) -> Result<(), AwsServiceError>
Make name available to a new secret, as CreateSecret does before
minting one. A secret of that name that is scheduled for deletion and
whose recovery window has passed is purged; one still inside its
recovery window blocks the create with AWS’s InvalidRequestException.
A live secret of that name is left in place for the caller to handle
(CreateSecret’s idempotency path, or a name-conflict error).
Sourcepub fn secret_key(&self, secret_id: &str) -> Option<String>
pub fn secret_key(&self, secret_id: &str) -> Option<String>
The secrets map key (the secret name) for a SecretId: a name, a
full ARN, or a partial ARN (the full ARN without its random
six-character suffix). Does not apply recovery-window expiry.
Trait Implementations§
Source§impl AccountState for SecretsManagerState
impl AccountState for SecretsManagerState
Source§fn new_for_account(account_id: &str, region: &str, _endpoint: &str) -> Self
fn new_for_account(account_id: &str, region: &str, _endpoint: &str) -> Self
Create a fresh, empty state for the given account.
Source§fn inherit_from(&mut self, _sibling: &Self)
fn inherit_from(&mut self, _sibling: &Self)
Called after a new account state is created via
MultiAccountState::get_or_create,
with a reference to an existing sibling state. Services can override
this to propagate shared resources (e.g. body caches) to the new state.Source§impl Clone for SecretsManagerState
impl Clone for SecretsManagerState
Source§impl Debug for SecretsManagerState
impl Debug for SecretsManagerState
Source§impl<'de> Deserialize<'de> for SecretsManagerState
impl<'de> Deserialize<'de> for SecretsManagerState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SecretsManagerState
impl RefUnwindSafe for SecretsManagerState
impl Send for SecretsManagerState
impl Sync for SecretsManagerState
impl Unpin for SecretsManagerState
impl UnsafeUnpin for SecretsManagerState
impl UnwindSafe for SecretsManagerState
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