

# ArchiveRule
<a name="API_ArchiveRule"></a>

 **[Custom snapshot policies only]** Specifies a snapshot archiving rule for a schedule.

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

 ** RetainRule **   <a name="dlm-Type-ArchiveRule-RetainRule"></a>
Information about the retention period for the snapshot archiving rule.  
Type: [ArchiveRetainRule](API_ArchiveRetainRule.md) object  
Required: Yes

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