Class FileSystemConfig.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.FileSystemConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FileSystemConfig>
- Enclosing interface:
- FileSystemConfig
@Stability(Stable)
public static final class FileSystemConfig.Builder
extends Object
implements software.amazon.jsii.Builder<FileSystemConfig>
A builder for
FileSystemConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofFileSystemConfig.getArn()build()Builds the configured instance.connections(Connections connections) Sets the value ofFileSystemConfig.getConnections()dependency(List<? extends IDependable> dependency) Sets the value ofFileSystemConfig.getDependency()localMountPath(String localMountPath) Sets the value ofFileSystemConfig.getLocalMountPath()policies(List<? extends PolicyStatement> policies) Sets the value ofFileSystemConfig.getPolicies()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofFileSystemConfig.getArn()- Parameters:
arn- ARN of the access point. This parameter is required.- Returns:
this
-
localMountPath
Sets the value ofFileSystemConfig.getLocalMountPath()- Parameters:
localMountPath- mount path in the lambda runtime environment. This parameter is required.- Returns:
this
-
connections
Sets the value ofFileSystemConfig.getConnections()- Parameters:
connections- connections object used to allow ingress traffic from lambda function.- Returns:
this
-
dependency
@Stability(Stable) public FileSystemConfig.Builder dependency(List<? extends IDependable> dependency) Sets the value ofFileSystemConfig.getDependency()- Parameters:
dependency- array of IDependable that lambda function depends on.- Returns:
this
-
policies
@Stability(Stable) public FileSystemConfig.Builder policies(List<? extends PolicyStatement> policies) Sets the value ofFileSystemConfig.getPolicies()- Parameters:
policies- additional IAM policies required for the lambda function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FileSystemConfig>- Returns:
- a new instance of
FileSystemConfig - Throws:
NullPointerException- if any required attribute was not provided
-