View a markdown version of this page

AWS::CloudExtensions::ProfileEntry Filesystem - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.

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

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

JSON

{ "AccessMode" : String, "CreateMode" : String, "Directory" : String, "Paths" : [ String, ... ] }

YAML

AccessMode: String CreateMode: String Directory: String Paths: - String

Properties

AccessMode

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

CreateMode

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

Directory

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

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.

Required: No

Type: Array of String

Minimum: 1

Maximum: 255 | 10

Update requires: No interruption