# MetadataEntryResult

Extends: [MetadataEntry](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.MetadataEntry.html)
Returned by: [CloudArtifact.findMetadataByType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.cx_api.CloudArtifact.html#findmetadatabytype)

- Source: [`cx-api/lib/legacy-moved.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/cx-api/lib/legacy-moved.ts#L600)
- Type last changed: v2.238.0 · 9 Feb 2026

## Example

TypeScript:

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

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

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cx_api

metadata_entry_result = cx_api.MetadataEntryResult(
    path="path",
    type="type",

    # the properties below are optional
    data="data",
    trace=["trace"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cxapi.*;

MetadataEntryResult metadataEntryResult = MetadataEntryResult.builder()
        .path("path")
        .type("type")

        // the properties below are optional
        .data("data")
        .trace(List.of("trace"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CXAPI;

var metadataEntryResult = new MetadataEntryResult {
    Path = "path",
    Type = "type",

    // the properties below are optional
    Data = "data",
    Trace = new [] { "trace" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

metadataEntryResult := &MetadataEntryResult{
	Path: jsii.String("path"),
	Type: jsii.String("type"),

	// the properties below are optional
	Data: jsii.String("data"),
	Trace: []*string{
		jsii.String("trace"),
	},
}
```

## Properties

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

  **Default:** no data.

- `path`: string (required) — The path in which this entry was defined.

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

  **Default:** no trace.

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