IMixin

class aws_cdk.mixins_preview.core.IMixin(*args, **kwargs)

Bases: Protocol

(experimental) A mixin is a reusable piece of functionality that can be applied to constructs to add behavior, properties, or modify existing functionality without inheritance.

Stability:

experimental

Methods

apply_to(construct)

(experimental) Applies the mixin functionality to the target construct.

Parameters:

construct (IConstruct)

Stability:

experimental

Return type:

IConstruct

supports(construct)

(experimental) Determines whether this mixin can be applied to the given construct.

Parameters:

construct (IConstruct)

Stability:

experimental

Return type:

bool