aws-cdk-lib.SymlinkFollowMode

enum SymlinkFollowMode

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

Determines how symlinks are followed.

Members

NameDescription
NEVERNever follow symlinks.
ALWAYSMaterialize all symlinks, whether they are internal or external to the source directory.
EXTERNALOnly follows symlinks that are external to the source directory.
BLOCK_EXTERNALForbids source from having any symlinks pointing outside of the source tree.

NEVER

Never follow symlinks.


ALWAYS

Materialize all symlinks, whether they are internal or external to the source directory.


EXTERNAL

Only follows symlinks that are external to the source directory.


BLOCK_EXTERNAL

Forbids source from having any symlinks pointing outside of the source tree.

This is the safest mode of operation as it ensures that copy operations won't materialize files from the user's file system. Internal symlinks are not followed.

If the copy operation runs into an external symlink, it will fail.