prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add support for DataLocationResource & TableWithColumnsResource in AWS::LakeFormation::Permissions (2020, Jan 16 update)
  waiting for the doc to be updated
  
  </issue>
  <code>
  [start of troposphere/lakeformation.py]
  1 # Copyright (c) 2012-2019, Mark Peek <mark@peek.org>
  2 # All rights reserved.
  3 #
  4 # See LICENSE file for full license.
  5 #
  6 # *** Do not modify - this file is autogenerated ***
  7 # Resource specification version: 5.3.0
  8 
  9 
  10 from . import AWSObject
  11 from . import AWSProperty
  12 
  13 
  14 class Admins(AWSProperty):
  15     props = {
  16     }
  17 
  18 
  19 class DataLakeSettings(AWSObject):
  20     resource_type = "AWS::LakeFormation::DataLakeSettings"
  21 
  22     props = {
  23         'Admins': (Admins, False),
  24     }
  25 
  26 
  27 class DataLakePrincipal(AWSProperty):
  28     props = {
  29         'DataLakePrincipalIdentifier': (basestring, False),
  30     }
  31 
  32 
  33 class DatabaseResource(AWSProperty):
  34     props = {
  35         'Name': (basestring, False),
  36     }
  37 
  38 
  39 class TableResource(AWSProperty):
  40     props = {
  41         'DatabaseName': (basestring, False),
  42         'Name': (basestring, False),
  43     }
  44 
  45 
  46 class Resource(AWSProperty):
  47     props = {
  48         'DatabaseResource': (DatabaseResource, False),
  49         'TableResource': (TableResource, False),
  50     }
  51 
  52 
  53 class Permissions(AWSObject):
  54     resource_type = "AWS::LakeFormation::Permissions"
  55 
  56     props = {
  57         'DataLakePrincipal': (DataLakePrincipal, True),
  58         'Permissions': ([basestring], False),
  59         'PermissionsWithGrantOption': ([basestring], False),
  60         'Resource': (Resource, True),
  61     }
  62
  [end of troposphere/lakeformation.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/troposphere/lakeformation.py b/troposphere/lakeformation.py
  --- a/troposphere/lakeformation.py
  +++ b/troposphere/lakeformation.py
  @@ -43,10 +43,33 @@
       }
   
   
  +class DataLocationResource(AWSProperty):
  +    props = {
  +        'S3Resource': (basestring, False),
  +    }
  +
  +
  +class ColumnWildcard(AWSProperty):
  +    props = {
  +        'ExcludedColumnNames': ([basestring], False),
  +    }
  +
  +
  +class TableWithColumnsResource(AWSProperty):
  +    props = {
  +        'ColumnNames': ([basestring], False),
  +        'ColumnWildcard': (ColumnWildcard, False),
  +        'DatabaseName': (basestring, False),
  +        'Name': (basestring, False),
  +    }
  +
  +
   class Resource(AWSProperty):
       props = {
           'DatabaseResource': (DatabaseResource, False),
  +        'DataLocationResource': (DataLocationResource, False),
           'TableResource': (TableResource, False),
  +        'TableWithColumnsResource': (TableWithColumnsResource, False),
       }
  
verification_info: {"golden_diff": "diff --git a/troposphere/lakeformation.py b/troposphere/lakeformation.py\n--- a/troposphere/lakeformation.py\n+++ b/troposphere/lakeformation.py\n@@ -43,10 +43,33 @@\n     }\n \n \n+class DataLocationResource(AWSProperty):\n+    props = {\n+        'S3Resource': (basestring, False),\n+    }\n+\n+\n+class ColumnWildcard(AWSProperty):\n+    props = {\n+        'ExcludedColumnNames': ([basestring], False),\n+    }\n+\n+\n+class TableWithColumnsResource(AWSProperty):\n+    props = {\n+        'ColumnNames': ([basestring], False),\n+        'ColumnWildcard': (ColumnWildcard, False),\n+        'DatabaseName': (basestring, False),\n+        'Name': (basestring, False),\n+    }\n+\n+\n class Resource(AWSProperty):\n     props = {\n         'DatabaseResource': (DatabaseResource, False),\n+        'DataLocationResource': (DataLocationResource, False),\n         'TableResource': (TableResource, False),\n+        'TableWithColumnsResource': (TableWithColumnsResource, False),\n     }\n", "issue": "Add support for DataLocationResource & TableWithColumnsResource in AWS::LakeFormation::Permissions (2020, Jan 16 update)\nwaiting for the doc to be updated\n", "before_files": [{"content": "# Copyright (c) 2012-2019, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n#\n# *** Do not modify - this file is autogenerated ***\n# Resource specification version: 5.3.0\n\n\nfrom . import AWSObject\nfrom . import AWSProperty\n\n\nclass Admins(AWSProperty):\n    props = {\n    }\n\n\nclass DataLakeSettings(AWSObject):\n    resource_type = \"AWS::LakeFormation::DataLakeSettings\"\n\n    props = {\n        'Admins': (Admins, False),\n    }\n\n\nclass DataLakePrincipal(AWSProperty):\n    props = {\n        'DataLakePrincipalIdentifier': (basestring, False),\n    }\n\n\nclass DatabaseResource(AWSProperty):\n    props = {\n        'Name': (basestring, False),\n    }\n\n\nclass TableResource(AWSProperty):\n    props = {\n        'DatabaseName': (basestring, False),\n        'Name': (basestring, False),\n    }\n\n\nclass Resource(AWSProperty):\n    props = {\n        'DatabaseResource': (DatabaseResource, False),\n        'TableResource': (TableResource, False),\n    }\n\n\nclass Permissions(AWSObject):\n    resource_type = \"AWS::LakeFormation::Permissions\"\n\n    props = {\n        'DataLakePrincipal': (DataLakePrincipal, True),\n        'Permissions': ([basestring], False),\n        'PermissionsWithGrantOption': ([basestring], False),\n        'Resource': (Resource, True),\n    }\n", "path": "troposphere/lakeformation.py"}]}