

# ScenarioStopConditions

Contains the limits that end a synthetic customer simulation.

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

 ** MaxTurns **   <a name="connect-Type-ScenarioStopConditions-MaxTurns"></a>
The maximum number of exchanges between the synthetic customer and your flow. If you don't specify a value, the default is 50.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 50.  
Required: No

## See Also
<a name="API_ScenarioStopConditions_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/connect-2017-08-08/ScenarioStopConditions) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/connect-2017-08-08/ScenarioStopConditions) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/connect-2017-08-08/ScenarioStopConditions) 