updateAnnotationStoreVersion method

Future<UpdateAnnotationStoreVersionResponse> updateAnnotationStoreVersion({
  1. required String name,
  2. required String versionName,
  3. String? description,
})

Updates the description of an annotation store version.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter name : The name of an annotation store.

Parameter versionName : The name of an annotation store version.

Parameter description : The description of an annotation store.

Implementation

Future<UpdateAnnotationStoreVersionResponse> updateAnnotationStoreVersion({
  required String name,
  required String versionName,
  String? description,
}) async {
  final $payload = <String, dynamic>{
    if (description != null) 'description': description,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/annotationStore/${Uri.encodeComponent(name)}/version/${Uri.encodeComponent(versionName)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateAnnotationStoreVersionResponse.fromJson(response);
}