winterbaume_memorydb/
types.rs1use std::collections::HashMap;
2
3use chrono::{DateTime, Utc};
4
5#[derive(Debug, Clone)]
7pub struct Cluster {
8 pub name: String,
9 pub arn: String,
10 pub status: String,
11 pub node_type: String,
12 pub num_shards: i32,
13 pub num_replicas_per_shard: i32,
14 pub description: String,
15 pub engine: String,
16 pub engine_version: String,
17 pub subnet_group_name: String,
18 pub security_group_ids: Vec<String>,
19 pub maintenance_window: String,
20 pub snapshot_retention_limit: i32,
21 pub snapshot_window: String,
22 pub acl_name: String,
23 pub parameter_group_name: String,
24 pub tls_enabled: bool,
25 pub auto_minor_version_upgrade: bool,
26 pub creation_time: DateTime<Utc>,
27}
28
29#[derive(Debug, Clone)]
31pub struct SnapshotData {
32 pub name: String,
33 pub arn: String,
34 pub status: String,
35 pub source: String,
36 pub cluster_name: String,
37 pub cluster_description: String,
38 pub cluster_engine: String,
39 pub cluster_engine_version: String,
40 pub cluster_node_type: String,
41 pub cluster_num_shards: i32,
42 pub cluster_subnet_group_name: String,
43 pub cluster_snapshot_retention_limit: i32,
44 pub cluster_snapshot_window: String,
45 pub cluster_maintenance_window: String,
46 pub cluster_parameter_group_name: String,
47 pub kms_key_id: Option<String>,
48}
49
50#[derive(Debug, Clone)]
52pub struct SubnetGroupData {
53 pub name: String,
54 pub arn: String,
55 pub description: String,
56 pub vpc_id: String,
57 pub subnet_ids: Vec<String>,
58}
59
60#[derive(Debug, Clone)]
62pub struct TagData {
63 pub key: String,
64 pub value: String,
65}
66
67#[derive(Debug, Clone)]
69pub struct AclData {
70 pub acl_name: String,
71 pub status: String,
72 pub user_names: Vec<String>,
73 pub minimum_engine_version: String,
74 pub arn: String,
75 pub tags: Vec<TagData>,
76}
77
78pub type TagsMap = HashMap<String, Vec<TagData>>;