amazonka-organizations-1.6.0: Amazon Organizations SDK.

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

Network.AWS.Organizations.DeleteOrganizationalUnit

Contents

Description

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.

Synopsis

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 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.

data DeleteOrganizationalUnit Source #

See: deleteOrganizationalUnit smart constructor.

Instances

Eq DeleteOrganizationalUnit Source # 
Data DeleteOrganizationalUnit Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteOrganizationalUnit -> c DeleteOrganizationalUnit #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteOrganizationalUnit #

toConstr :: DeleteOrganizationalUnit -> Constr #

dataTypeOf :: DeleteOrganizationalUnit -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteOrganizationalUnit) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteOrganizationalUnit) #

gmapT :: (forall b. Data b => b -> b) -> DeleteOrganizationalUnit -> DeleteOrganizationalUnit #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteOrganizationalUnit -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteOrganizationalUnit -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteOrganizationalUnit -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteOrganizationalUnit -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteOrganizationalUnit -> m DeleteOrganizationalUnit #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteOrganizationalUnit -> m DeleteOrganizationalUnit #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteOrganizationalUnit -> m DeleteOrganizationalUnit #

Read DeleteOrganizationalUnit Source # 
Show DeleteOrganizationalUnit Source # 
Generic DeleteOrganizationalUnit Source # 
Hashable DeleteOrganizationalUnit Source # 
ToJSON DeleteOrganizationalUnit Source # 
NFData DeleteOrganizationalUnit Source # 
AWSRequest DeleteOrganizationalUnit Source # 
ToHeaders DeleteOrganizationalUnit Source # 
ToPath DeleteOrganizationalUnit Source # 
ToQuery DeleteOrganizationalUnit Source # 
type Rep DeleteOrganizationalUnit Source # 
type Rep DeleteOrganizationalUnit = D1 * (MetaData "DeleteOrganizationalUnit" "Network.AWS.Organizations.DeleteOrganizationalUnit" "amazonka-organizations-1.6.0-rHxjcIb8Bn6XT7VgZWDi9" True) (C1 * (MetaCons "DeleteOrganizationalUnit'" PrefixI True) (S1 * (MetaSel (Just Symbol "_dOrganizationalUnitId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs DeleteOrganizationalUnit Source # 

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.

Instances

Eq DeleteOrganizationalUnitResponse Source # 
Data DeleteOrganizationalUnitResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteOrganizationalUnitResponse -> c DeleteOrganizationalUnitResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteOrganizationalUnitResponse #

toConstr :: DeleteOrganizationalUnitResponse -> Constr #

dataTypeOf :: DeleteOrganizationalUnitResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteOrganizationalUnitResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteOrganizationalUnitResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteOrganizationalUnitResponse -> DeleteOrganizationalUnitResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteOrganizationalUnitResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteOrganizationalUnitResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteOrganizationalUnitResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteOrganizationalUnitResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteOrganizationalUnitResponse -> m DeleteOrganizationalUnitResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteOrganizationalUnitResponse -> m DeleteOrganizationalUnitResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteOrganizationalUnitResponse -> m DeleteOrganizationalUnitResponse #

Read DeleteOrganizationalUnitResponse Source # 
Show DeleteOrganizationalUnitResponse Source # 
Generic DeleteOrganizationalUnitResponse Source # 
NFData DeleteOrganizationalUnitResponse Source # 
type Rep DeleteOrganizationalUnitResponse Source # 
type Rep DeleteOrganizationalUnitResponse = D1 * (MetaData "DeleteOrganizationalUnitResponse" "Network.AWS.Organizations.DeleteOrganizationalUnit" "amazonka-organizations-1.6.0-rHxjcIb8Bn6XT7VgZWDi9" False) (C1 * (MetaCons "DeleteOrganizationalUnitResponse'" PrefixI False) (U1 *))