update_etl_job_libraries

EtlJobsApi.update_etl_job_libraries(id, role_id, etl_lib_paths, content_type=None, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)

Attach uploaded Python library paths to the job

Updates Glue –extra-py-files / –extra-jars from PythonLibPaths after files have been uploaded. Only PythonLibPaths is accepted. Shared libraries under the common-libs prefix cannot be modified here.

Parameters:
  • id (str) – UUID of the ETL job whose library paths will be updated. (required)

  • role_id (str) – Amorphic role ID sent for authorization. Missing this header returns AUTH-1001. (required)

  • etl_lib_paths (ETLLibPaths) – (required)

  • content_type (str)

  • _request_timeout (int, tuple(int, int), optional) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

  • _content_type (str, Optional) – force content-type for the request.

  • _headers (dict, optional) – set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.

  • _host_index (int, optional) – set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.

Return type:

MessageResponse

Returns:

Returns the result object.

Request and Response Examples

HTTP: PUT /jobs/{id}/libs

Request

Request / response example

{
  "PythonLibPaths": [
    "s3://example-etl-bucket/3fa85f64-5717-4562-b3fc-2c963f66afa6/libs/python/sales_helpers.zip"
  ]
}

Success (HTTP 200)

Libraries updated. Message is “Successfully updated job.”

Request / response example

{
  "Message": "Successfully updated job."
}

Errors

Documented error codes: GE-1008.

HTTP 400

Invalid body, attempt to change shared libraries, missing job, or Glue update failure.

Attempt to update shared libraries

{
  "Message": "User is not permitted to update shared libraries."
}

Glue job update failed

{
  "Message": "Unable to update glue job. Please try again"
}

HTTP 500

Uncaught backend failure. Typical Message is “GE-1008 - Could not complete the request. Please try again.”

Request / response example

{
  "Message": "GE-1008 - Could not complete the request. Please try again."
}