amazonka-organizations-1.5.0: Amazon Organizations SDK.

Copyright(c) 2013-2017 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.MoveAccount

Contents

Description

Moves an account from its current source parent root or OU to the specified destination parent root or OU.

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

Synopsis

Creating a Request

moveAccount Source #

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

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

  • maAccountId - The unique identifier (ID) of the account that you want to move. The regex pattern for an account ID string requires exactly 12 digits.
  • maSourceParentId - The unique identifier (ID) of the root or organizational unit that you want to move the account from. The regex pattern for a parent ID string requires one of the following: * Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits. * Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
  • maDestinationParentId - The unique identifier (ID) of the root or organizational unit that you want to move the account to. The regex pattern for a parent ID string requires one of the following: * Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits. * Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.

data MoveAccount Source #

See: moveAccount smart constructor.

Instances

Eq MoveAccount Source # 
Data MoveAccount Source # 

Methods

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

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

toConstr :: MoveAccount -> Constr #

dataTypeOf :: MoveAccount -> DataType #

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

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

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

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

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

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

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

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

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

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

Read MoveAccount Source # 
Show MoveAccount Source # 
Generic MoveAccount Source # 

Associated Types

type Rep MoveAccount :: * -> * #

Hashable MoveAccount Source # 
ToJSON MoveAccount Source # 
NFData MoveAccount Source # 

Methods

rnf :: MoveAccount -> () #

AWSRequest MoveAccount Source # 
ToQuery MoveAccount Source # 
ToPath MoveAccount Source # 
ToHeaders MoveAccount Source # 

Methods

toHeaders :: MoveAccount -> [Header] #

type Rep MoveAccount Source # 
type Rep MoveAccount = D1 (MetaData "MoveAccount" "Network.AWS.Organizations.MoveAccount" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" False) (C1 (MetaCons "MoveAccount'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_maAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_maSourceParentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_maDestinationParentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs MoveAccount Source # 

Request Lenses

maAccountId :: Lens' MoveAccount Text Source #

The unique identifier (ID) of the account that you want to move. The regex pattern for an account ID string requires exactly 12 digits.

maSourceParentId :: Lens' MoveAccount Text Source #

The unique identifier (ID) of the root or organizational unit that you want to move the account from. The regex pattern for a parent ID string requires one of the following: * Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits. * Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.

maDestinationParentId :: Lens' MoveAccount Text Source #

The unique identifier (ID) of the root or organizational unit that you want to move the account to. The regex pattern for a parent ID string requires one of the following: * Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits. * Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.

Destructuring the Response

moveAccountResponse :: MoveAccountResponse Source #

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

data MoveAccountResponse Source #

See: moveAccountResponse smart constructor.

Instances

Eq MoveAccountResponse Source # 
Data MoveAccountResponse Source # 

Methods

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

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

toConstr :: MoveAccountResponse -> Constr #

dataTypeOf :: MoveAccountResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read MoveAccountResponse Source # 
Show MoveAccountResponse Source # 
Generic MoveAccountResponse Source # 
NFData MoveAccountResponse Source # 

Methods

rnf :: MoveAccountResponse -> () #

type Rep MoveAccountResponse Source # 
type Rep MoveAccountResponse = D1 (MetaData "MoveAccountResponse" "Network.AWS.Organizations.MoveAccount" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" False) (C1 (MetaCons "MoveAccountResponse'" PrefixI False) U1)