Service Resource

Auto-generated documentation for builder.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

Returns

A list of initialized Boto3ServiceResource.

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

Returns

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