Skip to content

ResourceWeight

Source code in docs_src/capo_eks/types/resource_weight.py
class ResourceWeight(TypedDict, closed=True):
    name: NotRequired["capo_eks.types.resource_weight_name.ResourceWeightName"]
    """<p>The name of the resource (for example, <code>cpu</code> or <code>memory</code>).</p>"""
    weight: NotRequired["capo_eks.types.resource_weight_value.ResourceWeightValue"]
    """<p>The weight assigned to the resource for scoring. Must be between 1 and 100.</p>"""

name instance-attribute

name: NotRequired[ResourceWeightName]

The name of the resource (for example, cpu or memory).

weight instance-attribute

weight: NotRequired[ResourceWeightValue]

The weight assigned to the resource for scoring. Must be between 1 and 100.