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

private 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

using Io.Cdktn;

Aspects.Of(IConstruct Scope);
Returns the Aspects object associated with a construct scope.

ScopeRequired

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

Properties

NameTypeDescription
AllIAspect[]The list of aspects which were directly applied on this scope.

AllRequired

public IAspect[] All { get; }
The list of aspects which were directly applied on this scope.