/AWS1/CL_LMDS3FILESCONFIG¶
Setting controls how your function accesses data from an Amazon S3 file system.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_directs3read TYPE /AWS1/LMDDIRECTS3READ /AWS1/LMDDIRECTS3READ¶
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.
Queryable Attributes¶
DirectS3Read¶
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DIRECTS3READ() |
Getter for DIRECTS3READ, with configurable default |
ASK_DIRECTS3READ() |
Getter for DIRECTS3READ w/ exceptions if field has no value |
HAS_DIRECTS3READ() |
Determine if DIRECTS3READ has a value |