Skip to content
v2.274.0

Mixins Class ​

Main entry point for applying mixins.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const mixins = new cdk.Mixins();
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

mixins = cdk.Mixins()
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

Mixins mixins = new Mixins();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var mixins = new Mixins();
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

mixins := cdk.NewMixins()

Initializer ​

ts
new Mixins()
python
Mixins()
java
new Mixins()
csharp
new Mixins()
go
NewMixins()

Methods ​

of(scope: IConstruct, selector?: IConstructSelector): MixinApplicator@staticmethod def of(scope: IConstruct, selector: typing.Optional[IConstructSelector] = None) -> MixinApplicatorpublic static MixinApplicator of(IConstruct scope, IConstructSelector selector)public static MixinApplicator Of(IConstruct scope, IConstructSelector? selector = null)func Of(Scope IConstruct, Selector IConstructSelector) MixinApplicatorstatic#
Creates a MixinApplicator for the given scope.