# AssetFileProperty

A single file inside an Asset's bundle.

Path is the diff key on update; Content is write-only and not repopulated by Read.

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';

declare const metadata: any;
const assetFileProperty: devopsagent.CfnAsset.AssetFileProperty = {
  path: 'path',

  // the properties below are optional
  contentBytes: 'contentBytes',
  contentText: 'contentText',
  metadata: metadata,
};
```

## Properties

- `contentBytes`: string — Base64-encoded binary contents of the file.

  Mutually exclusive with ContentText (max 6 MiB).

- `contentText`: string — UTF-8 text contents of the file.

  Mutually exclusive with ContentBytes (max 1.5 MiB).

- `metadata`: any — Per-file metadata document.

  Values may be strings, numbers, booleans, or lists of any of those (validated server-side).

- `path`: string (required) — Path of this file within the asset bundle.
