Class IgnoreMode
Determines the ignore behavior to use.
Inheritance
System.Object
IgnoreMode
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class IgnoreMode : Enum
Syntax (vb)
Public NotInheritable Class IgnoreMode
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
new Function(this, "Function", new FunctionProps {
Code = Code.FromAsset(Join(__dirname, "my-python-handler"), new AssetOptions {
Exclude = new [] { "*.ignore" },
IgnoreMode = IgnoreMode.DOCKER
}),
Runtime = Runtime.PYTHON_3_9,
Handler = "index.handler"
});
Synopsis
Fields
DOCKER | Ignores file paths based on the |
GIT | Ignores file paths based on the |
GLOB | Ignores file paths based on simple glob patterns. |
value__ |
Fields
DOCKER
Ignores file paths based on the .dockerignore specification
.
public const IgnoreMode DOCKER
Field Value
Type | Description |
---|---|
IgnoreMode |
Remarks
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
.
public const IgnoreMode GIT
Field Value
Type | Description |
---|---|
IgnoreMode |
GLOB
Ignores file paths based on simple glob patterns.
public const IgnoreMode GLOB
Field Value
Type | Description |
---|---|
IgnoreMode |
Remarks
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.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |