amazonka-detective-2.0: Amazon Detective SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Detective.EnableOrganizationAdminAccount

Description

Designates the Detective administrator account for the organization in the current Region.

If the account does not have Detective enabled, then enables Detective for that account and creates a new behavior graph.

Can only be called by the organization management account.

If the organization has a delegated administrator account in Organizations, then the Detective administrator account must be either the delegated administrator account or the organization management account.

If the organization does not have a delegated administrator account in Organizations, then you can choose any account in the organization. If you choose an account other than the organization management account, Detective calls Organizations to make that account the delegated administrator account for Detective. The organization management account cannot be the delegated administrator account.

Synopsis

Creating a Request

data EnableOrganizationAdminAccount Source #

See: newEnableOrganizationAdminAccount smart constructor.

Constructors

EnableOrganizationAdminAccount' 

Fields

  • accountId :: Text

    The Amazon Web Services account identifier of the account to designate as the Detective administrator account for the organization.

Instances

Instances details
ToJSON EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

ToHeaders EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

ToPath EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

ToQuery EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

AWSRequest EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

Generic EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

Associated Types

type Rep EnableOrganizationAdminAccount :: Type -> Type #

Read EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

Show EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

NFData EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

Eq EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

Hashable EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

type AWSResponse EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

type Rep EnableOrganizationAdminAccount Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

type Rep EnableOrganizationAdminAccount = D1 ('MetaData "EnableOrganizationAdminAccount" "Amazonka.Detective.EnableOrganizationAdminAccount" "amazonka-detective-2.0-7OiRDHTBp2P6vp0DOMdDcL" 'False) (C1 ('MetaCons "EnableOrganizationAdminAccount'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newEnableOrganizationAdminAccount Source #

Create a value of EnableOrganizationAdminAccount with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

EnableOrganizationAdminAccount, enableOrganizationAdminAccount_accountId - The Amazon Web Services account identifier of the account to designate as the Detective administrator account for the organization.

Request Lenses

enableOrganizationAdminAccount_accountId :: Lens' EnableOrganizationAdminAccount Text Source #

The Amazon Web Services account identifier of the account to designate as the Detective administrator account for the organization.

Destructuring the Response

data EnableOrganizationAdminAccountResponse Source #

Instances

Instances details
Generic EnableOrganizationAdminAccountResponse Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

Read EnableOrganizationAdminAccountResponse Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

Show EnableOrganizationAdminAccountResponse Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

NFData EnableOrganizationAdminAccountResponse Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

Eq EnableOrganizationAdminAccountResponse Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

type Rep EnableOrganizationAdminAccountResponse Source # 
Instance details

Defined in Amazonka.Detective.EnableOrganizationAdminAccount

type Rep EnableOrganizationAdminAccountResponse = D1 ('MetaData "EnableOrganizationAdminAccountResponse" "Amazonka.Detective.EnableOrganizationAdminAccount" "amazonka-detective-2.0-7OiRDHTBp2P6vp0DOMdDcL" 'False) (C1 ('MetaCons "EnableOrganizationAdminAccountResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newEnableOrganizationAdminAccountResponse :: EnableOrganizationAdminAccountResponse Source #

Create a value of EnableOrganizationAdminAccountResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.