Skip to content
v2.273.0

IgnoreMode Enum ​

Determines the ignore behavior to use.

Example ​

ts
new lambda.Function(this, 'Function', {
  code: lambda.Code.fromAsset(path.join(__dirname, 'my-python-handler'), {
    exclude: ['*.ignore'],
    ignoreMode: IgnoreMode.DOCKER, // Default is IgnoreMode.GLOB
  }),
  runtime: lambda.Runtime.PYTHON_3_9,
  handler: 'index.handler',
});

Members ​

MemberDescription
GLOBIgnores file paths based on simple glob patterns.
GITIgnores file paths based on the .gitignore specification.
DOCKERIgnores file paths based on the .dockerignore specification.

Referenced by ​

  • CopyOptions.ignoreModeignore_modeignoreModeIgnoreModeIgnoreMode
  • FileCopyOptions.ignoreModeignore_modeignoreModeIgnoreModeIgnoreMode