Step Function action GetJob (AWS Glue) does not return CodeGenConfigurationNodes despite the documentation saying it should

0

According to https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-job.html#aws-glue-api-jobs-job-GetJob the Action GetJob (AWS Glue) should return CodeGenConfigurationNodes for a given JobName as input however it only returns the Job object.

[EDIT]

Now tried using the python function inside a Lambda:

#!/usr/bin/python
# -*- coding: utf-8 -*-

import json
import boto3
glue = boto3.client(service_name='glue', region_name='eu-west-2',
              endpoint_url='https://glue.eu-west-2.amazonaws.com')
              
              
def lambda_handler(event, context):
    job_name = event.get('JobName')
    
    job_details = glue.get_job(JobName = job_name)
    return json.dumps(job_details, indent=4, sort_keys=True, default=str)

Doesn't return CodeGenConfigurationNodes eithier, so it looks like it maybe a bug in the python function that the the step function is using?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠