Module aws_lambda_powertools.event_handler.openapi.types

Classes

class OpenAPIResponse (*args, **kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

Expand source code
class OpenAPIResponse(TypedDict):
    description: str
    content: NotRequired[Dict[str, Union[OpenAPIResponseContentSchema, OpenAPIResponseContentModel]]]

Ancestors

  • builtins.dict

Class variables

var content : Dict[str, Union[OpenAPIResponseContentSchemaOpenAPIResponseContentModel]]
var description : str
class OpenAPIResponseContentModel (*args, **kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

Expand source code
class OpenAPIResponseContentModel(TypedDict):
    model: Any

Ancestors

  • builtins.dict

Class variables

var model : Any
class OpenAPIResponseContentSchema (*args, **kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

Expand source code
class OpenAPIResponseContentSchema(TypedDict, total=False):
    schema: Dict

Ancestors

  • builtins.dict

Class variables

var schema : Dict