Session
Source:
src/AWS/Macie2/Session.ts
The Amazon Macie session — the account/region singleton that enables Macie
data-security scanning. Only one session can exist per region, so this is a
capture-and-restore singleton: Macie exposes no session tags, so ownership is
tracked by Alchemy state. Adopting a session that Alchemy did not create
requires --adopt, and destroy disables Macie for the account.
Enabling Macie
Section titled “Enabling Macie”Enable Macie
const macie = yield* Macie2.Session("Macie", {});Enable with frequent findings and pause later
const macie = yield* Macie2.Session("Macie", { status: "ENABLED", findingPublishingFrequency: "FIFTEEN_MINUTES",});