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

# __init__

# `prefect.infrastructure.provisioners`

## Functions

### `get_infrastructure_provisioner_for_work_pool_type` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/\_\_init\_\_.py#L55](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/__init__.py#L55)</sup>

```python theme={null}
get_infrastructure_provisioner_for_work_pool_type(work_pool_type: str) -> Type[Provisioner]
```

Retrieve an instance of the infrastructure provisioner for the given work pool type.

**Args:**

* `work_pool_type`: the work pool type

**Returns:**

* an instance of the infrastructure provisioner for the given work pool type

**Raises:**

* `ValueError`: if the work pool type is not supported

## Classes

### `Provisioner` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/\_\_init\_\_.py#L40](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/__init__.py#L40)</sup>

**Methods:**

#### `console` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/\_\_init\_\_.py#L42](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/__init__.py#L42)</sup>

```python theme={null}
console(self) -> rich.console.Console
```

#### `console` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/\_\_init\_\_.py#L45](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/__init__.py#L45)</sup>

```python theme={null}
console(self, value: rich.console.Console) -> None
```

#### `provision` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/\_\_init\_\_.py#L47](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/__init__.py#L47)</sup>

```python theme={null}
provision(self, work_pool_name: str, base_job_template: Dict[str, Any], client: Optional['PrefectClient'] = None) -> Dict[str, Any]
```
