FileCodeOptions Struct
Options when reading the function's code from an external file.
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront
file_code_options = cloudfront.FileCodeOptions(
file_path="filePath"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
FileCodeOptions fileCodeOptions = FileCodeOptions.builder()
.filePath("filePath")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var fileCodeOptions = new FileCodeOptions {
FilePath = "filePath"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
fileCodeOptions := &FileCodeOptions{
FilePath: jsii.String("filePath"),
}
Properties
The path of the file to read the code from.