FileSystemConfig

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

Bases: object

FileSystem configurations for the Lambda function.

Parameters
  • arn (str) – ARN of the access point.

  • 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[Sequence[IDependable]]) – array of IDependable that lambda function depends on. Default: - no dependency

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

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2
import aws_cdk.aws_iam as iam
import aws_cdk.aws_lambda as lambda_
import aws_cdk.core as cdk

# connections is of type Connections
# dependable is of type IDependable
# policy_statement is of type PolicyStatement

file_system_config = lambda.FileSystemConfig(
    arn="arn",
    local_mount_path="localMountPath",

    # the properties below are optional
    connections=connections,
    dependency=[dependable],
    policies=[policy_statement]
)

Attributes

arn

ARN of the access point.

Return type

str

connections

connections object used to allow ingress traffic from lambda function.

Default
  • no connections required to add extra ingress rules for Lambda function

Return type

Optional[Connections]

dependency

array of IDependable that lambda function depends on.

Default
  • no dependency

Return type

Optional[List[IDependable]]

local_mount_path

mount path in the lambda runtime environment.

Return type

str

policies

additional IAM policies required for the lambda function.

Default
  • no additional policies required

Return type

Optional[List[PolicyStatement]]