Module Smaws_Client_Organizations.CreateOrganizationalUnit

Creates an organizational unit (OU) within a root or parent OU. An OU is a container for accounts that enables you to organize your accounts to apply policies according to your business requirements. The number of levels deep that you can nest OUs is dependent upon the policy types enabled for that root. For service control policies, the limit is five.

For more information about OUs, see Managing organizational units (OUs) in the Organizations User Guide.

If the request includes tags, then the requester must have the organizations:TagResource permission.

You can only call this operation from the management account.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `DuplicateOrganizationalUnitException of Types.duplicate_organizational_unit_exception | `InvalidInputException of Types.invalid_input_exception | `ParentNotFoundException of Types.parent_not_found_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_organizational_unit_request -> (Types.create_organizational_unit_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `DuplicateOrganizationalUnitException of Types.duplicate_organizational_unit_exception | `InvalidInputException of Types.invalid_input_exception | `ParentNotFoundException of Types.parent_not_found_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_organizational_unit_request -> (Types.create_organizational_unit_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `DuplicateOrganizationalUnitException of Types.duplicate_organizational_unit_exception | `InvalidInputException of Types.invalid_input_exception | `ParentNotFoundException of Types.parent_not_found_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception ] * Smaws_Lib.Response.metadata) Stdlib.result