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.
Use a bare-bones client and the command you need to make an API call.
import { OrganizationsClient, MoveAccountCommand } from "@aws-sdk/client-organizations"; // ES Modules import // const { OrganizationsClient, MoveAccountCommand } = require("@aws-sdk/client-organizations"); // CommonJS import const client = new OrganizationsClient(config); const command = new MoveAccountCommand(input); const response = await client.send(command);
MoveAccountCommandInput for command's input shape.
input
MoveAccountCommandOutput for command's response shape.
response
config for OrganizationsClient's config shape.
config
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.
Use a bare-bones client and the command you need to make an API call.
import { OrganizationsClient, MoveAccountCommand } from "@aws-sdk/client-organizations"; // ES Modules import // const { OrganizationsClient, MoveAccountCommand } = require("@aws-sdk/client-organizations"); // CommonJS import const client = new OrganizationsClient(config); const command = new MoveAccountCommand(input); const response = await client.send(command);
MoveAccountCommandInput for command's
input
shape.MoveAccountCommandOutput for command's
response
shape.config for OrganizationsClient's
config
shape.