def METHOD_NAME(location, region_name):
    s3_client = boto3.client('s3', region_name=region_name)
    bucket = location.replace('s3://', '').split("/")[0]
    key = location.replace('s3://' + bucket + "/", '')
    obj = s3_client.get_object(Bucket=bucket, Key=key)
    config_body = obj['Body'].read()
    return json.loads(config_body)