# FileSource

Describe the source of a file asset.

- Source: [`node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.d.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.d.ts#L39)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
const fileSource: cloud_assembly_schema.FileSource = {
  executable: ['executable'],
  packaging: cloud_assembly_schema.FileAssetPackaging.FILE,
  path: 'path',
};
```

## Properties

- `executable`: string[] — External command which will produce the file asset to upload.

  **Default:** Exactly one of `executable` and `path` is required.

- `packaging`: [FileAssetPackaging](/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.FileAssetPackaging.html) = FILE — Packaging method.

  Only allowed when `path` is specified.

- `path`: string — The filesystem object to upload.

  **Default:** Exactly one of `executable` and `path` is required.

  This path is relative to the asset manifest location.
