FileSystemConfig Struct
FileSystem configurations for the Lambda function.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_lambda as lambda } from 'aws-cdk-lib';
import * as constructs from 'constructs';
declare const connections: ec2.Connections;
declare const dependable: constructs.IDependable;
declare const policyStatement: iam.PolicyStatement;
const fileSystemConfig: lambda.FileSystemConfig = {
arn: 'arn',
localMountPath: 'localMountPath',
// the properties below are optional
connections: connections,
dependency: [dependable],
policies: [policyStatement],
};
Properties
ARN of the access point.
connectionsConnectionsconnectionsConnectionsconnectionsConnectionsConnectionsConnectionsConnectionsConnections= no connections required to add e…#connections object used to allow ingress traffic from lambda function.
default
Default: no connections required to add extra ingress rules for Lambda function
dependencyIDependable[]dependencytyping.List[IDependable]dependencyList<IDependable>DependencyIDependable[]Dependency*[]IDependable= no dependency#array of IDependable that lambda function depends on.
localMountPathstringlocal_mount_pathstrlocalMountPathStringLocalMountPathstringLocalMountPath*stringrequired#mount path in the lambda runtime environment.
policiesPolicyStatement[]policiestyping.List[PolicyStatement]policiesList<PolicyStatement>PoliciesPolicyStatement[]Policies*[]PolicyStatement= no additional policies required#additional IAM policies required for the lambda function.