

# AssetFile
<a name="API_AssetFile"></a>

Represents a single file within an asset, including its path, content, version, and timestamps.

## Contents
<a name="API_AssetFile_Contents"></a>

 ** content **   <a name="devopsagent-Type-AssetFile-content"></a>
The content of this file  
Type: [AssetFileBody](API_AssetFileBody.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: Yes

 ** createdAt **   <a name="devopsagent-Type-AssetFile-createdAt"></a>
Timestamp when this file was created  
Type: Timestamp  
Required: Yes

 ** path **   <a name="devopsagent-Type-AssetFile-path"></a>
The path of this file within the asset  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 512.  
Pattern: `[a-zA-Z0-9_./-]+`   
Required: Yes

 ** updatedAt **   <a name="devopsagent-Type-AssetFile-updatedAt"></a>
Timestamp when this file was last updated  
Type: Timestamp  
Required: Yes

 ** version **   <a name="devopsagent-Type-AssetFile-version"></a>
The asset version this file belongs to  
Type: Integer  
Required: Yes

 ** metadata **   <a name="devopsagent-Type-AssetFile-metadata"></a>
The metadata for this file  
Type: JSON value  
Required: No

## See Also
<a name="API_AssetFile_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/devops-agent-2026-01-01/AssetFile) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/devops-agent-2026-01-01/AssetFile) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/devops-agent-2026-01-01/AssetFile) 