Skip to content

FileSource

Describe the source of a file asset.

Initializer

import { FileSource } from '@alicloud/ros-cdk-assembly-schema'
const fileSource: FileSource = { ... }

Properties

Name Type Description
executable string[] External command which will produce the file asset to upload.
packaging FileAssetPackaging Packaging method.
path string The filesystem object to upload.

executableOptional

public readonly executable: string[];
  • Type: string[]
  • Default: Exactly one of executable and path is required.

External command which will produce the file asset to upload.


packagingOptional

public readonly packaging: FileAssetPackaging;

Packaging method.

Only allowed when path is specified.


pathOptional

public readonly path: string;
  • Type: string
  • Default: Exactly one of executable and path is required.

The filesystem object to upload.

This path is relative to the asset manifest location.