

# ObjectLockRetention
<a name="API_ObjectLockRetention"></a>

A Retention configuration for an object.

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

 ** Mode **   <a name="AmazonS3-Type-ObjectLockRetention-Mode"></a>
Indicates the Retention mode for the specified object.  
Type: String  
Valid Values: `GOVERNANCE | COMPLIANCE`   
Required: No

 ** RetainUntilDate **   <a name="AmazonS3-Type-ObjectLockRetention-RetainUntilDate"></a>
The date on which this Object Lock Retention will expire.  
Type: Timestamp  
Required: No

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