FileSystemConfig — AWS Cloud Development Kit 1.204.0 documentation (original) (raw)

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

Bases: object

FileSystem configurations for the Lambda function.

Parameters:

ExampleMetadata:

fixture=_generated

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: ec2.Connections

dependable: cdk.IDependable

policy_statement: iam.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.

connections

connections object used to allow ingress traffic from lambda function.

Default:

dependency

array of IDependable that lambda function depends on.

Default:

local_mount_path

mount path in the lambda runtime environment.

policies

additional IAM policies required for the lambda function.

Default: