View a markdown version of this page

AWS::DevOpsAgent::Asset AssetFile - 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::DevOpsAgent::Asset AssetFile

A single file within an asset bundle. Path is the key used to match files on update; the file contents are write-only and are not returned by read operations.

Syntax

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

JSON

{ "ContentBytes" : String, "ContentText" : String, "Metadata" : Json, "Path" : String }

YAML

ContentBytes: String ContentText: String Metadata: Json Path: String

Properties

ContentBytes

The base64-encoded binary contents of the file. Mutually exclusive with ContentText.

Required: No

Type: String

Maximum: 8388608

Update requires: No interruption

ContentText

The UTF-8 text contents of the file. Mutually exclusive with ContentBytes.

Required: No

Type: String

Maximum: 1572864

Update requires: No interruption

Metadata

A per-file metadata document. Values may be strings, numbers, booleans, or lists of any of those, and are validated server-side.

Required: No

Type: Json

Update requires: No interruption

Path

The path of the file within the asset bundle.

Required: Yes

Type: String

Pattern: ^[a-zA-Z0-9_./-]+$

Minimum: 1

Maximum: 512

Update requires: No interruption