Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MoveAccountCommand

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.

example

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);
see

MoveAccountCommandInput for command's input shape.

see

MoveAccountCommandOutput for command's response shape.

see

config for OrganizationsClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: MoveAccountCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<MoveAccountCommandInput, MoveAccountCommandOutput>

Methods

Static getEndpointParameterInstructions