# MetadataEntry

A metadata entry in a cloud assembly artifact.

- Source: [`node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.d.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.d.ts#L325)
- Type last changed: v2.251.0 · 24 Apr 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
const metadataEntry: cloud_assembly_schema.MetadataEntry = {
  type: 'type',

  // the properties below are optional
  data: 'data',
  trace: ['trace'],
};
```

## Properties

- `data`: string | number | boolean | [FileAssetMetadataEntry](/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.FileAssetMetadataEntry.html) | [ContainerImageAssetMetadataEntry](/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.ContainerImageAssetMetadataEntry.html) | [PropertyMutationMetadataEntry](/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.PropertyMutationMetadataEntry.html) | string | [Tag](/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.Tag.html)[] — The data.

  **Default:** no data.

- `trace`: string[] — A stack trace for when the entry was created.

  **Default:** no trace.

- `type`: string (required) — The type of the metadata entry.
