Skip to content

EnableOrganizationAdminAccount

Source: src/AWS/Detective/EnableOrganizationAdminAccount.ts

Runtime binding for detective:EnableOrganizationAdminAccount.

Designates an organization account as the delegated Detective administrator. Callable only from the organization management account — the org-governance automation hook. Provide the implementation with Effect.provide(AWS.Detective.EnableOrganizationAdminAccountHttp).

// init — account-level binding, no resource argument
const enableOrganizationAdminAccount =
yield* AWS.Detective.EnableOrganizationAdminAccount();
// runtime
yield* enableOrganizationAdminAccount({ AccountId: securityAccountId });