getDataflowGraph method

Future<GetDataflowGraphResponse> getDataflowGraph({
  1. String? pythonScript,
})

Transforms a Python script into a directed acyclic graph (DAG).

May throw InvalidInputException. May throw InternalServiceException. May throw OperationTimeoutException.

Parameter pythonScript : The Python script to transform.

Implementation

Future<GetDataflowGraphResponse> getDataflowGraph({
  String? pythonScript,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.GetDataflowGraph'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (pythonScript != null) 'PythonScript': pythonScript,
    },
  );

  return GetDataflowGraphResponse.fromJson(jsonResponse.body);
}