Skip to content

EC2  >  Structures  >  DimensionCondition

DimensionCondition

Structure Class

DimensionCondition dataclass

Bases: _SerdeShape

Specifies a condition for filtering capacity data based on dimension values. Used to create precise filters for metric queries and dimension lookups.

Attributes

comparison class-attribute instance-attribute
comparison: str | None = ...

The comparison operator to use for the filter.

dimension class-attribute instance-attribute
dimension: str | None = ...

The name of the dimension to filter by.

values class-attribute instance-attribute
values: list[str] | None = ...

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.