Resource: awsOrganizationsOrganizationalUnit
Provides a resource to create an organizational unit.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.organizationsOrganizationalUnit.OrganizationsOrganizationalUnit(
this,
"example",
{
name: "example",
parentId: "${aws_organizations_organization.example.roots[0].id}",
}
);
Argument Reference
The following arguments are supported:
name
- The name for the organizational unitparentId
- ID of the parent organizational unit, which may be the roottags
- (Optional) Key-value map of resource tags. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
accounts
- List of child accounts for this Organizational Unit. Does not return account information for child Organizational Units. All elements have these attributes:arn
- ARN of the accountemail
- Email of the accountid
- Identifier of the accountname
- Name of the accountarn
- ARN of the organizational unitid
- Identifier of the organization unittagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Import
AWS Organizations Organizational Units can be imported by using the id
, e.g.,