aws-cdk-lib.FileCopyOptions

interface FileCopyOptions

LanguageType name
.NETAmazon.CDK.FileCopyOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2#FileCopyOptions
Javasoftware.amazon.awscdk.FileCopyOptions
Pythonaws_cdk.FileCopyOptions
TypeScript (source)aws-cdk-lib » FileCopyOptions

Options applied when copying directories into the staging location.

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 fileCopyOptions: cdk.FileCopyOptions = {
  exclude: ['exclude'],
  followSymlinks: cdk.SymlinkFollowMode.NEVER,
  ignoreMode: cdk.IgnoreMode.GLOB,
};

Properties

NameTypeDescription
exclude?string[]File paths matching the patterns will be excluded.
followSymlinks?SymlinkFollowModeA strategy for how to handle symlinks.
ignoreMode?IgnoreModeThe 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.


followSymlinks?

Type: SymlinkFollowMode (optional, default: SymlinkFollowMode.NEVER)

A strategy for how to handle symlinks.


ignoreMode?

Type: IgnoreMode (optional, default: IgnoreMode.GLOB)

The ignore behavior to use for exclude patterns.