# UpdateCommandStateResourceSnapshot

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Resource snapshot data exposed to polyglot command state callbacks.

## Definition

```go
type UpdateCommandStateResourceSnapshot struct {
    ResourceType string        `json:"ResourceType"`
    State        *string       `json:"State"`
    StateStyle   *string       `json:"StateStyle"`
    HealthStatus *HealthStatus `json:"HealthStatus"`
    ExitCode     *float64      `json:"ExitCode"`
}
```

## Fields

- `ResourceType`: `string` -- The type of the resource.
- `State`: `*string` `optional` -- The current lifecycle state text for the resource.
- `StateStyle`: `*string` `optional` -- The display style for the current lifecycle state.
- `HealthStatus`: `*HealthStatus` `optional` -- The current health status for the resource.
- `ExitCode`: `*float64` `optional` -- The exit code of the resource.
