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.Types.JobCommand

Description

 
Synopsis

Documentation

data JobCommand Source #

Specifies code that runs when a job is run.

See: newJobCommand smart constructor.

Constructors

JobCommand' 

Fields

  • scriptLocation :: Maybe Text

    Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.

  • pythonVersion :: Maybe Text

    The Python version being used to run a Python shell job. Allowed values are 2 or 3.

  • name :: Maybe Text

    The name of the job command. For an Apache Spark ETL job, this must be glueetl. For a Python shell job, it must be pythonshell. For an Apache Spark streaming ETL job, this must be gluestreaming.

Instances

Instances details
Eq JobCommand Source # 
Instance details

Defined in Amazonka.Glue.Types.JobCommand

Read JobCommand Source # 
Instance details

Defined in Amazonka.Glue.Types.JobCommand

Show JobCommand Source # 
Instance details

Defined in Amazonka.Glue.Types.JobCommand

Generic JobCommand Source # 
Instance details

Defined in Amazonka.Glue.Types.JobCommand

Associated Types

type Rep JobCommand :: Type -> Type #

NFData JobCommand Source # 
Instance details

Defined in Amazonka.Glue.Types.JobCommand

Methods

rnf :: JobCommand -> () #

Hashable JobCommand Source # 
Instance details

Defined in Amazonka.Glue.Types.JobCommand

ToJSON JobCommand Source # 
Instance details

Defined in Amazonka.Glue.Types.JobCommand

FromJSON JobCommand Source # 
Instance details

Defined in Amazonka.Glue.Types.JobCommand

type Rep JobCommand Source # 
Instance details

Defined in Amazonka.Glue.Types.JobCommand

type Rep JobCommand = D1 ('MetaData "JobCommand" "Amazonka.Glue.Types.JobCommand" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "JobCommand'" 'PrefixI 'True) (S1 ('MetaSel ('Just "scriptLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "pythonVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newJobCommand :: JobCommand Source #

Create a value of JobCommand 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:scriptLocation:JobCommand', jobCommand_scriptLocation - Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.

$sel:pythonVersion:JobCommand', jobCommand_pythonVersion - The Python version being used to run a Python shell job. Allowed values are 2 or 3.

$sel:name:JobCommand', jobCommand_name - The name of the job command. For an Apache Spark ETL job, this must be glueetl. For a Python shell job, it must be pythonshell. For an Apache Spark streaming ETL job, this must be gluestreaming.

jobCommand_scriptLocation :: Lens' JobCommand (Maybe Text) Source #

Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.

jobCommand_pythonVersion :: Lens' JobCommand (Maybe Text) Source #

The Python version being used to run a Python shell job. Allowed values are 2 or 3.

jobCommand_name :: Lens' JobCommand (Maybe Text) Source #

The name of the job command. For an Apache Spark ETL job, this must be glueetl. For a Python shell job, it must be pythonshell. For an Apache Spark streaming ETL job, this must be gluestreaming.