| 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 |
Amazonka.AuditManager.RegisterAccount
Description
Enables Audit Manager for the specified Amazon Web Services account.
Synopsis
- data RegisterAccount = RegisterAccount' {}
- newRegisterAccount :: RegisterAccount
- registerAccount_kmsKey :: Lens' RegisterAccount (Maybe Text)
- registerAccount_delegatedAdminAccount :: Lens' RegisterAccount (Maybe Text)
- data RegisterAccountResponse = RegisterAccountResponse' {}
- newRegisterAccountResponse :: Int -> RegisterAccountResponse
- registerAccountResponse_status :: Lens' RegisterAccountResponse (Maybe AccountStatus)
- registerAccountResponse_httpStatus :: Lens' RegisterAccountResponse Int
Creating a Request
data RegisterAccount Source #
See: newRegisterAccount smart constructor.
Constructors
| RegisterAccount' | |
Instances
newRegisterAccount :: RegisterAccount Source #
Create a value of RegisterAccount 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:kmsKey:RegisterAccount', registerAccount_kmsKey - The KMS key details.
$sel:delegatedAdminAccount:RegisterAccount', registerAccount_delegatedAdminAccount - The delegated administrator account for Audit Manager.
Request Lenses
registerAccount_kmsKey :: Lens' RegisterAccount (Maybe Text) Source #
The KMS key details.
registerAccount_delegatedAdminAccount :: Lens' RegisterAccount (Maybe Text) Source #
The delegated administrator account for Audit Manager.
Destructuring the Response
data RegisterAccountResponse Source #
See: newRegisterAccountResponse smart constructor.
Constructors
| RegisterAccountResponse' | |
Fields
| |
Instances
newRegisterAccountResponse Source #
Create a value of RegisterAccountResponse 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:status:RegisterAccountResponse', registerAccountResponse_status - The status of the account registration request.
$sel:httpStatus:RegisterAccountResponse', registerAccountResponse_httpStatus - The response's http status code.
Response Lenses
registerAccountResponse_status :: Lens' RegisterAccountResponse (Maybe AccountStatus) Source #
The status of the account registration request.
registerAccountResponse_httpStatus :: Lens' RegisterAccountResponse Int Source #
The response's http status code.