Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Deletes an organizational unit from a root or another OU. You must first remove all accounts and child OUs from the OU that you want to delete.
This operation can be called only from the organization's master account.
Creating a Request
deleteOrganizationalUnit Source #
Creates a value of DeleteOrganizationalUnit
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dOrganizationalUnitId
- The unique identifier (ID) of the organizational unit that you want to delete. You can get the ID from theListOrganizationalUnitsForParent
operation. The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
data DeleteOrganizationalUnit Source #
See: deleteOrganizationalUnit
smart constructor.
Request Lenses
dOrganizationalUnitId :: Lens' DeleteOrganizationalUnit Text Source #
The unique identifier (ID) of the organizational unit that you want to delete. You can get the ID from the ListOrganizationalUnitsForParent
operation. The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
Destructuring the Response
deleteOrganizationalUnitResponse :: DeleteOrganizationalUnitResponse Source #
Creates a value of DeleteOrganizationalUnitResponse
with the minimum fields required to make a request.
data DeleteOrganizationalUnitResponse Source #
See: deleteOrganizationalUnitResponse
smart constructor.