# Mixins

Main entry point for applying mixins.

- Source: [`core/lib/mixins/mixins.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/mixins/mixins.ts#L10)
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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();
```

Golang:

```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

TypeScript:

```ts
new Mixins()
```

Python:

```python
Mixins()
```

Java:

```java
new Mixins()
```

C# / .NET:

```csharp
new Mixins()
```

Golang:

```go
NewMixins()
```

## Methods

- `of(scope: IConstruct, selector?: IConstructSelector): MixinApplicator` (static) — Creates a MixinApplicator for the given scope.
