Parse Resource

mypy-boto3-builder Index / Mypy Boto3 Builder / Parsers / Parse Resource

Auto-generated documentation for mypy_boto3_builder.parsers.parse_resource module.

get_resource_public_methods

Show source in parse_resource.py:76

Extract public methods from boto3 sub resource.

Arguments

  • resource_class - boto3 resource meta.

Returns

A dictionary of method name and method.

Signature

def get_resource_public_methods(
    resource_class: type[Boto3ServiceResource],
) -> dict[str, MethodType]:
    ...

parse_resource

Show source in parse_resource.py:23

Parse boto3 sub Resource data.

Arguments

  • resource - Original boto3 resource.

Returns

Resource structure.

Signature

def parse_resource(
    name: str,
    resource: Boto3ServiceResource,
    service_name: ServiceName,
    shape_parser: ShapeParser,
) -> Resource:
    ...

See also