class GlobIgnoreStrategy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.GlobIgnoreStrategy |
Go | github.com/aws/aws-cdk-go/awscdk/v2#GlobIgnoreStrategy |
Java | software.amazon.awscdk.GlobIgnoreStrategy |
Python | aws_cdk.GlobIgnoreStrategy |
TypeScript (source) | aws-cdk-lib » GlobIgnoreStrategy |
Extends
Ignore
Ignores file paths based on simple glob patterns.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const globIgnoreStrategy = new cdk.GlobIgnoreStrategy('absoluteRootPath', ['patterns']);
Initializer
new GlobIgnoreStrategy(absoluteRootPath: string, patterns: string[])
Parameters
- absoluteRootPath
string - patterns
string[]
Methods
| Name | Description |
|---|---|
| add(pattern) | Adds another pattern. |
| completely | Determines whether a given directory path should be ignored and have all of its children ignored. |
| ignores(absoluteFilePath) | Determines whether a given file path should be ignored or not. |
add(pattern)
public add(pattern: string): void
Parameters
- pattern
string
Adds another pattern.
completelyIgnores(absoluteDirectoryPath)
public completelyIgnores(absoluteDirectoryPath: string): boolean
Parameters
- absoluteDirectoryPath
string— absolute directory path to be assessed against the pattern.
Returns
boolean
Determines whether a given directory path should be ignored and have all of its children ignored.
ignores(absoluteFilePath)
public ignores(absoluteFilePath: string): boolean
Parameters
- absoluteFilePath
string— absolute file path to be assessed against the pattern.
Returns
boolean
Determines whether a given file path should be ignored or not.

.NET
Go
Java
Python
TypeScript (