updateDataSet method
This operation updates a data set.
May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException. May throw InternalServerException. May throw AccessDeniedException.
Parameter dataSetId
:
The unique identifier for a data set.
Parameter description
:
The description for the data set.
Parameter name
:
The name of the data set.
Implementation
Future<UpdateDataSetResponse> updateDataSet({
required String dataSetId,
String? description,
String? name,
}) async {
ArgumentError.checkNotNull(dataSetId, 'dataSetId');
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/v1/data-sets/${Uri.encodeComponent(dataSetId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateDataSetResponse.fromJson(response);
}