Skip to content

/AWS1/CL_ORG=>UPDATEORGANIZATIONALUNIT()

About UpdateOrganizationalUnit

Renames the specified organizational unit (OU). The ID and ARN don't change. The child OUs and accounts remain in place, and any attached policies of the OU remain attached.

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

Method Signature

IMPORTING

Required arguments:

IV_ORGANIZATIONALUNITID TYPE /AWS1/ORGORGANIZATIONALUNITID /AWS1/ORGORGANIZATIONALUNITID

The unique identifier (ID) of the OU that you want to rename. You can get the ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.

Optional arguments:

IV_NAME TYPE /AWS1/ORGORGALUNITNAME /AWS1/ORGORGALUNITNAME

The new name that you want to assign to the OU.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ORGUPDATEORGALUNITRSP /AWS1/CL_ORGUPDATEORGALUNITRSP