aws.organizations.list_organizational_units_for_parent
Example SQL Queries
SELECT * FROMaws.organizations.list_organizational_units_for_parentWHERE"parent_id" = 'VALUE';Description
Lists the organizational units (OUs) in a parent organizational unit or root.
Always check the NextToken response parameter for a null value when calling a List* operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display.
This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.
Table Definition
| Column Name | Column Data Type |
|---|---|
| parent_id Required Input Column The unique identifier (ID) of the root or OU whose child OUs you want to list. The regex pattern for a parent ID string requires one of the following:
| VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| arn The Amazon Resource Name (ARN) of this OU. For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference. | VARCHAR |
| id The unique identifier (ID) associated with this OU. The ID is unique to the organization only. 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. | VARCHAR |
| name The friendly name of this OU. The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range. | VARCHAR |