<!--
This file was generated by Spark. Do not edit it by hand.
-->
# AshLua.Resource

Extension that exposes a single Ash resource's public actions to Lua scripts.

Used in conjunction with `AshLua.Domain` on the resource's owning domain.


## lua
Resource-level configuration for AshLua.




### Examples
```
lua do
  name "todo"
  expose? true
end

```




### Options

| Name | Type | Default | Docs |
|------|------|---------|------|
| [`name`](#lua-name){: #lua-name } | `String.t` |  | The Lua key (under the domain table) to expose this resource as. Defaults to snake_case of the resource module's last segment. |
| [`expose?`](#lua-expose?){: #lua-expose? } | `boolean` | `true` | Whether to expose this resource and its public actions to Lua. |
| [`field_names`](#lua-field_names){: #lua-field_names } | `keyword` | `[]` | A keyword list mapping internal Ash field names to exact Lua-facing field names. |
| [`argument_names`](#lua-argument_names){: #lua-argument_names } | `keyword` | `[]` | A keyword list mapping internal Ash argument names to exact Lua-facing argument names per action. |







<style type="text/css">.spark-required::after { content: "*"; color: red !important; }</style>
