Skip to main content

Module state

Module state 

Source
Expand description

Account-partitioned, serializable state for AWS Amplify’s (amplify) control plane.

Each resource is stored as its already-output-valid wire JSON object (serde_json::Value, camelCase members matching the restJson1 member names) so Get* echoes exactly what Create* / Update* persisted. Storing the wire shape directly keeps nested configuration (customRules, cacheConfig, subDomains, …) round-tripping verbatim.

Apps own their branches, domain associations, backend environments, and per-branch jobs; webhooks live in an account-global map keyed by webhook id (they are addressed directly by GET /webhooks/{webhookId}). Every map key is a plain String so the snapshot never depends on the tuple-key serde adapter that has silently broken snapshot serialization on other services.

The async domain-verification and job-build lifecycles are modelled by advancing the stored domainStatus / job status on the next read; the same reconciliation runs on restart so an interrupted lifecycle never wedges.

Structs§

AmplifyData
Per-account AWS Amplify state.
AmplifySnapshot
AppRecord
One Amplify app plus the child resources it owns.

Constants§

AMPLIFY_SNAPSHOT_SCHEMA_VERSION

Type Aliases§

SharedAmplifyState