Class AssetHashType
The type of asset hash.
Inheritance
System.Object
AssetHashType
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class AssetHashType : Enum
Syntax (vb)
Public NotInheritable Class AssetHashType
Inherits
Enum
Remarks
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.
Synopsis
Fields
CUSTOM | Use a custom hash. |
OUTPUT | Based on the content of the bundling output. |
SOURCE | Based on the content of the source path. |
value__ |
Fields
CUSTOM
OUTPUT
Based on the content of the bundling output.
public const AssetHashType OUTPUT
Field Value
Type | Description |
---|---|
AssetHashType |
Remarks
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.
SOURCE
Based on the content of the source path.
public const AssetHashType SOURCE
Field Value
Type | Description |
---|---|
AssetHashType |
Remarks
When bundling, use SOURCE
when the content of the bundling output is not
stable across repeated bundling operations.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |