FileSource

class aws_cdk.cloud_assembly_schema.FileSource(*, executable=None, packaging=None, path=None)

Bases: object

Describe the source of a file asset.

Parameters:
  • executable (Optional[Sequence[str]]) – External command which will produce the file asset to upload. Default: - Exactly one of executable and path is required.

  • packaging (Optional[FileAssetPackaging]) – Packaging method. Only allowed when path is specified. Default: FILE

  • path (Optional[str]) – The filesystem object to upload. This path is relative to the asset manifest location. Default: - Exactly one of executable and path is required.

Attributes

executable

External command which will produce the file asset to upload.

Default:
  • Exactly one of executable and path is required.

packaging

Packaging method.

Only allowed when path is specified.

Default:

FILE

path

The filesystem object to upload.

This path is relative to the asset manifest location.

Default:
  • Exactly one of executable and path is required.