Module aws_lambda_powertools.utilities.parser.models.s3_event_notification
Expand source code
from typing import List
from pydantic import Json
from aws_lambda_powertools.utilities.parser.models.s3 import S3Model
from aws_lambda_powertools.utilities.parser.models.sqs import SqsModel, SqsRecordModel
class S3SqsEventNotificationRecordModel(SqsRecordModel):
body: Json[S3Model]
class S3SqsEventNotificationModel(SqsModel):
Records: List[S3SqsEventNotificationRecordModel]
Classes
class S3SqsEventNotificationModel (**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 S3SqsEventNotificationModel(SqsModel): Records: List[S3SqsEventNotificationRecordModel]
Ancestors
- SqsModel
- pydantic.main.BaseModel
- pydantic.utils.Representation
Class variables
var Records : List[S3SqsEventNotificationRecordModel]
class S3SqsEventNotificationRecordModel (**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 S3SqsEventNotificationRecordModel(SqsRecordModel): body: Json[S3Model]
Ancestors
- SqsRecordModel
- pydantic.main.BaseModel
- pydantic.utils.Representation
Class variables
var body : pydantic.types.JsonWrapperValue