Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data EnableOrganizationAdminAccount = EnableOrganizationAdminAccount' {}
- newEnableOrganizationAdminAccount :: Text -> EnableOrganizationAdminAccount
- enableOrganizationAdminAccount_accountId :: Lens' EnableOrganizationAdminAccount Text
- data EnableOrganizationAdminAccountResponse = EnableOrganizationAdminAccountResponse' {
- newEnableOrganizationAdminAccountResponse :: EnableOrganizationAdminAccountResponse
Creating a Request
data EnableOrganizationAdminAccount Source #
See: newEnableOrganizationAdminAccount
smart constructor.
Instances
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 #
See: newEnableOrganizationAdminAccountResponse
smart constructor.
Instances
Generic EnableOrganizationAdminAccountResponse Source # | |
Defined in Amazonka.Detective.EnableOrganizationAdminAccount type Rep EnableOrganizationAdminAccountResponse :: Type -> Type # | |
Read EnableOrganizationAdminAccountResponse Source # | |
Show EnableOrganizationAdminAccountResponse Source # | |
NFData EnableOrganizationAdminAccountResponse Source # | |
Defined in Amazonka.Detective.EnableOrganizationAdminAccount rnf :: EnableOrganizationAdminAccountResponse -> () # | |
Eq EnableOrganizationAdminAccountResponse Source # | |
type Rep EnableOrganizationAdminAccountResponse Source # | |
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.