---
title: PreflightCheck
description: One line of a preflight report.
---

```python
@final
class PreflightCheck
```

One line of a preflight report.

## Constructor

`PreflightCheck` declares no `__new__` or `__init__`, so it is not constructed directly: an instance comes back from another call in this package.

## Properties

### `detail`

```python
detail: str
```

### `fatal`

```python
fatal: bool
```

Whether a failure decides the report's `ok`. The region line is advisory for a region outside `Region.measured()`.

### `name`

```python
name: str
```

`"region"`, `"credentials"`, or `"service"`.

### `ok`

```python
ok: bool
```

### `ran`

```python
ran: bool
```

False when an earlier check's failure kept this one from running (and calling AWS).

### `remedy`

```python
remedy: str
```

What to do about a failure; empty on a pass.

## Methods

### `to_dict`

```python
def to_dict() -> dict
```

## Special methods

### `__repr__`

```python
def __repr__() -> str
```

## Provenance

This page is generated from `bindings/microvms-py/microvms.pyi` by Griffe 2.3.0, run from `site/scripts/gen-reference.mjs` on every `pnpm run sync`, so an edit made here is overwritten by the next run.

To change the page, change the doc comment in the binding's Rust source, then regenerate the declarations with `mise run stubs`. `mise run stubs:check` fails when the committed file no longer matches the source.