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.

Samples


fun main() { 
   //sampleStart 
   // The following example shows how to rename an OU. The output confirms the new name n n
val resp = organizationsClient.updateOrganizationalUnit {
    organizationalUnitId = "ou-examplerootid111-exampleouid111"
    name = "AccountingOU"
} 
   //sampleEnd
}