interface FileSystemConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.FileSystemConfig |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#FileSystemConfig |
![]() | software.amazon.awscdk.services.lambda.FileSystemConfig |
![]() | aws_cdk.aws_lambda.FileSystemConfig |
![]() | 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
Name | Type | Description |
---|---|---|
arn | string | ARN of the access point. |
local | string | mount path in the lambda runtime environment. |
connections? | Connections | connections object used to allow ingress traffic from lambda function. |
dependency? | IDependable [] | array of IDependable that lambda function depends on. |
policies? | Policy [] | 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:
Policy
[]
(optional, default: no additional policies required)
additional IAM policies required for the lambda function.