FileSystem

class aws_cdk.aws_lambda.FileSystem(*, arn, local_mount_path, connections=None, dependency=None, policies=None)

Bases: object

Represents the filesystem for the Lambda function.

stability :stability: experimental

__init__(*, arn, local_mount_path, connections=None, dependency=None, policies=None)
Parameters
  • arn (str) – ARN of the access point.

  • local_mount_path (str) – mount path in the lambda runtime environment.

  • connections (Optional[Connections]) – connections object used to allow ingress traffic from lambda function. Default: - no connections required to add extra ingress rules for Lambda function

  • dependency (Optional[List[IDependable]]) – array of IDependable that lambda function depends on. Default: - no dependency

  • policies (Optional[List[PolicyStatement]]) – additional IAM policies required for the lambda function. Default: - no additional policies required

stability :stability: experimental

Return type

None

Attributes

config

the FileSystem configurations for the Lambda function.

stability :stability: experimental

Return type

FileSystemConfig

Static Methods

classmethod from_efs_access_point(ap, mount_path)

mount the filesystem from Amazon EFS.

Parameters
  • ap (AccessPoint) – the Amazon EFS access point.

  • mount_path (str) – the target path in the lambda runtime environment.

stability :stability: experimental

Return type

FileSystem