Skip to main content

ElastiCacheState

Struct ElastiCacheState 

Source
pub struct ElastiCacheState {
Show 15 fields pub account_id: String, pub region: String, pub parameter_groups: Vec<CacheParameterGroup>, pub subnet_groups: HashMap<String, CacheSubnetGroup>, pub reserved_cache_nodes: HashMap<String, ReservedCacheNode>, pub reserved_cache_nodes_offerings: Vec<ReservedCacheNodesOffering>, pub cache_clusters: HashMap<String, CacheCluster>, pub replication_groups: HashMap<String, ReplicationGroup>, pub global_replication_groups: HashMap<String, GlobalReplicationGroup>, pub users: HashMap<String, ElastiCacheUser>, pub user_groups: HashMap<String, ElastiCacheUserGroup>, pub snapshots: HashMap<String, CacheSnapshot>, pub serverless_caches: HashMap<String, ServerlessCache>, pub serverless_cache_snapshots: HashMap<String, ServerlessCacheSnapshot>, pub tags: HashMap<String, Vec<(String, String)>>, /* private fields */
}

Fields§

§account_id: String§region: String§parameter_groups: Vec<CacheParameterGroup>§subnet_groups: HashMap<String, CacheSubnetGroup>§reserved_cache_nodes: HashMap<String, ReservedCacheNode>§reserved_cache_nodes_offerings: Vec<ReservedCacheNodesOffering>§cache_clusters: HashMap<String, CacheCluster>§replication_groups: HashMap<String, ReplicationGroup>§global_replication_groups: HashMap<String, GlobalReplicationGroup>§users: HashMap<String, ElastiCacheUser>§user_groups: HashMap<String, ElastiCacheUserGroup>§snapshots: HashMap<String, CacheSnapshot>§serverless_caches: HashMap<String, ServerlessCache>§serverless_cache_snapshots: HashMap<String, ServerlessCacheSnapshot>§tags: HashMap<String, Vec<(String, String)>>

Implementations§

Source§

impl ElastiCacheState

Source

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

Source

pub fn reset(&mut self)

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 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 Debug for ElastiCacheState

Source§

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

Formats the value using the given formatter. 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Same for T

Source§

type Output = T

Should always be Self
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<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
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,