Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.
Synopsis
- data EnableOrganizationAdminAccount = EnableOrganizationAdminAccount' {}
- newEnableOrganizationAdminAccount :: Text -> EnableOrganizationAdminAccount
- enableOrganizationAdminAccount_adminAccountId :: Lens' EnableOrganizationAdminAccount Text
- data EnableOrganizationAdminAccountResponse = EnableOrganizationAdminAccountResponse' {
- httpStatus :: Int
- newEnableOrganizationAdminAccountResponse :: Int -> EnableOrganizationAdminAccountResponse
- enableOrganizationAdminAccountResponse_httpStatus :: Lens' EnableOrganizationAdminAccountResponse Int
Creating a Request
data EnableOrganizationAdminAccount Source #
See: newEnableOrganizationAdminAccount
smart constructor.
EnableOrganizationAdminAccount' | |
|
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:
$sel:adminAccountId:EnableOrganizationAdminAccount'
, enableOrganizationAdminAccount_adminAccountId
- The Amazon Web Services account identifier of the account to designate
as the Security Hub administrator account.
Request Lenses
enableOrganizationAdminAccount_adminAccountId :: Lens' EnableOrganizationAdminAccount Text Source #
The Amazon Web Services account identifier of the account to designate as the Security Hub administrator account.
Destructuring the Response
data EnableOrganizationAdminAccountResponse Source #
See: newEnableOrganizationAdminAccountResponse
smart constructor.
EnableOrganizationAdminAccountResponse' | |
|
Instances
Eq EnableOrganizationAdminAccountResponse Source # | |
Read EnableOrganizationAdminAccountResponse Source # | |
Show EnableOrganizationAdminAccountResponse Source # | |
Generic EnableOrganizationAdminAccountResponse Source # | |
Defined in Amazonka.SecurityHub.EnableOrganizationAdminAccount type Rep EnableOrganizationAdminAccountResponse :: Type -> Type # | |
NFData EnableOrganizationAdminAccountResponse Source # | |
type Rep EnableOrganizationAdminAccountResponse Source # | |
Defined in Amazonka.SecurityHub.EnableOrganizationAdminAccount type Rep EnableOrganizationAdminAccountResponse = D1 ('MetaData "EnableOrganizationAdminAccountResponse" "Amazonka.SecurityHub.EnableOrganizationAdminAccount" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "EnableOrganizationAdminAccountResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newEnableOrganizationAdminAccountResponse Source #
Create a value of EnableOrganizationAdminAccountResponse
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:
$sel:httpStatus:EnableOrganizationAdminAccountResponse'
, enableOrganizationAdminAccountResponse_httpStatus
- The response's http status code.
Response Lenses
enableOrganizationAdminAccountResponse_httpStatus :: Lens' EnableOrganizationAdminAccountResponse Int Source #
The response's http status code.