Package software.amazon.awscdk.core
Class DockerIgnoreStrategy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.core.IgnoreStrategy
software.amazon.awscdk.core.DockerIgnoreStrategy
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.022Z")
@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.core.*; 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
ModifierConstructorDescriptionDockerIgnoreStrategy
(String absoluteRootPath, List<String> patterns) protected
DockerIgnoreStrategy
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
DockerIgnoreStrategy
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.awscdk.core.IgnoreStrategy
docker, fromCopyOptions, git, glob
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
add
in classIgnoreStrategy
- Parameters:
pattern
- This parameter is required.
-
ignores
Determines whether a given file path should be ignored or not.- Specified by:
ignores
in classIgnoreStrategy
- Parameters:
absoluteFilePath
- absolute file path to be assessed against the pattern. This parameter is required.- Returns:
true
if the file should be ignored
-