# UpdateCommandStateResourceSnapshot

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

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`
- `State`: `string` `optional`
- `StateStyle`: `string` `optional`
- `HealthStatus`: `HealthStatus` `optional`
- `ExitCode`: `number` `optional`
