createScript method
Future<CreateScriptResponse>
createScript({
- List<
CodeGenEdge> ? dagEdges, - List<
CodeGenNode> ? dagNodes, - Language? language,
Transforms a directed acyclic graph (DAG) into code.
May throw InvalidInputException. May throw InternalServiceException. May throw OperationTimeoutException.
Parameter dagEdges
:
A list of the edges in the DAG.
Parameter dagNodes
:
A list of the nodes in the DAG.
Parameter language
:
The programming language of the resulting code from the DAG.
Implementation
Future<CreateScriptResponse> createScript({
List<CodeGenEdge>? dagEdges,
List<CodeGenNode>? dagNodes,
Language? language,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.CreateScript'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (dagEdges != null) 'DagEdges': dagEdges,
if (dagNodes != null) 'DagNodes': dagNodes,
if (language != null) 'Language': language.toValue(),
},
);
return CreateScriptResponse.fromJson(jsonResponse.body);
}