organizational_units_list_only
Lists organizational_units
in a region or regions, for all properties use organizational_units
Overview
Name | organizational_units_list_only |
Type | Resource |
Description | You can use organizational units (OUs) to group accounts together to administer as a single unit. This greatly simplifies the management of your accounts. For example, you can attach a policy-based control to an OU, and all accounts within the OU automatically inherit the policy. You can create multiple OUs within a single organization, and you can create OUs within other OUs. Each OU can contain multiple accounts, and you can move accounts from one OU to another. However, OU names must be unique within a parent OU or root. |
Id | aws.organizations.organizational_units_list_only |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | The Amazon Resource Name (ARN) of this OU. |
id | string | The unique identifier (ID) associated with this OU. |
name | string | The friendly name of this OU. |
parent_id | string | The unique identifier (ID) of the parent root or OU that you want to create the new OU in. |
tags | array | A list of tags that you want to attach to the newly created OU. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
list_resources | SELECT | region |
SELECT
examples
Lists all organizational_units
in a region.
SELECT
region,
id
FROM aws.organizations.organizational_units_list_only
WHERE region = 'us-east-1';
Permissions
For permissions required to operate on the organizational_units_list_only
resource, see organizational_units