Interface CfnFunction.S3FilesConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunction.S3FilesConfigProperty.Jsii$Proxy
- Enclosing class:
CfnFunction
@Stability(Stable)
public static interface CfnFunction.S3FilesConfigProperty
extends software.amazon.jsii.JsiiSerializable
Setting controls how your function accesses data from an Amazon S3 file system.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
S3FilesConfigProperty s3FilesConfigProperty = S3FilesConfigProperty.builder()
.directS3Read("directS3Read")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunction.S3FilesConfigPropertystatic final classAn implementation forCfnFunction.S3FilesConfigProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDirectS3Read
Specifies if a function reads from the file system for the lowest latency, or through Amazon S3 Files feature "direct Amazon S3 bucket reads" for the highest throughput.Valid values:
AUTO(default) – Direct reads are active for functions you configure with 512 MB or more of memory.ENABLED– Enforces all reads are directly from the Amazon S3 bucket, regardless of available memory (less than 512 MB).DISABLED– Routes all reads through the file system, regardless of memory configuration.
To use direct reads, you must grant the execution role the
s3:GetObjectands3:GetObjectVersionpermissions. If a direct read fails, Lambda automatically falls back to reading through the file system.- See Also:
-
builder
-