Skip to content
v2.277.0

MixinApplication Struct ​

Represents a successful mixin application.

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';
import * as constructs from 'constructs';

declare const construct: constructs.Construct;
declare const mixin: constructs.IMixin;
const mixinApplication: cdk.MixinApplication = {
  construct: construct,
  mixin: mixin,
};
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
import constructs as constructs

# construct: constructs.Construct
# mixin: constructs.IMixin

mixin_application = cdk.MixinApplication(
    construct=construct,
    mixin=mixin
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.constructs.*;

Construct construct;
IMixin mixin;

MixinApplication mixinApplication = MixinApplication.builder()
        .construct(construct)
        .mixin(mixin)
        .build();
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;
using Constructs;

Construct construct;
IMixin mixin;
var mixinApplication = new MixinApplication {
    Construct = construct,
    Mixin = mixin
};
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"
import constructs "github.com/aws/constructs-go/constructs"

var construct Construct
var mixin IMixin

mixinApplication := &MixinApplication{
	Construct: construct,
	Mixin: mixin,
}

Properties ​

constructIConstructconstructIConstructconstructIConstructConstructIConstructConstructIConstruct required #
The construct the mixin was applied to.
mixinIMixinmixinIMixinmixinIMixinMixinIMixinMixinIMixin required #
The mixin that was applied.