

# EventHoldDuration
<a name="API_EventHoldDuration"></a>

Contains the event hold duration configuration, specified in either days or years.

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

 ** Days **   <a name="AmazonS3-Type-EventHoldDuration-Days"></a>
The number of days for the event hold duration. The minimum value is 1 and the maximum value is 36,500.  
Type: Integer  
Required: No

 ** Years **   <a name="AmazonS3-Type-EventHoldDuration-Years"></a>
The number of years for the event hold duration. The minimum value is 1 and the maximum value is 100.  
Type: Integer  
Required: No

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