libZSservicesZSamazonka-glueZSamazonka-glue
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Glue.GetPlan

Description

Gets code to perform a specified mapping.

Synopsis

Creating a Request

data GetPlan Source #

See: newGetPlan smart constructor.

Constructors

GetPlan' 

Fields

Instances

Instances details
Eq GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

(==) :: GetPlan -> GetPlan -> Bool #

(/=) :: GetPlan -> GetPlan -> Bool #

Read GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Show GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Generic GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Associated Types

type Rep GetPlan :: Type -> Type #

Methods

from :: GetPlan -> Rep GetPlan x #

to :: Rep GetPlan x -> GetPlan #

NFData GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

rnf :: GetPlan -> () #

Hashable GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

hashWithSalt :: Int -> GetPlan -> Int #

hash :: GetPlan -> Int #

ToJSON GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

AWSRequest GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Associated Types

type AWSResponse GetPlan #

ToHeaders GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

toHeaders :: GetPlan -> [Header] #

ToPath GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

toPath :: GetPlan -> ByteString #

ToQuery GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

type Rep GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

type AWSResponse GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

newGetPlan Source #

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 set inferSchema to true or false for the default script generated by an Glue job. For example, to set inferSchema 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_location :: Lens' GetPlan (Maybe Location) Source #

The parameters for the mapping.

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 set inferSchema to true or false for the default script generated by an Glue job. For example, to set inferSchema 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.

Destructuring the Response

data GetPlanResponse Source #

See: newGetPlanResponse smart constructor.

Constructors

GetPlanResponse' 

Fields

Instances

Instances details
Eq GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Read GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Show GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Generic GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Associated Types

type Rep GetPlanResponse :: Type -> Type #

NFData GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

rnf :: GetPlanResponse -> () #

type Rep GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

type Rep GetPlanResponse = D1 ('MetaData "GetPlanResponse" "Amazonka.Glue.GetPlan" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "GetPlanResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pythonScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "scalaCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetPlanResponse Source #

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.