> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# glue_job

# `prefect_aws.glue_job`

Integrations with the AWS Glue Job.

## Classes

### `GlueJobRun` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect\_aws/glue\_job.py#L17](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/glue_job.py#L17)</sup>

Execute a Glue Job

**Methods:**

#### `fetch_result` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect\_aws/glue\_job.py#L50](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/glue_job.py#L50)</sup>

```python theme={null}
fetch_result(self) -> str
```

fetch glue job state

#### `wait_for_completion` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect\_aws/glue\_job.py#L55](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/glue_job.py#L55)</sup>

```python theme={null}
wait_for_completion(self) -> None
```

Wait for the job run to complete and get exit code

### `GlueJobBlock` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect\_aws/glue\_job.py#L78](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/glue_job.py#L78)</sup>

Execute a job to the AWS Glue Job service.

**Attributes:**

* `job_name`: The name of the job definition to use.
* `arguments`: The job arguments associated with this run.
  For this job run, they replace the default arguments set in the job
  definition itself.
  You can specify arguments here that your own job-execution script consumes,
  as well as arguments that Glue itself consumes.
  Job arguments may be logged. Do not pass plaintext secrets as arguments.
  Retrieve secrets from a Glue Connection, Secrets Manager or other secret
  management mechanism if you intend to keep them within the Job.
  [doc](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
* `job_watch_poll_interval`: The amount of time to wait between AWS API
  calls while monitoring the state of a Glue Job.
  default is 60s because of jobs that use AWS Glue versions 2.0 and later
  have a 1-minute minimum.
  [AWS Glue Pricing](https://aws.amazon.com/glue/pricing/?nc1=h_ls)

**Methods:**

#### `trigger` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect\_aws/glue\_job.py#L149](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/glue_job.py#L149)</sup>

```python theme={null}
trigger(self) -> GlueJobRun
```

trigger for GlueJobRun
