Skip to content

DateRange

Source code in docs_src/capo_securityhub/types/date_range.py
class DateRange(TypedDict, closed=True):
    value: NotRequired["capo_securityhub.types.integer.Integer"]
    """<p>A date range value for the date filter.</p>"""
    unit: NotRequired["capo_securityhub.types.date_range_unit.DateRangeUnit"]
    """<p>A date range unit for the date filter.</p>"""
    comparison: NotRequired[
        "capo_securityhub.types.date_range_comparison.DateRangeComparison"
    ]
    """<p>The condition to apply to a date range filter. If you specify <code>WITHIN</code>, Security Hub filters for dates within the specified date range. If you specify <code>OLDER_THAN</code>, Security Hub filters for dates before the specified date range. If you don't specify a value, the default is <code>WITHIN</code>.</p>"""

comparison instance-attribute

comparison: NotRequired[DateRangeComparison]

The condition to apply to a date range filter. If you specify WITHIN, Security Hub filters for dates within the specified date range. If you specify OLDER_THAN, Security Hub filters for dates before the specified date range. If you don't specify a value, the default is WITHIN.

unit instance-attribute

unit: NotRequired[DateRangeUnit]

A date range unit for the date filter.

value instance-attribute

value: NotRequired[Integer]

A date range value for the date filter.