pub struct SupportData {
pub account_id: String,
pub region: String,
pub cases: BTreeMap<String, Value>,
pub communications: BTreeMap<String, Vec<Value>>,
pub attachment_sets: BTreeMap<String, Value>,
pub attachments: BTreeMap<String, Value>,
pub ta_refresh: BTreeMap<String, String>,
}Expand description
Per-account AWS Support state.
Fields§
§account_id: StringThe account id this partition belongs to (for id synthesis).
region: StringThe region this partition belongs to.
cases: BTreeMap<String, Value>Support cases keyed by caseId; each value is the CaseDetails wire
object.
communications: BTreeMap<String, Vec<Value>>Per-case communication thread keyed by caseId; each entry is a
Communication wire object, newest last.
attachment_sets: BTreeMap<String, Value>Attachment sets keyed by attachmentSetId. Each value carries
expiryTime and the list of member attachmentIds.
attachments: BTreeMap<String, Value>Individual attachments keyed by attachmentId; each value carries
fileName and base64 data (the Attachment wire object).
ta_refresh: BTreeMap<String, String>Trusted Advisor per-check refresh status keyed by checkId; one of
none / enqueued / processing / success.
Implementations§
Source§impl SupportData
impl SupportData
Sourcepub fn reconcile(&mut self) -> bool
pub fn reconcile(&mut self) -> bool
There is no timer-driven lifecycle to resume: the Trusted Advisor
refresh state machine advances only on an explicit read, so a restart
leaves it exactly as persisted. Kept for symmetry with the other
services’ persistence hook. Always returns false (nothing settled).
Sourcepub fn advance_refresh(&mut self, check_id: &str) -> String
pub fn advance_refresh(&mut self, check_id: &str) -> String
Advance one check’s refresh status one step toward success, returning
the resulting status. none/absent stays none until an explicit
refresh enqueues it.
Trait Implementations§
Source§impl AccountState for SupportData
impl AccountState for SupportData
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
Source§fn inherit_from(&mut self, _sibling: &Self)
fn inherit_from(&mut self, _sibling: &Self)
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 SupportData
impl Clone for SupportData
Source§fn clone(&self) -> SupportData
fn clone(&self) -> SupportData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more