Parse Resource

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

Parser for Boto3 ServiceResource sub-resource, produces structures.Resource

get_resource_public_methods

[find in source code]

def get_resource_public_methods(
    resource_class: Type[Boto3ServiceResource],
) -> Dict[str, FunctionType]:

Extract public methods from boto3 sub resource.

Arguments

  • resource_class - boto3 resource meta.

Returns

A dictionary of method name and method.

parse_resource

[find in source code]

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

Parse boto3 sub Resource data.

Arguments

  • resource - Original boto3 resource.

Returns

Resource structure.

See also