libZSservicesZSamazonka-organizationsZSamazonka-organizations
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Organizations.DeleteOrganizationalUnit

Description

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

Creating a Request

data DeleteOrganizationalUnit Source #

See: newDeleteOrganizationalUnit smart constructor.

Constructors

DeleteOrganizationalUnit' 

Fields

  • organizationalUnitId :: Text

    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.

Instances

Instances details
Eq DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

Read DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

Show DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

Generic DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

Associated Types

type Rep DeleteOrganizationalUnit :: Type -> Type #

NFData DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

Hashable DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

ToJSON DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

AWSRequest DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

ToHeaders DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

ToPath DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

ToQuery DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

type Rep DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

type Rep DeleteOrganizationalUnit = D1 ('MetaData "DeleteOrganizationalUnit" "Amazonka.Organizations.DeleteOrganizationalUnit" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "DeleteOrganizationalUnit'" 'PrefixI 'True) (S1 ('MetaSel ('Just "organizationalUnitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteOrganizationalUnit Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

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

Instances details
Eq DeleteOrganizationalUnitResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

Read DeleteOrganizationalUnitResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

Show DeleteOrganizationalUnitResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

Generic DeleteOrganizationalUnitResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

Associated Types

type Rep DeleteOrganizationalUnitResponse :: Type -> Type #

NFData DeleteOrganizationalUnitResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeleteOrganizationalUnit

type Rep DeleteOrganizationalUnitResponse Source # 
Instance details

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.