# AspectPriority

Default Priority values for Aspects.

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

## 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 aspectPriority = new cdk.AspectPriority();
```

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

aspect_priority = cdk.AspectPriority()
```

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.*;

AspectPriority aspectPriority = new AspectPriority();
```

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 aspectPriority = new AspectPriority();
```

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"

aspectPriority := cdk.NewAspectPriority()
```

## Initializer

TypeScript:

```ts
new AspectPriority()
```

Python:

```python
AspectPriority()
```

Java:

```java
new AspectPriority()
```

C# / .NET:

```csharp
new AspectPriority()
```

Golang:

```go
NewAspectPriority()
```

## Properties

- `DEFAULT`: number (static) — Default priority for Aspects that are applied without a priority.

- `MUTATING`: number (static) — Suggested priority for Aspects that mutate the construct tree.

- `READONLY`: number (static) — Suggested priority for Aspects that only read the construct tree.
