fakecloud_dsql/lib.rs
1//! AWS Aurora DSQL (`dsql`) restJson1 control-plane service for fakecloud.
2//!
3//! Batch 1: the full 16-operation control plane from the AWS Smithy model --
4//! cluster lifecycle (Create/Get/Update/Delete/ListClusters), resource-based
5//! cluster policies (Put/Get/DeleteClusterPolicy), change streams
6//! (Create/Get/Delete/ListStreams), the VPC endpoint service-name lookup, and
7//! tagging (Tag/Untag/ListTagsForResource). Every operation is backed by real,
8//! account-partitioned, persisted state with AWS-shaped identifiers (26-char
9//! lowercase cluster ids, `arn:aws:dsql:...:cluster/<id>` ARNs), an async
10//! CREATING -> ACTIVE / DELETING -> DELETED lifecycle, `clientToken`
11//! idempotency, deletion-protection enforcement, and multi-region property
12//! round-tripping.
13//!
14//! The Postgres-compatible data plane (a real container the cluster endpoint
15//! resolves to, reachable with an IAM-derived connection token) lands in a
16//! follow-up batch; this batch establishes the control plane and full
17//! non-code surface. Unimplemented behavior returns a faithful modeled error,
18//! never a stub success.
19
20pub mod persistence;
21pub mod service;
22pub mod state;
23pub mod ticker;
24
25pub use service::DsqlService;
26pub use state::{DsqlState, SharedDsqlState, DSQL_SNAPSHOT_SCHEMA_VERSION};