Interface LambdaFunctionProps

Hierarchy

  • LambdaFunctionProps

Properties

additionalEnv?: {
    [key: string]: string;
}

additional environment variables of the Lambda function

Type declaration

  • [key: string]: string
assetBucket?: Bucket

Bucket that is used for assets and published using the asset CDN The name of the bucket is available as process.env.ASSET_BUCKET

assetDomainName?: string

Fully qualified domain name of the asset CDN It is available as process.env.ASSET_DOMAIN_NAME

description?: string

description of the Lambda function

entry: string

entry file name

handler?: string

name of the exported handler function

Default

handler
includeSDK?: boolean

Should the AWS-SDK be packaged with the Lambda code or excluded

Default

false (exclude SDK and use runtime provided one)

JwtAuthentication settings

lambdaOptions?: LambdaOptions

additional options for the underlying Lambda function construct

lambdaTracing?: LambdaTracingOptions

Tracing config

stageName?: string

Deployment stage (e.g. dev)

table?: ITable

DynamoDB that is used as datastore The Lambda function will have read access to this table automatically The name of the table is available as process.env.TABLE

tableWrites?: boolean

Activate write permissions to the DynamoDB table

userPool?: IUserPool

Cognito user pool The name of the pool is available as process.env.USER_POOL_ID

Generated using TypeDoc