deleteTestCase method

Future<void> deleteTestCase({
  1. required String instanceId,
  2. required String testCaseId,
})

Deletes the test case that has already been created for the specified Amazon Connect instance.

May throw AccessDeniedException. May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter instanceId : The identifier of the Amazon Connect instance.

Parameter testCaseId : The identifier of the test case to delete.

Implementation

Future<void> deleteTestCase({
  required String instanceId,
  required String testCaseId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/test-cases/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(testCaseId)}',
    exceptionFnMap: _exceptionFns,
  );
}