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

public void add(IAspect aspect)
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 io.cdktn.cdktn.Aspects;

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

scopeRequired

  • Type: software.constructs.IConstruct
The scope for which these aspects will apply.

Properties

NameTypeDescription
alljava.util.List<IAspect>The list of aspects which were directly applied on this scope.

allRequired

public java.util.List<IAspect> getAll();
The list of aspects which were directly applied on this scope.