# FileCodeOptions

Options when reading the function's code from an external file.

- Source: [`aws-cloudfront/lib/function.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudfront/lib/function.ts#L43)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const fileCodeOptions: cloudfront.FileCodeOptions = {
  filePath: 'filePath',
};
```

## Properties

- `filePath`: string (required) — The path of the file to read the code from.
