class AspectApplication
Language | Type name |
---|---|
![]() | Amazon.CDK.AspectApplication |
![]() | github.com/aws/aws-cdk-go/awscdk/v2#AspectApplication |
![]() | software.amazon.awscdk.AspectApplication |
![]() | aws_cdk.AspectApplication |
![]() | aws-cdk-lib » AspectApplication |
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
// 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);
Initializer
new AspectApplication(construct: IConstruct, aspect: IAspect, priority: number)
Parameters
- construct
IConstruct
- aspect
IAspect
- priority
number
Initializes AspectApplication object.
Properties
Name | Type | Description |
---|---|---|
aspect | IAspect | The Aspect that was applied. |
construct | IConstruct | The construct that the Aspect was applied to. |
priority | number | Gets the priority value. |
aspect
Type:
IAspect
The Aspect that was applied.
construct
Type:
IConstruct
The construct that the Aspect was applied to.
priority
Type:
number
Gets the priority value.
Sets the priority value.