Module aws_lambda_powertools.utilities.parser.models.event_bridge
Expand source code
from datetime import datetime
from typing import Any, Dict, List, Optional
from pydantic import BaseModel, Field
class EventBridgeModel(BaseModel):
version: str
id: str # noqa: A003,VNE003
source: str
account: str
time: datetime
region: str
resources: List[str]
detail_type: str = Field(None, alias="detail-type")
detail: Dict[str, Any]
replay_name: Optional[str] = Field(None, alias="replay-name")
Classes
class EventBridgeModel (**data: Any)
-
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Expand source code
class EventBridgeModel(BaseModel): version: str id: str # noqa: A003,VNE003 source: str account: str time: datetime region: str resources: List[str] detail_type: str = Field(None, alias="detail-type") detail: Dict[str, Any] replay_name: Optional[str] = Field(None, alias="replay-name")
Ancestors
- pydantic.main.BaseModel
- pydantic.utils.Representation
Class variables
var account : str
var detail : Dict[str, Any]
var detail_type : str
var id : str
var region : str
var replay_name : Union[str, NoneType]
var resources : List[str]
var source : str
var time : datetime.datetime
var version : str