# ResourceWeightProperty

A resource weight entry for the scheduler scoring strategy.

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const resourceWeightProperty: eks.CfnCluster.ResourceWeightProperty = {
  name: 'name',
  weight: 123,
};
```

## Properties

- `name`: string — The name of the resource (for example, cpu or memory).

- `weight`: number — The weight assigned to the resource for scoring.

  Must be between 1 and 100.
