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.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 # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Data MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

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 # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Show MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Generic MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Associated Types

type Rep MoveAccount :: Type -> Type #

Hashable MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

ToJSON MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

AWSRequest MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Associated Types

type Rs MoveAccount :: Type #

ToHeaders MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Methods

toHeaders :: MoveAccount -> [Header] #

ToPath MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

ToQuery MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

NFData MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Methods

rnf :: MoveAccount -> () #

type Rep MoveAccount Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

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

Defined in Network.AWS.Organizations.MoveAccount

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 # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Data MoveAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

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 # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Show MoveAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Generic MoveAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Associated Types

type Rep MoveAccountResponse :: Type -> Type #

NFData MoveAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

Methods

rnf :: MoveAccountResponse -> () #

type Rep MoveAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.MoveAccount

type Rep MoveAccountResponse = D1 (MetaData "MoveAccountResponse" "Network.AWS.Organizations.MoveAccount" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "MoveAccountResponse'" PrefixI False) (U1 :: Type -> Type))