Creates an organizational unit (OU) within a root or parent OU. An OU is a container
for accounts that enables you to organize your accounts to apply policies according to
your business requirements. The number of levels deep that you can nest OUs is dependent
upon the policy types enabled for that root. For service control policies, the limit is
five.
Creates an organizational unit (OU) within a root or parent OU. An OU is a container for accounts that enables you to organize your accounts to apply policies according to your business requirements. The number of levels deep that you can nest OUs is dependent upon the policy types enabled for that root. For service control policies, the limit is five.
For more information about OUs, see Managing Organizational Units in the Organizations User Guide.
If the request includes tags, then the requester must have the
organizations:TagResource
permission.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, CreateOrganizationalUnitCommand } from "@aws-sdk/client-organizations"; // ES Modules import // const { OrganizationsClient, CreateOrganizationalUnitCommand } = require("@aws-sdk/client-organizations"); // CommonJS import const client = new OrganizationsClient(config); const command = new CreateOrganizationalUnitCommand(input); const response = await client.send(command);
CreateOrganizationalUnitCommandInput for command's
input
shape.CreateOrganizationalUnitCommandOutput for command's
response
shape.config for OrganizationsClient's
config
shape.