Skip to content
v2.277.0

MetadataEntryResult Struct ​

Example ​

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
# 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
// 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();
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" }
};
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 ​

dataoptionalstring | number | boolean | FileAssetMetadataEntry | ContainerImageAssetMetadataEntry | PropertyMutationMetadataEntry | string | Tag[]dataoptionaltyping.Union[str, int | float, bool, FileAssetMetadataEntry, ContainerImageAssetMetadataEntry, PropertyMutationMetadataEntry, typing.List[typing.Union[str, Tag]]]dataoptionalStringDataoptionalstringDataoptionalinterface{}#
The data.

Default: no data.

pathstringpathstrpathStringPathstringPath*stringrequired#
The path in which this entry was defined.
traceoptionalstring[]traceoptionaltyping.List[str]traceoptionalList<String>Traceoptionalstring[]Traceoptional*[]*string#
A stack trace for when the entry was created.

Default: no trace.

typestringtypestrtypeStringTypestringType*stringrequired#
The type of the metadata entry.