CopyOptions
- class aws_cdk.CopyOptions(*, exclude=None, follow=None, ignore_mode=None)
Bases:
objectOptions applied when copying directories.
- Parameters:
exclude (
Optional[Sequence[str]]) – File paths matching the patterns will be excluded. SeeignoreModeto set the matching behavior. Has no effect on Assets bundled using thebundlingproperty. Default: - nothing is excludedfollow (
Optional[SymlinkFollowMode]) – A strategy for how to handle symlinks. Default: SymlinkFollowMode.NEVERignore_mode (
Optional[IgnoreMode]) – The ignore behavior to use forexcludepatterns. Default: IgnoreMode.GLOB
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk as cdk copy_options = cdk.CopyOptions( exclude=["exclude"], follow=cdk.SymlinkFollowMode.NEVER, ignore_mode=cdk.IgnoreMode.GLOB )
Attributes
- exclude
File paths matching the patterns will be excluded.
See
ignoreModeto set the matching behavior. Has no effect on Assets bundled using thebundlingproperty.- Default:
nothing is excluded
- follow
A strategy for how to handle symlinks.
- Default:
SymlinkFollowMode.NEVER
- ignore_mode
The ignore behavior to use for
excludepatterns.- Default:
IgnoreMode.GLOB