Package software.amazon.awscdk
Class DockerIgnoreStrategy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.IgnoreStrategy
software.amazon.awscdk.DockerIgnoreStrategy
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:57.356Z")
@Stability(Stable)
public class DockerIgnoreStrategy
extends IgnoreStrategy
Ignores file paths based on the
.dockerignore specification.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
DockerIgnoreStrategy dockerIgnoreStrategy = new DockerIgnoreStrategy("absoluteRootPath", List.of("patterns"));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionDockerIgnoreStrategy(String absoluteRootPath, List<String> patterns) protectedDockerIgnoreStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDockerIgnoreStrategy(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds another pattern.completelyIgnores(String absoluteDirectoryPath) Determines whether a given directory path should be ignored and have all of its children ignored.Determines whether a given file path should be ignored or not.Methods inherited from class software.amazon.awscdk.IgnoreStrategy
docker, fromCopyOptions, git, globMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
DockerIgnoreStrategy
protected DockerIgnoreStrategy(software.amazon.jsii.JsiiObjectRef objRef) -
DockerIgnoreStrategy
protected DockerIgnoreStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DockerIgnoreStrategy
@Stability(Stable) public DockerIgnoreStrategy(@NotNull String absoluteRootPath, @NotNull List<String> patterns) - Parameters:
absoluteRootPath- This parameter is required.patterns- This parameter is required.
-
-
Method Details
-
add
Adds another pattern.- Specified by:
addin classIgnoreStrategy- Parameters:
pattern- This parameter is required.
-
completelyIgnores
Determines whether a given directory path should be ignored and have all of its children ignored.- Overrides:
completelyIgnoresin classIgnoreStrategy- Parameters:
absoluteDirectoryPath- absolute directory path to be assessed against the pattern. This parameter is required.- Returns:
trueif the directory and all of its children should be ignored
-
ignores
Determines whether a given file path should be ignored or not.- Specified by:
ignoresin classIgnoreStrategy- Parameters:
absoluteFilePath- absolute file path to be assessed against the pattern. This parameter is required.- Returns:
trueif the file should be ignored
-