LzaLambdaProps properties

Hierarchy

  • LzaLambdaProps

Properties

assetPath: string

LZA Custom resource lambda asset folder path including the /dist folder

cloudWatchLogKmsKey?: IKey

Custom resource lambda log group encryption key, when undefined default AWS managed key will be used

cloudWatchLogRemovalPolicy?: RemovalPolicy

Determine the removal policy of CloudWatch log group for the lambda.

Default

RemovalPolicy.Destroy

cloudWatchLogRetentionInDays: number

Custom resource lambda cloudwatch log retention in days

description?: string

A description of the custom resource lambda function.

environmentEncryptionKmsKey?: IKey

Custom resource lambda environment encryption key, when undefined default AWS managed key will be used

environmentVariables?: {
    [key: string]: any;
}[]

A name value object list for lambda environment variables

Example

[{ solution: 'accelerator', author: 'tsd' }]
functionName?: string

A name for the function.

Default

  • AWS CloudFormation generates a unique physical ID and uses that ID for the function's name.
handler?: string

The name of the method within lambda code that custom resource lambda calls to execute the function. The format includes the file name.

Default

'index.handler'

memorySize?: number

The amount of memory, in MB, that is allocated to custom resource Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power.

Default

256

nagSuppressionPrefix: string

Prefix for nag suppression

role?: Role | IRole

Custom resource lambda execution role. This is the role that will be assumed by the function upon execution.

Default

A unique role will be generated for this lambda function.

roleInitialPolicy?: PolicyStatement[]

Initial policy statements to add to the created custom resource Lambda Role.

timeOut?: Duration

Custom resource lambda function execution time (in seconds) after which Lambda terminates the function.

Default

3 seconds

Generated using TypeDoc