Skip to main content
Aspects can be applied to CDK tree scopes and can operate on the tree before synthesis.

Methods

NameDescription
AddAdds an aspect to apply this scope before synthesis.

Add

func Add(aspect IAspect)
Adds an aspect to apply this scope before synthesis.

aspectRequired

The aspect to add.

Static Functions

NameDescription
OfReturns the Aspects object associated with a construct scope.

Of

import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.Aspects_Of(scope IConstruct) Aspects
Returns the Aspects object associated with a construct scope.

scopeRequired

  • Type: github.com/aws/constructs-go/constructs/v10.IConstruct
The scope for which these aspects will apply.

Properties

NameTypeDescription
All*[]IAspectThe list of aspects which were directly applied on this scope.

AllRequired

func All() *[]IAspect
The list of aspects which were directly applied on this scope.