FileAssetSource

class aws_cdk.core.FileAssetSource(*, file_name, packaging, source_hash)

Bases: object

__init__(*, file_name, packaging, source_hash)

Represents the source for a file asset.

Parameters
  • file_name (str) – The path, relative to the root of the cloud assembly, in which this asset source resides. This can be a path to a file or a directory, dependning on the packaging type.

  • packaging (FileAssetPackaging) – Which type of packaging to perform.

  • source_hash (str) – A hash on the content source. This hash is used to uniquely identify this asset throughout the system. If this value doesn’t change, the asset will not be rebuilt or republished.

Attributes

file_name

The path, relative to the root of the cloud assembly, in which this asset source resides.

This can be a path to a file or a directory, dependning on the packaging type.

Return type

str

packaging

Which type of packaging to perform.

Return type

FileAssetPackaging

source_hash

A hash on the content source.

This hash is used to uniquely identify this asset throughout the system. If this value doesn’t change, the asset will not be rebuilt or republished.

Return type

str