interface ResourceWeightProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EKSv2.CfnCluster.ResourceWeightProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseksv2#CfnCluster_ResourceWeightProperty |
Java | software.amazon.awscdk.services.eks_v2.CfnCluster.ResourceWeightProperty |
Python | aws_cdk.aws_eks_v2.CfnCluster.ResourceWeightProperty |
TypeScript | aws-cdk-lib » aws_eks_v2 » CfnCluster » ResourceWeightProperty |
A resource weight entry for the scheduler scoring strategy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks_v2 as eks_v2 } from 'aws-cdk-lib';
const resourceWeightProperty: eks_v2.CfnCluster.ResourceWeightProperty = {
name: 'name',
weight: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| name? | string | The name of the resource (for example, cpu or memory). |
| weight? | number | The weight assigned to the resource for scoring. |
name?
Type:
string
(optional)
The name of the resource (for example, cpu or memory).
weight?
Type:
number
(optional)
The weight assigned to the resource for scoring.
Must be between 1 and 100.

.NET
Go
Java
Python
TypeScript