

def get_endpoint_name(self, headers):
    'Parses request headers and extracts part od the X-Amz-Target\n        that corresponds to a method of DynamoHandler\n\n        ie: X-Amz-Target: DynamoDB_20111205.ListTables -> ListTables\n        '
    match = (headers.get('x-amz-target') or headers.get('X-Amz-Target'))
    if match:
        return match.split('.')[1]

dataset/ETHPy150Open spulec/moto/moto/dynamodb/responses.py DynamoHandler.get_endpoint_name/original