update_folder
async
¶
update_folder(
folder_id: ResourceIdType,
*,
config_overrides: Optional[AsyncWorkDocsClientConfig] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
name: Optional[ResourceNameType] = None,
parent_folder_id: Optional[ResourceIdType] = None,
resource_state: Optional[ResourceStateType] = None,
) -> None
Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.
Parameters:
-
authentication_token(Optional[AuthenticationHeaderType], default:None) –Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
-
folder_id(ResourceIdType) –The ID of the folder.
-
name(Optional[ResourceNameType], default:None) –The name of the folder.
-
parent_folder_id(Optional[ResourceIdType], default:None) –The ID of the parent folder.
-
resource_state(Optional[ResourceStateType], default:None) –The resource state of the folder. Only ACTIVE and RECYCLED are accepted values from the API.
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/async_work_docs.py
4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 | |