Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Transforms a directed acyclic graph (DAG) into code.
Synopsis
- data CreateScript = CreateScript' {
- dagEdges :: Maybe [CodeGenEdge]
- language :: Maybe Language
- dagNodes :: Maybe [CodeGenNode]
- newCreateScript :: CreateScript
- createScript_dagEdges :: Lens' CreateScript (Maybe [CodeGenEdge])
- createScript_language :: Lens' CreateScript (Maybe Language)
- createScript_dagNodes :: Lens' CreateScript (Maybe [CodeGenNode])
- data CreateScriptResponse = CreateScriptResponse' {
- pythonScript :: Maybe Text
- scalaCode :: Maybe Text
- httpStatus :: Int
- newCreateScriptResponse :: Int -> CreateScriptResponse
- createScriptResponse_pythonScript :: Lens' CreateScriptResponse (Maybe Text)
- createScriptResponse_scalaCode :: Lens' CreateScriptResponse (Maybe Text)
- createScriptResponse_httpStatus :: Lens' CreateScriptResponse Int
Creating a Request
data CreateScript Source #
See: newCreateScript
smart constructor.
CreateScript' | |
|
Instances
newCreateScript :: CreateScript Source #
Create a value of CreateScript
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dagEdges:CreateScript'
, createScript_dagEdges
- A list of the edges in the DAG.
$sel:language:CreateScript'
, createScript_language
- The programming language of the resulting code from the DAG.
$sel:dagNodes:CreateScript'
, createScript_dagNodes
- A list of the nodes in the DAG.
Request Lenses
createScript_dagEdges :: Lens' CreateScript (Maybe [CodeGenEdge]) Source #
A list of the edges in the DAG.
createScript_language :: Lens' CreateScript (Maybe Language) Source #
The programming language of the resulting code from the DAG.
createScript_dagNodes :: Lens' CreateScript (Maybe [CodeGenNode]) Source #
A list of the nodes in the DAG.
Destructuring the Response
data CreateScriptResponse Source #
See: newCreateScriptResponse
smart constructor.
CreateScriptResponse' | |
|
Instances
newCreateScriptResponse Source #
Create a value of CreateScriptResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:pythonScript:CreateScriptResponse'
, createScriptResponse_pythonScript
- The Python script generated from the DAG.
$sel:scalaCode:CreateScriptResponse'
, createScriptResponse_scalaCode
- The Scala code generated from the DAG.
$sel:httpStatus:CreateScriptResponse'
, createScriptResponse_httpStatus
- The response's http status code.
Response Lenses
createScriptResponse_pythonScript :: Lens' CreateScriptResponse (Maybe Text) Source #
The Python script generated from the DAG.
createScriptResponse_scalaCode :: Lens' CreateScriptResponse (Maybe Text) Source #
The Scala code generated from the DAG.
createScriptResponse_httpStatus :: Lens' CreateScriptResponse Int Source #
The response's http status code.