Aspects¶
-
class
aws_cdk.core.
Aspects
(*args: Any, **kwargs)¶ Bases:
object
Aspects can be applied to CDK tree scopes and can operate on the tree before synthesis.
Methods
-
add
(aspect)¶ Adds an aspect to apply this scope before synthesis.
- Parameters
aspect (
IAspect
) – The aspect to add.- Return type
None
Attributes
Static Methods
-
classmethod
of
(scope)¶ Returns the
Aspects
object associated with a construct scope.- Parameters
scope (
IConstruct
) – The scope for which these aspects will apply.- Return type
-