# UpdateCommandStateResourceSnapshot

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.6.5`
- Kind: `type`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/b33d222049f1ecc3bc7257ec07b622fe550b2580)

Resource snapshot data exposed to polyglot command state callbacks.

## Definition

```typescript
type UpdateCommandStateResourceSnapshot = {
  ResourceType?: string;
  State?: string;
  StateStyle?: string;
  HealthStatus?: HealthStatus;
  ExitCode?: number;
}
```

## Fields

- `ResourceType`: `string` `optional`
- `State`: `string` `optional`
- `StateStyle`: `string` `optional`
- `HealthStatus`: `HealthStatus` `optional`
- `ExitCode`: `number` `optional`
