Service Resource

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

Parser for Boto3 ServiceResource, produces structires.ServiceResource.

get_sub_resources

[find in source code]

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

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.

See also

parse_service_resource

[find in source code]

def parse_service_resource(
    session: Session,
    service_name: ServiceName,
    shape_parser: ShapeParser,
) -> Optional[ServiceResource]:

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.

See also