Skip to content
v2.278.0

CfnTemplateMetadataContextProps Struct Added in v2.278.0 ​

Template-level CloudFormation Metadata Context.

Example ​

ts
declare const stack: Stack;

CfnTemplateMetadataContext.of(stack).set({
  arch: 'SQS buffer -> Lambda -> DynamoDB',
  owner: 'order-processing-team',
});
python
# stack: Stack


CfnTemplateMetadataContext.of(stack).set(
    arch="SQS buffer -> Lambda -> DynamoDB",
    owner="order-processing-team"
)
java
Stack stack;


CfnTemplateMetadataContext.of(stack).set(CfnTemplateMetadataContextProps.builder()
        .arch("SQS buffer -> Lambda -> DynamoDB")
        .owner("order-processing-team")
        .build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
Stack stack;


CfnTemplateMetadataContext.Of(stack).Set(new CfnTemplateMetadataContextProps {
    Arch = "SQS buffer -> Lambda -> DynamoDB",
    Owner = "order-processing-team"
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var stack Stack


awscdk.CfnTemplateMetadataContext_Of(stack).Set(&CfnTemplateMetadataContextProps{
	Arch: jsii.String("SQS buffer -> Lambda -> DynamoDB"),
	Owner: jsii.String("order-processing-team"),
})

Properties ​

archoptionalstringarchoptionalstrarchoptionalStringArchoptionalstringArchoptional*string #
High-level architecture of the template.

Default: no architecture overview

mustoptionalstring[]mustoptionaltyping.List[str]mustoptionalList<String>Mustoptionalstring[]Mustoptional*[]*string #
Constraints that apply across the template.

Default: no constraints

owneroptionalstringowneroptionalstrowneroptionalStringOwneroptionalstringOwneroptional*string #
Owner of the template.

Default: no owner

refoptionalCfnContextRef[]refoptionaltyping.List[CfnContextRef]refoptionalList<CfnContextRef>RefoptionalCfnContextRef[]Refoptional*[]CfnContextRef #
References to supporting context.

Default: no references