Service Resource

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

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

get_sub_resources

Show source in service_resource.py:99

Initialize ServiceResource sub-resources with fake data.

Arguments

  • session - boto3 session.
  • service_name - Target service name.
  • resource - Parent ServiceResource.

Returns

A list of initialized Boto3ServiceResource.

Signature

def get_sub_resources(
    session: Session, service_name: ServiceName, resource: Boto3ServiceResource
) -> list[Boto3ServiceResource]:
    ...

See also

parse_service_resource

Show source in service_resource.py:28

Parse boto3 ServiceResource data.

Arguments

  • session - boto3 session.
  • service_name - Target service name.

Returns

ServiceResource structure or None if service does not have a resource.

Signature

def parse_service_resource(
    session: Session, service_name: ServiceName, shape_parser: ShapeParser
) -> ServiceResource | None:
    ...

See also