| 11 | * Properties for a RustFunction |
| 12 | */ |
| 13 | export interface RustFunctionProps extends FunctionOptions { |
| 14 | /** |
| 15 | * The Lambda runtime to deploy this function. |
| 16 | * `provided.al2023` is the default runtime when this option is not provided. |
| 17 | */ |
| 18 | readonly runtime?: 'provided.al2023' | 'provided.al2'; |
| 19 | |
| 20 | /** |
| 21 | * Bundling options |
| 22 | * |
| 23 | * @default - use default bundling options |
| 24 | */ |
| 25 | readonly bundling?: BundlingOptions; |
| 26 | |
| 27 | /** |
| 28 | * The name of the binary to build, in case that's different than the package's name. |
| 29 | */ |
| 30 | readonly binaryName?: string; |
| 31 | |
| 32 | /** |
| 33 | * Path to a directory containing your Cargo.toml file, or to your Cargo.toml directly. |
| 34 | * |
| 35 | * This will accept a directory path containing a `Cargo.toml` file (i.e. `path/to/package`), or a filepath to your |
| 36 | * `Cargo.toml` file (i.e. `path/to/Cargo.toml`). When the `gitRemote` option is provided, |
| 37 | * the `manifestPath` is relative to the root of the git repository. |
| 38 | * |
| 39 | * @default - check the current directory for a `Cargo.toml` file, and throws |
| 40 | * an error if the file doesn't exist. |
| 41 | */ |
| 42 | readonly manifestPath?: string; |
| 43 | |
| 44 | /** |
| 45 | * The git remote URL to clone (e.g `https://github.com/your_user/your_repo`). |
| 46 | * |
| 47 | * This repository will be cloned to a temporary directory using `git`. |
| 48 | * The `git` command must be available in the PATH. |
| 49 | */ |
| 50 | readonly gitRemote?: string; |
| 51 | |
| 52 | /** |
| 53 | * The git reference to checkout. This can be a branch, tag, or commit hash. |
| 54 | * |
| 55 | * If this option is not provided, `git clone` will run with the flag `--depth 1`. |
| 56 | * |
| 57 | * @default - the default branch, i.e. HEAD. |
| 58 | */ |
| 59 | readonly gitReference?: string; |
| 60 | |
| 61 | /** |
| 62 | * Always clone the repository if using the `gitRemote` option, even if it has already been |
| 63 | * cloned to the temporary directory. |
| 64 | * |
| 65 | * @default - clones only if the repository and reference don't already exist in the |
| 66 | * temporary directory. |
| 67 | */ |
| 68 | readonly gitForceClone?: boolean; |
| 69 | } |
| 70 |
nothing calls this directly
no outgoing calls
no test coverage detected