updateRevision method
This operation updates a revision.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter dataSetId :
The unique identifier for a data set.
Parameter revisionId :
The unique identifier for a revision.
Parameter comment :
An optional comment about the revision.
Parameter finalized :
Finalizing a revision tells AWS Data Exchange that your changes to the
assets in the revision are complete. After it's in this read-only state,
you can publish the revision to your products.
Implementation
Future<UpdateRevisionResponse> updateRevision({
required String dataSetId,
required String revisionId,
String? comment,
bool? finalized,
}) async {
final $payload = <String, dynamic>{
if (comment != null) 'Comment': comment,
if (finalized != null) 'Finalized': finalized,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/v1/data-sets/${Uri.encodeComponent(dataSetId)}/revisions/${Uri.encodeComponent(revisionId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateRevisionResponse.fromJson(response);
}