amazonka-glue-2.0: Amazon Glue SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON GetPlan Source # 
Instance details

Defined in Amazonka.Glue.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

AWSRequest GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Associated Types

type AWSResponse 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 #

Read GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Show GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

NFData GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

rnf :: GetPlan -> () #

Eq GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

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

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

Hashable GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

hashWithSalt :: Int -> GetPlan -> Int #

hash :: GetPlan -> Int #

type AWSResponse GetPlan Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

type Rep 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: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:language:GetPlan', getPlan_language - The programming language of the code to perform the mapping.

GetPlan, getPlan_location - The parameters for the mapping.

$sel:sinks:GetPlan', getPlan_sinks - The target tables.

GetPlan, getPlan_mapping - The list of mappings from a source table to target tables.

GetPlan, getPlan_source - The source table.

Request Lenses

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_language :: Lens' GetPlan (Maybe Language) Source #

The programming language of the code to perform the mapping.

getPlan_location :: Lens' GetPlan (Maybe Location) Source #

The parameters for the mapping.

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
Generic GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Associated Types

type Rep GetPlanResponse :: Type -> Type #

Read GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Show GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

NFData GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

Methods

rnf :: GetPlanResponse -> () #

Eq GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

type Rep GetPlanResponse Source # 
Instance details

Defined in Amazonka.Glue.GetPlan

type Rep GetPlanResponse = D1 ('MetaData "GetPlanResponse" "Amazonka.Glue.GetPlan" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" '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.