

# AgenticRuntimeState

Describes the current health of the agent on a WorkSpace, as the agent reports it.

## Contents
<a name="API_AgenticRuntimeState_Contents"></a>

 ** Status **   <a name="WorkSpaces-Type-AgenticRuntimeState-Status"></a>
The health of the agent. `UNKNOWN` indicates that the service couldn't determine the agent's health, for example, because the WorkSpace isn't running.  
Type: String  
Valid Values: `AVAILABLE | PENDING | IMPAIRED | ERROR | UNKNOWN`   
Required: Yes

 ** ErrorCode **   <a name="WorkSpaces-Type-AgenticRuntimeState-ErrorCode"></a>
The check or operation that set the agent's health status. This field isn't returned when the health status is `AVAILABLE`, and might not be returned for other statuses. The service can add values, so make sure that your code handles values that aren't in the list of valid values.  
Type: String  
Valid Values: `BOOT | INSTALL | RECONCILE | SELF_UPDATE | ROLLBACK | AGENT_UPDATE_REQUIRED | CREDENTIAL_REFRESH_FAILING | PERMISSION_DENIED | SESSION_CAPACITY_EXHAUSTED | BOOT_TIMED_OUT | RECONCILE_TIMED_OUT | CODING_AGENT_BINARY_MISSING | CODING_AGENT_BINARY_CORRUPT | CREDENTIALS_EXPIRED | CONFIG_APPLY_FAILED | DCV_CHANNEL_UNAVAILABLE | WORKSPACE_NOT_RUNNING | AGENT_UNREACHABLE`   
Required: No

 ** ErrorMessage **   <a name="WorkSpaces-Type-AgenticRuntimeState-ErrorMessage"></a>
A description of the agent's health status. This field isn't returned when the health status is `AVAILABLE`. It's returned for every other status, even when `ErrorCode` isn't returned.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Required: No

## See Also
<a name="API_AgenticRuntimeState_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/workspaces-2015-04-08/AgenticRuntimeState) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/workspaces-2015-04-08/AgenticRuntimeState) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/workspaces-2015-04-08/AgenticRuntimeState) 