File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/backend-function Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 55``` ts
66
77import { BackendSecret } from ' @aws-amplify/plugin-types' ;
8+ import { Construct } from ' constructs' ;
89import { ConstructFactory } from ' @aws-amplify/plugin-types' ;
910import { FunctionResources } from ' @aws-amplify/plugin-types' ;
11+ import * as lambda from ' aws-cdk-lib/aws-lambda' ;
1012import { ResourceAccessAcceptorFactory } from ' @aws-amplify/plugin-types' ;
1113import { ResourceProvider } from ' @aws-amplify/plugin-types' ;
1214
1315// @public
14- export const defineFunction: (props ? : FunctionProps ) => ConstructFactory <ResourceProvider <FunctionResources > & ResourceAccessAcceptorFactory >;
16+ export const defineFunction: (props ? : FunctionProps | (( scope : Construct ) => lambda . Function ) | undefined ) => ConstructFactory <ResourceProvider <FunctionResources > & ResourceAccessAcceptorFactory >;
1517
1618// @public (undocumented)
1719export type FunctionProps = {
You can’t perform that action at this time.
0 commit comments