

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CloudExtensions::ProfileEntry Filesystem

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 Amazon Lambda function, files that the extension writes persist only for the lifetime of the execution environment of the function.

## Syntax
<a name="aws-properties-cloudextensions-profileentry-filesystem-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-cloudextensions-profileentry-filesystem-syntax.json"></a>

```json
{
  "[AccessMode](#cfn-cloudextensions-profileentry-filesystem-accessmode)" : {{String}},
  "[CreateMode](#cfn-cloudextensions-profileentry-filesystem-createmode)" : {{String}},
  "[Directory](#cfn-cloudextensions-profileentry-filesystem-directory)" : {{String}},
  "[Paths](#cfn-cloudextensions-profileentry-filesystem-paths)" : {{[ String, ... ]}}
}
```

### YAML
<a name="aws-properties-cloudextensions-profileentry-filesystem-syntax.yaml"></a>

```yaml
  [AccessMode](#cfn-cloudextensions-profileentry-filesystem-accessmode): {{String}}
  [CreateMode](#cfn-cloudextensions-profileentry-filesystem-createmode): {{String}}
  [Directory](#cfn-cloudextensions-profileentry-filesystem-directory): {{String}}
  [Paths](#cfn-cloudextensions-profileentry-filesystem-paths): {{
    - String}}
```

## Properties
<a name="aws-properties-cloudextensions-profileentry-filesystem-properties"></a>

`AccessMode`  <a name="cfn-cloudextensions-profileentry-filesystem-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.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `READ_ONLY | READ_WRITE`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`CreateMode`  <a name="cfn-cloudextensions-profileentry-filesystem-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.  
*Required*: No  
*Type*: String  
*Allowed values*: `PRIVATE | PUBLIC`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Directory`  <a name="cfn-cloudextensions-profileentry-filesystem-directory"></a>
A base directory path. If you specify this value, the capability grants access to this directory and its contents.  
*Required*: No  
*Type*: String  
*Minimum*: `0`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Paths`  <a name="cfn-cloudextensions-profileentry-filesystem-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.  
*Required*: No  
*Type*: Array of String  
*Minimum*: `1`  
*Maximum*: `255 | 10`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)