amazonka-organizations-1.6.1: 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.UpdateOrganizationalUnit

Contents

Description

Renames the specified organizational unit (OU). The ID and ARN do not change. The child OUs and accounts remain in place, and any attached policies of the OU remain attached.

This operation can be called only from the organization's master account.

Synopsis

Creating a Request

updateOrganizationalUnit Source #

Creates a value of UpdateOrganizationalUnit with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • uouName - The new name that you want to assign to the OU. The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
  • uouOrganizationalUnitId - The unique identifier (ID) of the OU that you want to rename. 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 UpdateOrganizationalUnit Source #

See: updateOrganizationalUnit smart constructor.

Instances
Eq UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Data UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Methods

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

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

toConstr :: UpdateOrganizationalUnit -> Constr #

dataTypeOf :: UpdateOrganizationalUnit -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Show UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Generic UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Associated Types

type Rep UpdateOrganizationalUnit :: Type -> Type #

Hashable UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

ToJSON UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

AWSRequest UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Associated Types

type Rs UpdateOrganizationalUnit :: Type #

ToHeaders UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

ToPath UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

ToQuery UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

NFData UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

type Rep UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

type Rep UpdateOrganizationalUnit = D1 (MetaData "UpdateOrganizationalUnit" "Network.AWS.Organizations.UpdateOrganizationalUnit" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "UpdateOrganizationalUnit'" PrefixI True) (S1 (MetaSel (Just "_uouName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uouOrganizationalUnitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs UpdateOrganizationalUnit Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Request Lenses

uouName :: Lens' UpdateOrganizationalUnit (Maybe Text) Source #

The new name that you want to assign to the OU. The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

uouOrganizationalUnitId :: Lens' UpdateOrganizationalUnit Text Source #

The unique identifier (ID) of the OU that you want to rename. 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

updateOrganizationalUnitResponse Source #

Creates a value of UpdateOrganizationalUnitResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateOrganizationalUnitResponse Source #

See: updateOrganizationalUnitResponse smart constructor.

Instances
Eq UpdateOrganizationalUnitResponse Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Data UpdateOrganizationalUnitResponse Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Methods

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

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

toConstr :: UpdateOrganizationalUnitResponse -> Constr #

dataTypeOf :: UpdateOrganizationalUnitResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateOrganizationalUnitResponse Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Show UpdateOrganizationalUnitResponse Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Generic UpdateOrganizationalUnitResponse Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

Associated Types

type Rep UpdateOrganizationalUnitResponse :: Type -> Type #

NFData UpdateOrganizationalUnitResponse Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

type Rep UpdateOrganizationalUnitResponse Source # 
Instance details

Defined in Network.AWS.Organizations.UpdateOrganizationalUnit

type Rep UpdateOrganizationalUnitResponse = D1 (MetaData "UpdateOrganizationalUnitResponse" "Network.AWS.Organizations.UpdateOrganizationalUnit" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "UpdateOrganizationalUnitResponse'" PrefixI True) (S1 (MetaSel (Just "_uoursOrganizationalUnit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OrganizationalUnit)) :*: S1 (MetaSel (Just "_uoursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

uoursOrganizationalUnit :: Lens' UpdateOrganizationalUnitResponse (Maybe OrganizationalUnit) Source #

A structure that contains the details about the specified OU, including its new name.