Skip to main content

Module state

Module state 

Source
Expand description

Account-partitioned, serializable state for Amazon Comprehend (comprehend).

Every resource is stored as its already-output-valid wire JSON object (serde_json::Value, PascalCase members matching the awsJson1_1 member names) so a Describe* echoes exactly what its Create* / Start* persisted. Storing the wire shape directly keeps nested configuration (InputDataConfig, OutputDataConfig, VpcConfig, TaskConfig, …) round-tripping verbatim.

Analysis jobs live in one jobs map keyed by their generated JobId; the job family (which Describe*Job / List*Jobs / Stop*Job a job belongs to) is tracked in the job_families side map so a family’s List can filter and a Describe can reject a job id from another family. Tags live in an ARN-keyed side map so ListTagsForResource has a single source of truth.

The asynchronous lifecycles are modelled by advancing the stored status on the next read; the same reconciliation runs on restart so an interrupted transition never wedges.

Structs§

ComprehendData
Per-account Amazon Comprehend state.
ComprehendSnapshot

Constants§

COMPREHEND_SNAPSHOT_SCHEMA_VERSION

Type Aliases§

SharedComprehendState