create_folder
¶
create_folder(
parent_folder_id: ResourceIdType,
*,
config_overrides: Optional[WorkDocsClientConfig] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
name: Optional[ResourceNameType] = None,
) -> CreateFolderResponse
Creates a folder with the specified name and parent folder.
Parameters:
-
authentication_token(Optional[AuthenticationHeaderType], default:None) –Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
-
name(Optional[ResourceNameType], default:None) –The name of the new folder.
-
parent_folder_id(ResourceIdType) –The ID of the parent folder.
Raises:
-
ConcurrentModificationException–The resource hierarchy is changing.
-
ConflictingOperationException–Another operation is in progress on the resource that conflicts with the current operation.
-
EntityAlreadyExistsException–The resource already exists.
-
EntityNotExistsException–The resource does not exist.
-
FailedDependencyException–The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.
-
LimitExceededException–The maximum of 100,000 files and folders under the parent folder has been exceeded.
-
ProhibitedStateException–The specified document version is not in the INITIALIZED state.
-
ServiceUnavailableException–One or more of the dependencies is unavailable.
-
UnauthorizedOperationException–The operation is not permitted.
-
UnauthorizedResourceAccessException–The caller does not have access to perform the action on the resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workdocs/_services/work_docs.py
690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 | |