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.RegisterOrganizationAdminAccount
Description
Enables an Amazon Web Services account within the organization as the delegated administrator for Audit Manager.
Synopsis
- data RegisterOrganizationAdminAccount = RegisterOrganizationAdminAccount' {}
- newRegisterOrganizationAdminAccount :: Text -> RegisterOrganizationAdminAccount
- registerOrganizationAdminAccount_adminAccountId :: Lens' RegisterOrganizationAdminAccount Text
- data RegisterOrganizationAdminAccountResponse = RegisterOrganizationAdminAccountResponse' {}
- newRegisterOrganizationAdminAccountResponse :: Int -> RegisterOrganizationAdminAccountResponse
- registerOrganizationAdminAccountResponse_adminAccountId :: Lens' RegisterOrganizationAdminAccountResponse (Maybe Text)
- registerOrganizationAdminAccountResponse_organizationId :: Lens' RegisterOrganizationAdminAccountResponse (Maybe Text)
- registerOrganizationAdminAccountResponse_httpStatus :: Lens' RegisterOrganizationAdminAccountResponse Int
Creating a Request
data RegisterOrganizationAdminAccount Source #
See: newRegisterOrganizationAdminAccount
smart constructor.
Constructors
RegisterOrganizationAdminAccount' | |
Fields
|
Instances
newRegisterOrganizationAdminAccount Source #
Arguments
:: Text | |
-> RegisterOrganizationAdminAccount |
Create a value of RegisterOrganizationAdminAccount
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:RegisterOrganizationAdminAccount'
, registerOrganizationAdminAccount_adminAccountId
- The identifier for the specified delegated administrator account.
Request Lenses
registerOrganizationAdminAccount_adminAccountId :: Lens' RegisterOrganizationAdminAccount Text Source #
The identifier for the specified delegated administrator account.
Destructuring the Response
data RegisterOrganizationAdminAccountResponse Source #
See: newRegisterOrganizationAdminAccountResponse
smart constructor.
Constructors
RegisterOrganizationAdminAccountResponse' | |
Fields
|
Instances
newRegisterOrganizationAdminAccountResponse Source #
Arguments
:: Int | |
-> RegisterOrganizationAdminAccountResponse |
Create a value of RegisterOrganizationAdminAccountResponse
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:RegisterOrganizationAdminAccount'
, registerOrganizationAdminAccountResponse_adminAccountId
- The identifier for the specified delegated administrator account.
$sel:organizationId:RegisterOrganizationAdminAccountResponse'
, registerOrganizationAdminAccountResponse_organizationId
- The identifier for the specified organization.
$sel:httpStatus:RegisterOrganizationAdminAccountResponse'
, registerOrganizationAdminAccountResponse_httpStatus
- The response's http status code.
Response Lenses
registerOrganizationAdminAccountResponse_adminAccountId :: Lens' RegisterOrganizationAdminAccountResponse (Maybe Text) Source #
The identifier for the specified delegated administrator account.
registerOrganizationAdminAccountResponse_organizationId :: Lens' RegisterOrganizationAdminAccountResponse (Maybe Text) Source #
The identifier for the specified organization.
registerOrganizationAdminAccountResponse_httpStatus :: Lens' RegisterOrganizationAdminAccountResponse Int Source #
The response's http status code.