interface CopyOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.CopyOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2#CopyOptions |
Java | software.amazon.awscdk.CopyOptions |
Python | aws_cdk.CopyOptions |
TypeScript (source) | aws-cdk-lib » CopyOptions |
Options applied when copying directories.
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 copyOptions: cdk.CopyOptions = {
exclude: ['exclude'],
follow: cdk.SymlinkFollowMode.NEVER,
ignoreMode: cdk.IgnoreMode.GLOB,
};
Properties
Name | Type | Description |
---|---|---|
exclude? | string[] | File paths matching the patterns will be excluded. |
follow? | Symlink | A strategy for how to handle symlinks. |
ignore | Ignore | The ignore behavior to use for exclude patterns. |
exclude?
Type:
string[]
(optional, default: nothing is excluded)
File paths matching the patterns will be excluded.
See ignoreMode
to set the matching behavior.
Has no effect on Assets bundled using the bundling
property.
follow?
Type:
Symlink
(optional, default: SymlinkFollowMode.NEVER)
A strategy for how to handle symlinks.
ignoreMode?
Type:
Ignore
(optional, default: IgnoreMode.GLOB)
The ignore behavior to use for exclude
patterns.