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 5
5
``` ts
6
6
7
7
import { BackendSecret } from ' @aws-amplify/plugin-types' ;
8
+ import { Construct } from ' constructs' ;
8
9
import { ConstructFactory } from ' @aws-amplify/plugin-types' ;
9
10
import { FunctionResources } from ' @aws-amplify/plugin-types' ;
11
+ import * as lambda from ' aws-cdk-lib/aws-lambda' ;
10
12
import { ResourceAccessAcceptorFactory } from ' @aws-amplify/plugin-types' ;
11
13
import { ResourceProvider } from ' @aws-amplify/plugin-types' ;
12
14
13
15
// @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 >;
15
17
16
18
// @public (undocumented)
17
19
export type FunctionProps = {
You can’t perform that action at this time.
0 commit comments