from __future__ import annotations
from pydantic import AwareDatetime, BaseModel, Field
[docs]class Detail(BaseModel):
"""
Detail payload for this SSM event.
"""
#: Event field ``window-target-id``.
window_target_id: str = Field(..., alias="window-target-id")
#: Event field ``window-id``.
window_id: str = Field(..., alias="window-id")
#: Event field ``status``.
status: str
[docs]class SSMMaintenanceWindowTargetRegistrationNotificationEvent(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