Module aws_lambda_powertools.utilities.parser.models.alb
Expand source code
from typing import Dict
from pydantic import BaseModel
class AlbRequestContextData(BaseModel):
targetGroupArn: str
class AlbRequestContext(BaseModel):
elb: AlbRequestContextData
class AlbModel(BaseModel):
httpMethod: str
path: str
body: str
isBase64Encoded: bool
headers: Dict[str, str]
queryStringParameters: Dict[str, str]
requestContext: AlbRequestContext
Classes
class AlbModel (**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 AlbModel(BaseModel): httpMethod: str path: str body: str isBase64Encoded: bool headers: Dict[str, str] queryStringParameters: Dict[str, str] requestContext: AlbRequestContext
Ancestors
- pydantic.main.BaseModel
- pydantic.utils.Representation
Class variables
var body : str
var headers : Dict[str, str]
var httpMethod : str
var isBase64Encoded : bool
var path : str
var queryStringParameters : Dict[str, str]
var requestContext : AlbRequestContext
class AlbRequestContext (**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 AlbRequestContext(BaseModel): elb: AlbRequestContextData
Ancestors
- pydantic.main.BaseModel
- pydantic.utils.Representation
Class variables
var elb : AlbRequestContextData
class AlbRequestContextData (**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 AlbRequestContextData(BaseModel): targetGroupArn: str
Ancestors
- pydantic.main.BaseModel
- pydantic.utils.Representation
Class variables
var targetGroupArn : str