aws-cdk-lib.aws_cloudfront.FileCodeOptions

interface FileCodeOptions

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.FileCodeOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#FileCodeOptions
Javasoftware.amazon.awscdk.services.cloudfront.FileCodeOptions
Pythonaws_cdk.aws_cloudfront.FileCodeOptions
TypeScript (source)aws-cdk-lib » aws_cloudfront » FileCodeOptions

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

Example

// 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

NameTypeDescription
filePathstringThe path of the file to read the code from.

filePath

Type: string

The path of the file to read the code from.