Skip to content

PublishedDateFilter

Structure Class

PublishedDateFilter dataclass

Bases: _SerdeShape

A publication time range for the results. Both bounds are optional, and both are inclusive. If publishedAfter is later than publishedBefore, the request fails with a ValidationException.

Attributes

published_after class-attribute instance-attribute
published_after: datetime | None = ...

The earliest publication time of the results, inclusive.

published_before class-attribute instance-attribute
published_before: datetime | None = ...

The latest publication time of the results, inclusive. A date without a time, such as one passed to the AWS CLI, means midnight UTC. To include a whole day, use the last second of that day, for example 2026-01-31T23:59:59Z.