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 |
Gets code to perform a specified mapping.
Synopsis
- getPlan :: CatalogEntry -> GetPlan
- data GetPlan
- gpSinks :: Lens' GetPlan [CatalogEntry]
- gpLocation :: Lens' GetPlan (Maybe Location)
- gpLanguage :: Lens' GetPlan (Maybe Language)
- gpMapping :: Lens' GetPlan [MappingEntry]
- gpSource :: Lens' GetPlan CatalogEntry
- getPlanResponse :: Int -> GetPlanResponse
- data GetPlanResponse
- gpprsPythonScript :: Lens' GetPlanResponse (Maybe Text)
- gpprsScalaCode :: Lens' GetPlanResponse (Maybe Text)
- gpprsResponseStatus :: Lens' GetPlanResponse Int
Creating a Request
Creates a value of GetPlan
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gpSinks
- The target tables.gpLocation
- Parameters for the mapping.gpLanguage
- The programming language of the code to perform the mapping.gpMapping
- The list of mappings from a source table to target tables.gpSource
- The source table.
See: getPlan
smart constructor.
Instances
Request Lenses
gpLanguage :: Lens' GetPlan (Maybe Language) Source #
The programming language of the code to perform the mapping.
gpMapping :: Lens' GetPlan [MappingEntry] Source #
The list of mappings from a source table to target tables.
Destructuring the Response
Creates a value of GetPlanResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gpprsPythonScript
- A Python script to perform the mapping.gpprsScalaCode
- Scala code to perform the mapping.gpprsResponseStatus
- -- | The response status code.
data GetPlanResponse Source #
See: getPlanResponse
smart constructor.
Instances
Response Lenses
gpprsPythonScript :: Lens' GetPlanResponse (Maybe Text) Source #
A Python script to perform the mapping.
gpprsScalaCode :: Lens' GetPlanResponse (Maybe Text) Source #
Scala code to perform the mapping.
gpprsResponseStatus :: Lens' GetPlanResponse Int Source #
- - | The response status code.