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

Description

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

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

Synopsis

Creating a Request

data MoveAccount Source #

See: newMoveAccount smart constructor.

Constructors

MoveAccount' 

Fields

  • accountId :: Text

    The unique identifier (ID) of the account that you want to move.

    The regex pattern for an account ID string requires exactly 12 digits.

  • sourceParentId :: Text

    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 lowercase letters or digits.
    • Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
  • destinationParentId :: Text

    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 lowercase letters or digits.
    • Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.

Instances

Instances details
Eq MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Read MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Show MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Generic MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Associated Types

type Rep MoveAccount :: Type -> Type #

NFData MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Methods

rnf :: MoveAccount -> () #

Hashable MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

ToJSON MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

AWSRequest MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Associated Types

type AWSResponse MoveAccount #

ToHeaders MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Methods

toHeaders :: MoveAccount -> [Header] #

ToPath MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

ToQuery MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

type Rep MoveAccount Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

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

Defined in Amazonka.Organizations.MoveAccount

newMoveAccount Source #

Create a value of MoveAccount 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:accountId:MoveAccount', moveAccount_accountId - The unique identifier (ID) of the account that you want to move.

The regex pattern for an account ID string requires exactly 12 digits.

$sel:sourceParentId:MoveAccount', moveAccount_sourceParentId - 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 lowercase letters or digits.
  • Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.

$sel:destinationParentId:MoveAccount', moveAccount_destinationParentId - 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 lowercase letters or digits.
  • Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.

Request Lenses

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

moveAccount_sourceParentId :: 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 lowercase letters or digits.
  • Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.

moveAccount_destinationParentId :: 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 lowercase letters or digits.
  • Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.

Destructuring the Response

data MoveAccountResponse Source #

See: newMoveAccountResponse smart constructor.

Constructors

MoveAccountResponse' 

Instances

Instances details
Eq MoveAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Read MoveAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Show MoveAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Generic MoveAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Associated Types

type Rep MoveAccountResponse :: Type -> Type #

NFData MoveAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

Methods

rnf :: MoveAccountResponse -> () #

type Rep MoveAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.MoveAccount

type Rep MoveAccountResponse = D1 ('MetaData "MoveAccountResponse" "Amazonka.Organizations.MoveAccount" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "MoveAccountResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newMoveAccountResponse :: MoveAccountResponse Source #

Create a value of MoveAccountResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.