Skip to content
v2.277.0

MetadataEntry Struct ​

A metadata entry in a cloud assembly artifact.

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'],
};
python
from aws_cdk.cloud_assembly_schema import MetadataEntry
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cloud_assembly_schema

metadata_entry = MetadataEntry(
    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.cloud_assembly_schema.*;

MetadataEntry metadataEntry = MetadataEntry.builder()
        .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.Cloud_assembly_schema;

var metadataEntry = new MetadataEntry {
    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"

metadataEntry := &MetadataEntry{
	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.

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.