def get_emr_response(self): emr = EmrHook(aws_conn_id=self.aws_conn_id).get_conn() self.log.info('Poking step %s on cluster %s', self.step_id, self.job_flow_id) return emr.describe_step(ClusterId=self.job_flow_id, StepId=self.step_id)
def get_emr_response(self) -> Dict[str, Any]: """ Make an API call with boto3 and get details about the cluster step. .. seealso:: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/emr.html#EMR.Client.describe_step :return: response :rtype: dict[str, Any] """ emr = EmrHook(aws_conn_id=self.aws_conn_id).get_conn() self.log.info('Poking step %s on cluster %s', self.step_id, self.job_flow_id) return emr.describe_step(ClusterId=self.job_flow_id, StepId=self.step_id)