

# ExperimentState
<a name="API_ExperimentState"></a>

Describes the state of an experiment.

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

 ** error **   <a name="fis-Type-ExperimentState-error"></a>
The error information of the experiment when the action has `failed`.  
Type: [ExperimentError](API_ExperimentError.md) object  
Required: No

 ** reason **   <a name="fis-Type-ExperimentState-reason"></a>
The reason for the state.  
Type: String  
Length Constraints: Maximum length of 512.  
Pattern: `[\s\S]+`   
Required: No

 ** status **   <a name="fis-Type-ExperimentState-status"></a>
The state of the experiment.  
Type: String  
Valid Values: `pending | initiating | running | completed | stopping | stopped | failed | cancelled`   
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/fis-2020-12-01/ExperimentState) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/fis-2020-12-01/ExperimentState) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/fis-2020-12-01/ExperimentState) 