You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Glue::Types::JobCommand

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb

Overview

Note:

When making an API call, you may pass JobCommand data as a hash:

{
  name: "GenericString",
  script_location: "ScriptLocationString",
  python_version: "PythonVersionString",
}

Specifies code executed when a job is run.

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

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.

Returns:

  • (String)


7426
7427
7428
7429
7430
7431
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 7426

class JobCommand < Struct.new(
  :name,
  :script_location,
  :python_version)
  include Aws::Structure
end

#python_versionString

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

Returns:

  • (String)


7426
7427
7428
7429
7430
7431
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 7426

class JobCommand < Struct.new(
  :name,
  :script_location,
  :python_version)
  include Aws::Structure
end

#script_locationString

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

Returns:

  • (String)


7426
7427
7428
7429
7430
7431
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 7426

class JobCommand < Struct.new(
  :name,
  :script_location,
  :python_version)
  include Aws::Structure
end