def get_table_suffix()

in src/main/utils/deequ-controller/deequ-controller.py [0:0]


def get_table_suffix(environment):
    try:
        appsync_api_id = ssm.get_parameter(
            Name=f"/DataQuality/{environment}/AppSync/GraphQLApi")['Parameter']['Value']
        return f"{appsync_api_id}-{env}"
    except ClientError as e:
        if e.response['Error']['Code'] == 'ParameterNotFound':
            return f"{env}"
        else:
            raise e