Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Transforms a directed acyclic graph (DAG) into code.
Synopsis
- createScript :: CreateScript
- data CreateScript
- csDagEdges :: Lens' CreateScript [CodeGenEdge]
- csLanguage :: Lens' CreateScript (Maybe Language)
- csDagNodes :: Lens' CreateScript [CodeGenNode]
- createScriptResponse :: Int -> CreateScriptResponse
- data CreateScriptResponse
- csrsPythonScript :: Lens' CreateScriptResponse (Maybe Text)
- csrsScalaCode :: Lens' CreateScriptResponse (Maybe Text)
- csrsResponseStatus :: Lens' CreateScriptResponse Int
Creating a Request
createScript :: CreateScript Source #
Creates a value of CreateScript
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csDagEdges
- A list of the edges in the DAG.csLanguage
- The programming language of the resulting code from the DAG.csDagNodes
- A list of the nodes in the DAG.
data CreateScript Source #
See: createScript
smart constructor.
Instances
Request Lenses
csDagEdges :: Lens' CreateScript [CodeGenEdge] Source #
A list of the edges in the DAG.
csLanguage :: Lens' CreateScript (Maybe Language) Source #
The programming language of the resulting code from the DAG.
csDagNodes :: Lens' CreateScript [CodeGenNode] Source #
A list of the nodes in the DAG.
Destructuring the Response
Creates a value of CreateScriptResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csrsPythonScript
- The Python script generated from the DAG.csrsScalaCode
- The Scala code generated from the DAG.csrsResponseStatus
- -- | The response status code.
data CreateScriptResponse Source #
See: createScriptResponse
smart constructor.
Instances
Response Lenses
csrsPythonScript :: Lens' CreateScriptResponse (Maybe Text) Source #
The Python script generated from the DAG.
csrsScalaCode :: Lens' CreateScriptResponse (Maybe Text) Source #
The Scala code generated from the DAG.
csrsResponseStatus :: Lens' CreateScriptResponse Int Source #
- - | The response status code.