Skip to content
v2.273.0

AspectApplication Class ​

Object respresenting an Aspect application.

Stores the Aspect, the pointer to the construct it was applied to, and the priority value of that Aspect.

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 aspect: cdk.IAspect;
declare const construct: constructs.Construct;
const aspectApplication = new cdk.AspectApplication(construct, aspect, 123);
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

# aspect: cdk.IAspect
# construct: constructs.Construct

aspect_application = cdk.AspectApplication(construct, aspect, 123)
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.*;

IAspect aspect;
Construct construct;

AspectApplication aspectApplication = new AspectApplication(construct, aspect, 123);
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;

IAspect aspect;
Construct construct;
var aspectApplication = new AspectApplication(construct, aspect, 123);
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 aspect IAspect
var construct Construct

aspectApplication := cdk.NewAspectApplication(construct, aspect, jsii.Number(123))

Initializer ​

ts
new AspectApplication(construct: IConstruct, aspect: IAspect, priority: number)
python
AspectApplication(construct: IConstruct, aspect: IAspect, priority: int | float)
java
new AspectApplication(IConstruct construct, IAspect aspect, Number priority)
csharp
new AspectApplication(IConstruct construct, IAspect aspect, double priority)
go
NewAspectApplication(Construct IConstruct, Aspect IAspect, Priority *float64)

Properties ​

aspectIAspectaspectIAspectaspectIAspectAspectIAspectAspectIAspectrequired#
The Aspect that was applied.
constructIConstructconstructIConstructconstructIConstructConstructIConstructConstructIConstructrequired#
The construct that the Aspect was applied to.
prioritynumberpriorityint | floatpriorityNumberPrioritydoublePriority*float64required#
Gets the priority value.

Sets the priority value.