deleteParallelData method

Future<DeleteParallelDataResponse> deleteParallelData({
  1. required String name,
})

Deletes a parallel data resource in Amazon Translate.

May throw ConcurrentModificationException. May throw ResourceNotFoundException. May throw TooManyRequestsException. May throw InternalServerException.

Parameter name : The name of the parallel data resource that is being deleted.

Implementation

Future<DeleteParallelDataResponse> deleteParallelData({
  required String name,
}) async {
  ArgumentError.checkNotNull(name, 'name');
  _s.validateStringLength(
    'name',
    name,
    1,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSShineFrontendService_20170701.DeleteParallelData'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Name': name,
    },
  );

  return DeleteParallelDataResponse.fromJson(jsonResponse.body);
}