pub struct MemoryDbState {
pub clusters: HashMap<String, Cluster>,
pub snapshots: HashMap<String, SnapshotData>,
pub subnet_groups: HashMap<String, SubnetGroupData>,
pub acls: HashMap<String, AclData>,
pub tags: TagsMap,
}Expand description
In-memory state for the MemoryDB service.
Fields§
§clusters: HashMap<String, Cluster>Clusters keyed by cluster name.
snapshots: HashMap<String, SnapshotData>Snapshots keyed by snapshot name.
subnet_groups: HashMap<String, SubnetGroupData>Subnet groups keyed by subnet group name.
acls: HashMap<String, AclData>ACLs keyed by ACL name.
Tags keyed by resource ARN.
Implementations§
Source§impl MemoryDbState
impl MemoryDbState
pub fn create_cluster( &mut self, account_id: &str, region: &str, name: &str, node_type: &str, acl_name: &str, description: Option<&str>, num_shards: Option<i32>, num_replicas_per_shard: Option<i32>, subnet_group_name: Option<&str>, security_group_ids: Vec<String>, engine_version: Option<&str>, maintenance_window: Option<&str>, snapshot_retention_limit: Option<i32>, snapshot_window: Option<&str>, parameter_group_name: Option<&str>, tls_enabled: Option<bool>, auto_minor_version_upgrade: Option<bool>, tags: Vec<TagData>, ) -> Result<&Cluster, MemoryDbError>
pub fn describe_clusters( &self, cluster_name: Option<&str>, ) -> Result<Vec<&Cluster>, MemoryDbError>
pub fn delete_cluster( &mut self, name: &str, final_snapshot_name: Option<&str>, account_id: &str, region: &str, ) -> Result<Cluster, MemoryDbError>
pub fn update_cluster( &mut self, name: &str, description: Option<&str>, security_group_ids: Option<Vec<String>>, maintenance_window: Option<&str>, snapshot_retention_limit: Option<i32>, snapshot_window: Option<&str>, parameter_group_name: Option<&str>, engine_version: Option<&str>, num_shards: Option<i32>, num_replicas_per_shard: Option<i32>, node_type: Option<&str>, acl_name: Option<&str>, ) -> Result<&Cluster, MemoryDbError>
pub fn create_snapshot( &mut self, account_id: &str, region: &str, snapshot_name: &str, cluster_name: &str, kms_key_id: Option<&str>, tags: Vec<TagData>, ) -> Result<&SnapshotData, MemoryDbError>
pub fn delete_snapshot( &mut self, snapshot_name: &str, ) -> Result<SnapshotData, MemoryDbError>
pub fn describe_snapshots( &self, cluster_name: Option<&str>, snapshot_name: Option<&str>, source: Option<&str>, ) -> Result<Vec<&SnapshotData>, MemoryDbError>
pub fn create_subnet_group( &mut self, account_id: &str, region: &str, name: &str, description: Option<&str>, subnet_ids: Vec<String>, tags: Vec<TagData>, ) -> Result<&SubnetGroupData, MemoryDbError>
pub fn delete_subnet_group( &mut self, name: &str, ) -> Result<SubnetGroupData, MemoryDbError>
pub fn describe_subnet_groups( &self, name: Option<&str>, ) -> Result<Vec<&SubnetGroupData>, MemoryDbError>
pub fn tag_resource( &mut self, resource_arn: &str, tags: Vec<TagData>, ) -> Result<Vec<TagData>, MemoryDbError>
pub fn untag_resource( &mut self, resource_arn: &str, tag_keys: &[String], ) -> Result<Vec<TagData>, MemoryDbError>
Trait Implementations§
Source§impl Debug for MemoryDbState
impl Debug for MemoryDbState
Auto Trait Implementations§
impl Forget for MemoryDbState
impl Freeze for MemoryDbStatewhere
*const u8 is !null: Freeze,
PhantomData<(String, Cluster)>: Freeze,
PhantomData<(String, SnapshotData)>: Freeze,
PhantomData<(String, SubnetGroupData)>: Freeze,
PhantomData<(String, AclData)>: Freeze,
PhantomData<(String, Vec<TagData>)>: Freeze,
impl Move for MemoryDbState
impl RefUnwindSafe for MemoryDbState
impl Send for MemoryDbState
impl Sync for MemoryDbState
impl Unpin for MemoryDbState
impl UnsafeUnpin for MemoryDbStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Cluster)>: UnsafeUnpin,
PhantomData<(String, SnapshotData)>: UnsafeUnpin,
PhantomData<(String, SubnetGroupData)>: UnsafeUnpin,
PhantomData<(String, AclData)>: UnsafeUnpin,
PhantomData<(String, Vec<TagData>)>: UnsafeUnpin,
impl UnwindSafe for MemoryDbStatewhere
HashMap<String, Cluster>: UnwindSafe,
HashMap<String, SnapshotData>: UnwindSafe,
HashMap<String, SubnetGroupData>: UnwindSafe,
HashMap<String, AclData>: UnwindSafe,
HashMap<String, Vec<TagData>>: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreCreates a shared type from an unshared type.