aws-cdk-lib.aws_lambda.FileSystemConfig

interface FileSystemConfig

LanguageType name
.NETAmazon.CDK.AWS.Lambda.FileSystemConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#FileSystemConfig
Javasoftware.amazon.awscdk.services.lambda.FileSystemConfig
Pythonaws_cdk.aws_lambda.FileSystemConfig
TypeScript (source)aws-cdk-lib » aws_lambda » FileSystemConfig

FileSystem configurations for the Lambda function.

Example

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

NameTypeDescription
arnstringARN of the access point.
localMountPathstringmount path in the lambda runtime environment.
connections?Connectionsconnections object used to allow ingress traffic from lambda function.
dependency?IDependable[]array of IDependable that lambda function depends on.
policies?PolicyStatement[]additional IAM policies required for the lambda function.

arn

Type: string

ARN of the access point.


localMountPath

Type: string

mount path in the lambda runtime environment.


connections?

Type: Connections (optional, default: no connections required to add extra ingress rules for Lambda function)

connections object used to allow ingress traffic from lambda function.


dependency?

Type: IDependable[] (optional, default: no dependency)

array of IDependable that lambda function depends on.


policies?

Type: PolicyStatement[] (optional, default: no additional policies required)

additional IAM policies required for the lambda function.