Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

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 add(aspect: IAspect): void
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 { Aspects } from 'cdktn'

Aspects.of(scope: IConstruct)
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 readonly all: IAspect[];
The list of aspects which were directly applied on this scope.