ash_archival/documentation/dsls/DSL:-AshArchival.Resource.md

64 lines
1.2 KiB
Markdown
Raw Normal View History

<!--
This file was generated by Spark. Do not edit it by hand.
-->
2023-09-27 04:28:18 +13:00
# DSL: AshArchival.Resource
Configures a resource to be archived instead of destroyed for all destroy actions.
For more information, see [Archival](/documentation/topics/archival.md)
<!--- ash-hq-hide-start --> <!--- -->
## DSL Documentation
### Index
* archive
### Docs
## archive
A section for configuring how archival is configured for a resource.
---
* `:archive_related` (list of `t:atom/0`) - A list of relationships that should have all related items archived when this is archived. Note: this is currently not optimized. It simply reads the relationship and archives each one.
<!--- ash-hq-hide-stop--> <!--- -->
## archive
A section for configuring how archival is configured for a resource.
### Options
2024-02-21 05:40:23 +13:00
| Name | Type | Default | Docs |
|------|------|---------|------|
| [`archive_related`](#archive-archive_related){: #archive-archive_related } | `list(atom)` | | A list of relationships that should have all related items archived when this is archived. Note: this is currently not optimized. It simply reads the relationship and archives each one. |
2023-09-27 04:28:18 +13:00
2024-02-21 05:40:23 +13:00
<style type="text/css">.spark-required::after { content: "*"; color: red !important; }</style>