class Staging (construct)
Stages a file or directory from a location on the file system into a staging directory.
This is controlled by the context key 'aws:cdk:asset-staging' and enabled by the CLI by default in order to ensure that when the CDK app exists, all assets are available for deployment. Otherwise, if an app references assets in temporary locations, those will not be available when it exists (see https://github.com/aws/aws-cdk/issues/1716).
stagedPath property is a stringified token that represents the location
of the file or directory after staging. It will be resolved only during the
"prepare" stage and may be either the original path or the staged path
depending on the context setting.
The file/directory are staged based on their content hash (fingerprint). This means that only if content was changed, copy will happen.
new Staging(scope: Construct, id: string, props: StagingProps)
|exclude?||Glob patterns to exclude from the copy.|
|extra||Extra information to encode into the fingerprint (e.g. build instructions and other inputs).|
|follow?||A strategy for how to handle symlinks.|
(optional, default: nothing is excluded)
Glob patterns to exclude from the copy.
(optional, default: hash is only based on source content)
Extra information to encode into the fingerprint (e.g. build instructions and other inputs).
(optional, default: Never)
A strategy for how to handle symlinks.
|node||Construct tree node which offers APIs for interacting with the construct tree.|
|source||A cryptographic hash of the source document(s).|
|source||The path of the asset as it was referenced by the user.|
|staged||The path to the asset (stringinfied token).|
Construct tree node which offers APIs for interacting with the construct tree.
A cryptographic hash of the source document(s).
The path of the asset as it was referenced by the user.
The path to the asset (stringinfied token).
If asset staging is disabled, this will just be the original path. If asset staging is enabled it will be the staged path.
|to||Returns a string representation of this construct.|
|protected synthesize(session)||Allows this construct to emit artifacts into the cloud assembly during synthesis.|
public toString(): string
Returns a string representation of this construct.
protected synthesize(session: ISynthesisSession): void
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as
as they participate in synthesizing the cloud assembly.