updateAnnotationStore method

Future<UpdateAnnotationStoreResponse> updateAnnotationStore({
  1. required String name,
  2. String? description,
})
Updates an annotation store.

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

Parameter name : A name for the store.

Parameter description : A description for the store.

Implementation

Future<UpdateAnnotationStoreResponse> updateAnnotationStore({
  required String name,
  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)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateAnnotationStoreResponse.fromJson(response);
}