Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DisableOrganizationAdminAccountCommand

Removes the Detective administrator account in the current Region. Deletes the organization behavior graph.

Can only be called by the organization management account.

Removing the Detective administrator account does not affect the delegated administrator account for Detective in Organizations.

To remove the delegated administrator account in Organizations, use the Organizations API. Removing the delegated administrator account also removes the Detective administrator account in all Regions, except for Regions where the Detective administrator account is the organization management account.

example

Use a bare-bones client and the command you need to make an API call.

import { DetectiveClient, DisableOrganizationAdminAccountCommand } from "@aws-sdk/client-detective"; // ES Modules import
// const { DetectiveClient, DisableOrganizationAdminAccountCommand } = require("@aws-sdk/client-detective"); // CommonJS import
const client = new DetectiveClient(config);
const command = new DisableOrganizationAdminAccountCommand(input);
const response = await client.send(command);
see

DisableOrganizationAdminAccountCommandInput for command's input shape.

see

DisableOrganizationAdminAccountCommandOutput for command's response shape.

see

config for DetectiveClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DisableOrganizationAdminAccountCommandInput

Readonly middlewareStack