

# StreamProcessingStopSelector
<a name="API_StreamProcessingStopSelector"></a>

 Specifies when to stop processing the stream. You can specify a maximum amount of time to process the video. 

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

 ** MaxDurationInSeconds **   <a name="rekognition-Type-StreamProcessingStopSelector-MaxDurationInSeconds"></a>
 Specifies the maximum amount of time in seconds that you want the stream to be processed. The largest amount of time is 2 minutes. The default is 10 seconds.   
Type: Long  
Valid Range: Minimum value of 1. Maximum value of 120.  
Required: No

## See Also
<a name="API_StreamProcessingStopSelector_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/rekognition-2016-06-27/StreamProcessingStopSelector) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/rekognition-2016-06-27/StreamProcessingStopSelector) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/rekognition-2016-06-27/StreamProcessingStopSelector) 