# 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.

- Source: [`core/lib/aspect.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/core/lib/aspect.ts#L146)
- Type last changed: v2.172.0 · 7 Dec 2024

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

## Initializer

```ts
new AspectApplication(construct: IConstruct, aspect: IAspect, priority: number)
```

## Properties

- `aspect`: [IAspect](/cdk/api/v2/docs/aws-cdk-lib.IAspect.html) (required) — The Aspect that was applied.

- `construct`: [IConstruct](/cdk/api/v2/docs/constructs.IConstruct.html) (required) — The construct that the Aspect was applied to.

- `priority`: number (required) — Gets the priority value.

  Sets the priority value.
