Enum IgnoreMode

java.lang.Object
java.lang.Enum<IgnoreMode>
software.amazon.awscdk.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();
 
  • Enum Constant Details

    • GLOB

      @Stability(Stable) public static final IgnoreMode 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

      @Stability(Stable) public static final IgnoreMode GIT
      Ignores file paths based on the .gitignore specification.
    • DOCKER

      @Stability(Stable) public static final IgnoreMode 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

      public static IgnoreMode[] 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

      public static IgnoreMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null