Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data MoveAccount = MoveAccount' {}
- newMoveAccount :: Text -> Text -> Text -> MoveAccount
- moveAccount_accountId :: Lens' MoveAccount Text
- moveAccount_sourceParentId :: Lens' MoveAccount Text
- moveAccount_destinationParentId :: Lens' MoveAccount Text
- data MoveAccountResponse = MoveAccountResponse' {
- newMoveAccountResponse :: MoveAccountResponse
Creating a Request
data MoveAccount Source #
See: newMoveAccount
smart constructor.
MoveAccount' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> MoveAccount |
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.
Instances
Eq MoveAccountResponse Source # | |
Defined in Amazonka.Organizations.MoveAccount (==) :: MoveAccountResponse -> MoveAccountResponse -> Bool # (/=) :: MoveAccountResponse -> MoveAccountResponse -> Bool # | |
Read MoveAccountResponse Source # | |
Show MoveAccountResponse Source # | |
Defined in Amazonka.Organizations.MoveAccount showsPrec :: Int -> MoveAccountResponse -> ShowS # show :: MoveAccountResponse -> String # showList :: [MoveAccountResponse] -> ShowS # | |
Generic MoveAccountResponse Source # | |
Defined in Amazonka.Organizations.MoveAccount type Rep MoveAccountResponse :: Type -> Type # from :: MoveAccountResponse -> Rep MoveAccountResponse x # to :: Rep MoveAccountResponse x -> MoveAccountResponse # | |
NFData MoveAccountResponse Source # | |
Defined in Amazonka.Organizations.MoveAccount rnf :: MoveAccountResponse -> () # | |
type Rep MoveAccountResponse Source # | |
newMoveAccountResponse :: MoveAccountResponse Source #
Create a value of MoveAccountResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.