FileCopyOptions

class aws_cdk.core.FileCopyOptions(*, exclude=None, follow_symlinks=None, ignore_mode=None)

Bases: object

Options applied when copying directories into the staging location.

Parameters:
  • exclude (Optional[Sequence[str]]) – Glob patterns to exclude from the copy. Default: - nothing is excluded

  • follow_symlinks (Optional[SymlinkFollowMode]) – A strategy for how to handle symlinks. Default: SymlinkFollowMode.NEVER

  • ignore_mode (Optional[IgnoreMode]) – The ignore behavior to use for exclude patterns. 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.core as cdk

file_copy_options = cdk.FileCopyOptions(
    exclude=["exclude"],
    follow_symlinks=cdk.SymlinkFollowMode.NEVER,
    ignore_mode=cdk.IgnoreMode.GLOB
)

Attributes

exclude

Glob patterns to exclude from the copy.

Default:
  • nothing is excluded

A strategy for how to handle symlinks.

Default:

SymlinkFollowMode.NEVER

ignore_mode

The ignore behavior to use for exclude patterns.

Default:

IgnoreMode.GLOB