Skip to content

CreateMembers

Source: src/AWS/Detective/CreateMembers.ts

Runtime binding for detective:CreateMembers.

Invites accounts into the behavior graph (or auto-enables organization accounts) — the automation hook for onboarding new accounts to Detective as they join the fleet. The graph ARN is injected from the bound Graph. Provide the implementation with Effect.provide(AWS.Detective.CreateMembersHttp).

// init
const createMembers = yield* AWS.Detective.CreateMembers(graph);
// runtime
yield* createMembers({
Accounts: [{ AccountId: "111122223333", EmailAddress: email }],
DisableEmailNotification: true,
});