Skip to content

AcceptInvitation

Source: src/AWS/Detective/AcceptInvitation.ts

Runtime binding for detective:AcceptInvitation.

Accepts an invitation into an administrator account’s behavior graph — the graph belongs to the admin account, so its ARN arrives at runtime (typically from ListInvitations) rather than from a bound resource. Provide the implementation with Effect.provide(AWS.Detective.AcceptInvitationHttp).

// init — account-level binding, no resource argument
const acceptInvitation = yield* AWS.Detective.AcceptInvitation();
// runtime
yield* acceptInvitation({ GraphArn: invitation.GraphArn! });