@Generated(value="jsii-pacmak/1.5.0 (build 46538f8)", date="2020-05-15T23:35:45.924Z") @Stability(value=Stable) public class AssetStaging extends Construct
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).
The 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetStaging.Builder
A fluent builder for
AssetStaging. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
AssetStaging(Construct scope,
String id,
AssetStagingProps props) |
protected |
AssetStaging(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AssetStaging(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getSourceHash()
A cryptographic hash of the source document(s).
|
String |
getSourcePath()
The path of the asset as it was referenced by the user.
|
String |
getStagedPath()
The path to the asset (stringinfied token).
|
protected void |
synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetprotected AssetStaging(software.amazon.jsii.JsiiObjectRef objRef)
protected AssetStaging(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public AssetStaging(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
AssetStagingProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable)
protected void synthesize(@NotNull
ISynthesisSession session)
This method is usually implemented by framework-level constructs such as Stack and Asset
as they participate in synthesizing the cloud assembly.
synthesize in class Constructsession - This parameter is required.@Stability(value=Stable) @NotNull public String getSourceHash()
@Stability(value=Stable) @NotNull public String getSourcePath()
@Stability(value=Stable) @NotNull public String getStagedPath()
If asset staging is disabled, this will just be the original path. If asset staging is enabled it will be the staged path.
Copyright © 2020. All rights reserved.