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 |
Gets code to perform a specified mapping.
Synopsis
- data GetPlan = GetPlan' {}
- newGetPlan :: CatalogEntry -> GetPlan
- getPlan_sinks :: Lens' GetPlan (Maybe [CatalogEntry])
- getPlan_location :: Lens' GetPlan (Maybe Location)
- getPlan_language :: Lens' GetPlan (Maybe Language)
- getPlan_additionalPlanOptionsMap :: Lens' GetPlan (Maybe (HashMap Text Text))
- getPlan_mapping :: Lens' GetPlan [MappingEntry]
- getPlan_source :: Lens' GetPlan CatalogEntry
- data GetPlanResponse = GetPlanResponse' {
- pythonScript :: Maybe Text
- scalaCode :: Maybe Text
- httpStatus :: Int
- newGetPlanResponse :: Int -> GetPlanResponse
- getPlanResponse_pythonScript :: Lens' GetPlanResponse (Maybe Text)
- getPlanResponse_scalaCode :: Lens' GetPlanResponse (Maybe Text)
- getPlanResponse_httpStatus :: Lens' GetPlanResponse Int
Creating a Request
See: newGetPlan
smart constructor.
GetPlan' | |
|
Instances
Create a value of GetPlan
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:sinks:GetPlan'
, getPlan_sinks
- The target tables.
$sel:location:GetPlan'
, getPlan_location
- The parameters for the mapping.
$sel:language:GetPlan'
, getPlan_language
- The programming language of the code to perform the mapping.
$sel:additionalPlanOptionsMap:GetPlan'
, getPlan_additionalPlanOptionsMap
- A map to hold additional optional key-value parameters.
Currently, these key-value pairs are supported:
inferSchema
— Specifies whether to setinferSchema
to true or false for the default script generated by an Glue job. For example, to setinferSchema
to true, pass the following key value pair:--additional-plan-options-map '{"inferSchema":"true"}'
$sel:mapping:GetPlan'
, getPlan_mapping
- The list of mappings from a source table to target tables.
$sel:source:GetPlan'
, getPlan_source
- The source table.
Request Lenses
getPlan_sinks :: Lens' GetPlan (Maybe [CatalogEntry]) Source #
The target tables.
getPlan_language :: Lens' GetPlan (Maybe Language) Source #
The programming language of the code to perform the mapping.
getPlan_additionalPlanOptionsMap :: Lens' GetPlan (Maybe (HashMap Text Text)) Source #
A map to hold additional optional key-value parameters.
Currently, these key-value pairs are supported:
inferSchema
— Specifies whether to setinferSchema
to true or false for the default script generated by an Glue job. For example, to setinferSchema
to true, pass the following key value pair:--additional-plan-options-map '{"inferSchema":"true"}'
getPlan_mapping :: Lens' GetPlan [MappingEntry] Source #
The list of mappings from a source table to target tables.
getPlan_source :: Lens' GetPlan CatalogEntry Source #
The source table.
Destructuring the Response
data GetPlanResponse Source #
See: newGetPlanResponse
smart constructor.
GetPlanResponse' | |
|
Instances
Create a value of GetPlanResponse
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:GetPlanResponse'
, getPlanResponse_pythonScript
- A Python script to perform the mapping.
$sel:scalaCode:GetPlanResponse'
, getPlanResponse_scalaCode
- The Scala code to perform the mapping.
$sel:httpStatus:GetPlanResponse'
, getPlanResponse_httpStatus
- The response's http status code.
Response Lenses
getPlanResponse_pythonScript :: Lens' GetPlanResponse (Maybe Text) Source #
A Python script to perform the mapping.
getPlanResponse_scalaCode :: Lens' GetPlanResponse (Maybe Text) Source #
The Scala code to perform the mapping.
getPlanResponse_httpStatus :: Lens' GetPlanResponse Int Source #
The response's http status code.