Skip to content

DimensionCondition

Source code in docs_src/capo_ec2/types/dimension_condition.py
class DimensionCondition(TypedDict, closed=True):
    dimension: NotRequired["capo_ec2.types.filter_by_dimension.FilterByDimension"]
    """<p> The name of the dimension to filter by. </p>"""
    comparison: NotRequired["capo_ec2.types.comparison.Comparison"]
    """<p> The comparison operator to use for the filter. </p>"""
    values: NotRequired["capo_ec2.types.condition_value_list.ConditionValueList"]
    """<p> The list of values to match against the specified dimension. For 'equals' comparison, only the first value is used. For 'in' comparison, any matching value will satisfy the condition. </p>"""

comparison instance-attribute

comparison: NotRequired[Comparison]

The comparison operator to use for the filter.

dimension instance-attribute

dimension: NotRequired[FilterByDimension]

The name of the dimension to filter by.

values instance-attribute

values: NotRequired[ConditionValueList]

The list of values to match against the specified dimension. For 'equals' comparison, only the first value is used. For 'in' comparison, any matching value will satisfy the condition.