interface FileCodeOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.FileCodeOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#FileCodeOptions |
Java | software.amazon.awscdk.services.cloudfront.FileCodeOptions |
Python | aws_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
Name | Type | Description |
---|---|---|
file | string | The path of the file to read the code from. |
filePath
Type:
string
The path of the file to read the code from.