Package software.amazon.awscdk
Enum IgnoreMode
- All Implemented Interfaces:
Serializable
,Comparable<IgnoreMode>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:12.981Z")
@Stability(Stable)
public enum IgnoreMode
extends Enum<IgnoreMode>
Determines the ignore behavior to use.
Example:
Function.Builder.create(this, "Function") .code(Code.fromAsset(join(__dirname, "my-python-handler"), AssetOptions.builder() .exclude(List.of("*.ignore")) .ignoreMode(IgnoreMode.DOCKER) .build())) .runtime(Runtime.PYTHON_3_9) .handler("index.handler") .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIgnores file paths based on the.dockerignore specification
.Ignores file paths based on the.gitignore specification
.Ignores file paths based on simple glob patterns. -
Method Summary
Modifier and TypeMethodDescriptionstatic IgnoreMode
Returns the enum constant of this type with the specified name.static IgnoreMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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.
-
GIT
Ignores file paths based on the.gitignore specification
. -
DOCKER
Ignores file paths based on the.dockerignore specification
.This is the default for Docker image assets if the '@aws-cdk/aws-ecr-assets:dockerIgnoreSupport' context flag is set.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-