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 |
Deletes an organizational unit (OU) 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 management account.
Synopsis
- data DeleteOrganizationalUnit = DeleteOrganizationalUnit' {}
- newDeleteOrganizationalUnit :: Text -> DeleteOrganizationalUnit
- deleteOrganizationalUnit_organizationalUnitId :: Lens' DeleteOrganizationalUnit Text
- data DeleteOrganizationalUnitResponse = DeleteOrganizationalUnitResponse' {
- newDeleteOrganizationalUnitResponse :: DeleteOrganizationalUnitResponse
Creating a Request
data DeleteOrganizationalUnit Source #
See: newDeleteOrganizationalUnit
smart constructor.
DeleteOrganizationalUnit' | |
|
Instances
newDeleteOrganizationalUnit Source #
Create a value of DeleteOrganizationalUnit
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:organizationalUnitId:DeleteOrganizationalUnit'
, deleteOrganizationalUnit_organizationalUnitId
- 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 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
Request Lenses
deleteOrganizationalUnit_organizationalUnitId :: 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 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
Destructuring the Response
data DeleteOrganizationalUnitResponse Source #
See: newDeleteOrganizationalUnitResponse
smart constructor.
Instances
Eq DeleteOrganizationalUnitResponse Source # | |
Read DeleteOrganizationalUnitResponse Source # | |
Show DeleteOrganizationalUnitResponse Source # | |
Generic DeleteOrganizationalUnitResponse Source # | |
NFData DeleteOrganizationalUnitResponse Source # | |
Defined in Amazonka.Organizations.DeleteOrganizationalUnit rnf :: DeleteOrganizationalUnitResponse -> () # | |
type Rep DeleteOrganizationalUnitResponse Source # | |
Defined in Amazonka.Organizations.DeleteOrganizationalUnit type Rep DeleteOrganizationalUnitResponse = D1 ('MetaData "DeleteOrganizationalUnitResponse" "Amazonka.Organizations.DeleteOrganizationalUnit" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "DeleteOrganizationalUnitResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newDeleteOrganizationalUnitResponse :: DeleteOrganizationalUnitResponse Source #
Create a value of DeleteOrganizationalUnitResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.