paws.management (version 0.1.0)

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

Description

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

Usage

organizations_move_account(AccountId, SourceParentId,
  DestinationParentId)

Arguments

AccountId

[required] 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

[required] 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.

DestinationParentId

[required] 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.

Request syntax

svc$move_account(
  AccountId = "string",
  SourceParentId = "string",
  DestinationParentId = "string"
)

Details

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

Examples

Run this code
# NOT RUN {
# The following example shows how to move a member account from the root
# to an OU:/n/n
# }
# NOT RUN {
svc$move_account(
  AccountId = "333333333333",
  DestinationParentId = "ou-examplerootid111-exampleouid111",
  SourceParentId = "r-examplerootid111"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab