Skip to content
v2.273.0

FileCopyOptions Struct ​

Options applied when copying directories into the staging location.

Example ​

ts
// 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 ​

excludestring[]excludetyping.List[str]excludeList<String>Excludestring[]Exclude*[]*string= 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.

ignoreModeIgnoreModeignore_modeIgnoreModeignoreModeIgnoreModeIgnoreModeIgnoreModeIgnoreModeIgnoreMode= IgnoreMode.GLOB#
The ignore behavior to use for `exclude` patterns.