FileSystemCapability
Requests access to the host file system. The extension can read from or write to the specified paths.
Whether files persist depends on the compute environment where the extension runs. For example, in an AWS Lambda function, files that the extension writes persist only for the lifetime of the execution environment of the function.
Contents
- accessMode
-
The level of file system access that the extension requests.
READ_ONLYmeans that the extension can read but not modify files.READ_WRITEmeans that the extension can both read and write files.Type: String
Valid Values:
READ_ONLY | READ_WRITERequired: Yes
- createMode
-
Controls the visibility of files that the extension creates. This value is required when
accessModeisREAD_WRITE.PRIVATEmeans that created files are visible only to the user in effect when the file is created.PUBLICmeans that created files are visible to any user on the host system.Type: String
Valid Values:
PRIVATE | PUBLICRequired: No
- directory
-
A base directory path. If you specify this value, the capability grants access to this directory and its contents.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 255.
Required: No
- paths
-
The specific file paths to grant access to. Use this member when the extension needs access to individual files instead of an entire directory. The list can have up to 10 paths.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 10 items.
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: