aws-cdk-lib.AssetHashType

enum AssetHashType

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

The type of asset hash.

NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc.

Members

NameDescription
SOURCEBased on the content of the source path.
OUTPUTBased on the content of the bundling output.
CUSTOMUse a custom hash.

SOURCE

Based on the content of the source path.

When bundling, use SOURCE when the content of the bundling output is not stable across repeated bundling operations.


OUTPUT

Based on the content of the bundling output.

Use OUTPUT when the source of the asset is a top level folder containing code and/or dependencies that are not directly linked to the asset.


CUSTOM

Use a custom hash.