MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda-cdk / constructor

Method constructor

src/function.ts:75–92  ·  view source on GitHub ↗
(scope: Construct, resourceName: string, props?: RustFunctionProps)

Source from the content-addressed store, hash-verified

73 */
74export 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}

Callers

nothing calls this directly

Calls 3

getManifestPathFunction · 0.90
bundleMethod · 0.80

Tested by

no test coverage detected