

# Duration
<a name="API_Duration"></a>

The duration of a maintenance schedule. For more information, see [Auto-Tune for Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html).

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

 ** Unit **   <a name="opensearchservice-Type-Duration-Unit"></a>
The unit of measurement for the duration of a maintenance schedule.  
Type: String  
Valid Values: `HOURS`   
Required: No

 ** Value **   <a name="opensearchservice-Type-Duration-Value"></a>
Integer to specify the value of a maintenance schedule duration.  
Type: Long  
Valid Range: Minimum value of 1. Maximum value of 24.  
Required: No

## See Also
<a name="API_Duration_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/opensearch-2021-01-01/Duration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/opensearch-2021-01-01/Duration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/opensearch-2021-01-01/Duration) 