

# FileSystemCapability

Requests access to the host file system. The extension can read from or write to the specified paths.

**Note**  
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
<a name="API_FileSystemCapability_Contents"></a>

 ** accessMode **   <a name="systemsmanagercloudextensions-Type-FileSystemCapability-accessMode"></a>
The level of file system access that the extension requests. `READ_ONLY` means that the extension can read but not modify files. `READ_WRITE` means that the extension can both read and write files.  
Type: String  
Valid Values: `READ_ONLY | READ_WRITE`   
Required: Yes

 ** createMode **   <a name="systemsmanagercloudextensions-Type-FileSystemCapability-createMode"></a>
Controls the visibility of files that the extension creates. This value is required when `accessMode` is `READ_WRITE`. `PRIVATE` means that created files are visible only to the user in effect when the file is created. `PUBLIC` means that created files are visible to any user on the host system.  
Type: String  
Valid Values: `PRIVATE | PUBLIC`   
Required: No

 ** directory **   <a name="systemsmanagercloudextensions-Type-FileSystemCapability-directory"></a>
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 **   <a name="systemsmanagercloudextensions-Type-FileSystemCapability-paths"></a>
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
<a name="API_FileSystemCapability_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/cloudextensions-2026-11-29/FileSystemCapability) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudextensions-2026-11-29/FileSystemCapability) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudextensions-2026-11-29/FileSystemCapability) 