create_custom_metadata
¶
create_custom_metadata(
resource_id: ResourceIdType,
custom_metadata: CustomMetadataMap,
*,
config_overrides: Optional[WorkDocsClientConfig] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
version_id: Optional[DocumentVersionIdType] = None,
) -> CreateCustomMetadataResponse
Adds one or more custom properties to the specified resource (a folder, document, or version).
Parameters:
-
authentication_token(Optional[AuthenticationHeaderType], default:None) –Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
-
resource_id(ResourceIdType) –The ID of the resource.
-
version_id(Optional[DocumentVersionIdType], default:None) –The ID of the version, if the custom metadata is being added to a document version.
-
custom_metadata(CustomMetadataMap) –Custom metadata in the form of name-value pairs.
Raises:
-
CustomMetadataLimitExceededException–The limit has been reached on the number of custom properties for the specified resource.
-
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.
-
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.