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.

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.cloud_assembly_schema as cloud_assembly_schema

file_source = cloud_assembly_schema.FileSource(
    executable=["executable"],
    packaging=cloud_assembly_schema.FileAssetPackaging.FILE,
    path="path"
)

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.