from __future__ import annotations
from pydantic import AwareDatetime, BaseModel, Field
[docs]class Detail(BaseModel):
"""
Detail payload for this SSM event.
"""
#: Event field ``start-time``.
start_time: AwareDatetime = Field(..., alias="start-time")
#: Event field ``end-time``.
end_time: AwareDatetime = Field(..., alias="end-time")
#: Event field ``window-id``.
window_id: str = Field(..., alias="window-id")
#: Event field ``window-execution-id``.
window_execution_id: str = Field(..., alias="window-execution-id")
#: Event field ``status``.
status: str
[docs]class SSMMaintenanceWindowExecutionStateChangeNotificationEvent(BaseModel):
"""
Raw EventBridge payload for this SSM event.
"""
#: EventBridge payload version.
version: str
#: Unique identifier for the EventBridge event.
id: str
#: EventBridge detail type for the event.
detail_type: str = Field(..., alias="detail-type")
#: Event source identifier.
source: str
#: AWS account that emitted the event.
account: str
#: Timestamp when EventBridge recorded the event.
time: AwareDatetime
#: AWS region where the event was emitted.
region: str
#: Resources associated with the event.
resources: list[str]
#: Event-specific detail payload from Systems Manager.
detail: Detail