IgnoreMode
- class aws_cdk.IgnoreMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Determines the ignore behavior to use.
- ExampleMetadata:
infused
Example:
lambda_.Function(self, "Function", code=lambda_.Code.from_asset(path.join(__dirname, "my-python-handler"), exclude=["*.ignore"], ignore_mode=IgnoreMode.DOCKER ), runtime=lambda_.Runtime.PYTHON_3_9, handler="index.handler" )
Attributes
- DOCKER
Ignores file paths based on the
`.dockerignore specification
<https://docs.docker.com/engine/reference/builder/#dockerignore-file>`_.This is the default for Docker image assets if the ‘@aws-cdk/aws-ecr-assets:dockerIgnoreSupport’ context flag is set.
- GIT
Ignores file paths based on the
`.gitignore specification
<https://git-scm.com/docs/gitignore>`_.
- GLOB
Ignores file paths based on simple glob patterns.
This is the default for file assets.
It is also the default for Docker image assets, unless the ‘@aws-cdk/aws-ecr-assets:dockerIgnoreSupport’ context flag is set.