ListInvestigationGroups
Source:
src/AWS/AIOps/ListInvestigationGroups.ts
Runtime binding for aiops:ListInvestigationGroups.
Enumerates the Region’s investigation groups (each item carries the
group’s name and ARN). An account holds at most one investigation group
per Region, so this doubles as an existence probe. Provide the
implementation with
Effect.provide(AWS.AIOps.ListInvestigationGroupsHttp).
Listing Investigation Groups
Section titled “Listing Investigation Groups”// init — account-level binding, no resource argumentconst listInvestigationGroups = yield* AWS.AIOps.ListInvestigationGroups();
// runtimeconst { investigationGroups } = yield* listInvestigationGroups();for (const group of investigationGroups ?? []) { yield* Effect.log(`${group.name}: ${group.arn}`);}