Staging

class aws_cdk.assets.Staging(scope, id, *, source_path, extra_hash=None, exclude=None, follow=None)

Bases: aws_cdk.core.AssetStaging

(deprecated) Deprecated.

Deprecated

use core.AssetStaging

Stability

deprecated

Parameters
  • scope (Construct) –

  • id (str) –

  • source_path (str) – (deprecated) Local file or directory to stage.

  • extra_hash (Optional[str]) – (deprecated) Extra information to encode into the fingerprint (e.g. build instructions and other inputs). Default: - hash is only based on source content

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

  • follow (Optional[FollowMode]) – (deprecated) A strategy for how to handle symlinks. Default: Never

Stability

deprecated

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

BUNDLING_INPUT_DIR = '/asset-input'
BUNDLING_OUTPUT_DIR = '/asset-output'
asset_hash

A cryptographic hash of the asset.

Return type

str

node

The construct tree node associated with this construct.

Return type

ConstructNode

source_hash

(deprecated) A cryptographic hash of the asset.

Deprecated

see assetHash.

Stability

deprecated

Return type

str

source_path

The path of the asset as it was referenced by the user.

Return type

str

staged_path

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.

Return type

str

Static Methods

classmethod clear_asset_hash_cache()

Clears the asset hash cache.

Return type

None

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool