ShapeParser

Auto-generated documentation for builder.mypy_boto3_builder.parsers.shape_parser module.

Parser for botocore shape files.

ShapeParser

[find in source code]

class ShapeParser():
    def __init__(session: Session, service_name: ServiceName):

Parser for botocore shape files.

Arguments

Attributes

ShapeParser().get_client_method_map

[find in source code]

def get_client_method_map() -> Dict[str, Method]:

Get client methods from shape.

Returns

A map of method name to Method.

ShapeParser().get_collection_batch_methods

[find in source code]

def get_collection_batch_methods(
    name: str,
    collection: Collection,
) -> List[Method]:

Get batch operations for Resource collection.

Arguments

Returns

List of Method records.

ShapeParser().get_collection_filter_method

[find in source code]

def get_collection_filter_method(name: str, collection: Collection) -> Method:

Get filter classmethod for Resource collection.

Arguments

Returns

Filter Method record.

ShapeParser().get_paginate_method

[find in source code]

def get_paginate_method(paginator_name: str) -> Method:

Get Paginator paginate method.

Arguments

Returns

Method.

ShapeParser().get_paginator_names

[find in source code]

def get_paginator_names() -> List[str]:

Get available paginator names.

Returns

A list of paginator names.

ShapeParser().get_resource_method_map

[find in source code]

def get_resource_method_map(resource_name: str) -> Dict[str, Method]:

Get methods for Resource.

Arguments

Returns

A map of method name to Method.

ShapeParser().get_service_resource_method_map

[find in source code]

def get_service_resource_method_map() -> Dict[str, Method]:

Get methods for ServiceResource.

Returns

A map of method name to Method.

ShapeParser().get_wait_method

[find in source code]

def get_wait_method(waiter_name: str) -> Method:

Get Waiter wait method.

Arguments

Returns

Method.

ShapeParserError

[find in source code]

class ShapeParserError(Exception):