Skip to main content

ElastiCacheState

Struct ElastiCacheState 

Source
pub struct ElastiCacheState {
Show 21 fields pub account_id: String, pub region: String, pub parameter_groups: Vec<CacheParameterGroup>, pub subnet_groups: BTreeMap<String, CacheSubnetGroup>, pub reserved_cache_nodes: BTreeMap<String, ReservedCacheNode>, pub reserved_cache_nodes_offerings: Vec<ReservedCacheNodesOffering>, pub cache_clusters: BTreeMap<String, CacheCluster>, pub replication_groups: BTreeMap<String, ReplicationGroup>, pub global_replication_groups: BTreeMap<String, GlobalReplicationGroup>, pub users: BTreeMap<String, ElastiCacheUser>, pub user_groups: BTreeMap<String, ElastiCacheUserGroup>, pub snapshots: BTreeMap<String, CacheSnapshot>, pub serverless_caches: BTreeMap<String, ServerlessCache>, pub serverless_cache_snapshots: BTreeMap<String, ServerlessCacheSnapshot>, pub tags: BTreeMap<String, Vec<(String, String)>>, pub security_groups: BTreeMap<String, CacheSecurityGroup>, pub parameter_group_parameters: BTreeMap<String, Vec<CacheParameter>>, pub events: Vec<CacheEvent>, pub migrations: BTreeMap<String, Migration>, pub service_updates: BTreeMap<String, ServiceUpdate>, pub update_actions: BTreeMap<String, UpdateAction>, /* private fields */
}

Fields§

§account_id: String§region: String§parameter_groups: Vec<CacheParameterGroup>§subnet_groups: BTreeMap<String, CacheSubnetGroup>§reserved_cache_nodes: BTreeMap<String, ReservedCacheNode>§reserved_cache_nodes_offerings: Vec<ReservedCacheNodesOffering>§cache_clusters: BTreeMap<String, CacheCluster>§replication_groups: BTreeMap<String, ReplicationGroup>§global_replication_groups: BTreeMap<String, GlobalReplicationGroup>§users: BTreeMap<String, ElastiCacheUser>§user_groups: BTreeMap<String, ElastiCacheUserGroup>§snapshots: BTreeMap<String, CacheSnapshot>§serverless_caches: BTreeMap<String, ServerlessCache>§serverless_cache_snapshots: BTreeMap<String, ServerlessCacheSnapshot>§tags: BTreeMap<String, Vec<(String, String)>>§security_groups: BTreeMap<String, CacheSecurityGroup>§parameter_group_parameters: BTreeMap<String, Vec<CacheParameter>>§events: Vec<CacheEvent>§migrations: BTreeMap<String, Migration>

Active migrations keyed by replication group id.

§service_updates: BTreeMap<String, ServiceUpdate>

Available service updates keyed by ServiceUpdateName, seeded with a small realistic set and read by DescribeServiceUpdates.

§update_actions: BTreeMap<String, UpdateAction>

Update actions keyed by “{service_update_name}#{target_kind}#{id}”. Materialized lazily from (service_updates x clusters/replication groups) and transitioned by BatchApplyUpdateAction / BatchStopUpdateAction.

Implementations§

Source§

impl ElastiCacheState

Source

pub fn new(account_id: &str, region: &str) -> Self

Source

pub fn reset(&mut self)

Source

pub fn ensure_update_actions(&mut self)

Ensure an UpdateAction exists for every (service_update, target) pair, where targets are this account’s cache clusters and replication groups. AWS auto-creates these when a service update is released; we materialize them lazily so DescribeUpdateActions and the batch ops share state.

Source

pub fn begin_cache_cluster_creation(&mut self, cache_cluster_id: &str) -> bool

Source

pub fn finish_cache_cluster_creation(&mut self, cluster: CacheCluster)

Source

pub fn cancel_cache_cluster_creation(&mut self, cache_cluster_id: &str)

Source

pub fn cache_cluster_creation_in_progress(&self, cache_cluster_id: &str) -> bool

True if id is currently being created (in the lock-drop window of CreateCacheCluster, before it is inserted into cache_clusters).

Source

pub fn request_cache_cluster_delete_during_creation( &mut self, cache_cluster_id: &str, )

Record that a DeleteCacheCluster arrived for id while it was still being created. The create’s finish step calls [take_cache_cluster_delete_request] to detect this and reap the container instead of resurrecting the deleted cluster (bug-audit 2026-05-28, 4.3).

Source

pub fn take_cache_cluster_delete_request( &mut self, cache_cluster_id: &str, ) -> bool

Consume a pending delete request for id (set while it was creating). Returns true if one was present, in which case the caller must drop the in-progress marker and reap any started container without inserting the cluster.

Source

pub fn begin_replication_group_creation( &mut self, replication_group_id: &str, ) -> bool

Source

pub fn finish_replication_group_creation(&mut self, group: ReplicationGroup)

Source

pub fn cancel_replication_group_creation(&mut self, replication_group_id: &str)

Source

pub fn begin_serverless_cache_creation( &mut self, serverless_cache_name: &str, ) -> bool

Source

pub fn finish_serverless_cache_creation(&mut self, cache: ServerlessCache)

Source

pub fn cancel_serverless_cache_creation(&mut self, serverless_cache_name: &str)

Source

pub fn register_arn(&mut self, arn: &str)

Source

pub fn has_arn(&self, arn: &str) -> bool

Trait Implementations§

Source§

impl AccountState for ElastiCacheState

Source§

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)

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 ElastiCacheState

Source§

fn clone(&self) -> ElastiCacheState

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ElastiCacheState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ElastiCacheState

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ElastiCacheState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more