(scope: Construct, resourceName: string, props?: RustFunctionProps)
| 73 | */ |
| 74 | export class RustFunction extends Function { |
| 75 | constructor(scope: Construct, resourceName: string, props?: RustFunctionProps) { |
| 76 | const manifestPath = getManifestPath(props || {}); |
| 77 | |
| 78 | const runtime = new Runtime(props?.runtime || 'provided.al2023'); |
| 79 | const bundling = bundlingOptionsFromRustFunctionProps(props); |
| 80 | |
| 81 | super(scope, resourceName, { |
| 82 | ...props, |
| 83 | runtime, |
| 84 | architecture: bundling.architecture, |
| 85 | code: Bundling.bundle({ |
| 86 | ...bundling, |
| 87 | manifestPath, |
| 88 | binaryName: props?.binaryName, |
| 89 | }), |
| 90 | handler: 'bootstrap', |
| 91 | }); |
| 92 | } |
| 93 | } |
nothing calls this directly
no test coverage detected