

# 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\+\+](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) 

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Amazon Data Lifecycle Manager. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query dlm` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
