@staticmethod
def _get_table_name(record):
    """
        The source ARN is in the format of:
        'arn:aws:dynamodb:us-east-1:529943178829:table/staging-listing-clean-001/stream/2018-10-18T19:46:17.718'

        We are doing the following:
        * looking for the first backslash '/' and second backslash '/'
        * then parsing out the environment out of the string

        :param record: The DynamoDB stream record
        :return: The environment agnostic table name
        """
    source_arn = record.get('eventSourceARN')
    first_index = source_arn.index('/', 0)
    second_index = source_arn.index('/', first_index + 1)
    full_table_name = source_arn[first_index + 1:second_index]
    first_dash_index = full_table_name.index('-', 0)
    simplified_table_name = full_table_name[first_dash_index + 1:]
    return simplified_table_name
