prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  implement AWS::Synthetics changes from May 14, 2020 update
  
  
  </issue>
  <code>
  [start of troposphere/synthetics.py]
  1 # Copyright (c) 2020, Mark Peek <mark@peek.org>
  2 # All rights reserved.
  3 #
  4 # See LICENSE file for full license.
  5 
  6 from . import AWSObject, AWSProperty, Tags
  7 from .validators import (integer, boolean, canary_runtime_version)
  8 
  9 
  10 class VPCConfig(AWSProperty):
  11     props = {
  12         'SecurityGroupIds': ([basestring], True),
  13         'SubnetIds': ([basestring], True),
  14         'VpcId': (basestring, False),
  15     }
  16 
  17 
  18 class Schedule(AWSProperty):
  19     props = {
  20         'DurationInSeconds': (basestring, True),
  21         'Expression': (basestring, True),
  22     }
  23 
  24 
  25 class RunConfig(AWSProperty):
  26     props = {
  27         'TimeoutInSeconds': (integer, True),
  28     }
  29 
  30 
  31 class Code(AWSProperty):
  32     props = {
  33         'Handler': (basestring, False),
  34         'S3Bucket': (basestring, False),
  35         'S3Key': (basestring, False),
  36         'S3ObjectVersion': (basestring, False),
  37         'Script': (basestring, False),
  38     }
  39 
  40 
  41 class Canary(AWSObject):
  42     resource_type = "AWS::Synthetics::Canary"
  43 
  44     props = {
  45         'ArtifactS3Location': (basestring, True),
  46         'Code': (Code, True),
  47         'ExecutionRoleArn': (basestring, True),
  48         'FailureRetentionPeriod': (integer, False),
  49         'Name': (basestring, True),
  50         'RunConfig': (RunConfig, False),
  51         'RuntimeVersion': (canary_runtime_version, True),
  52         'Schedule': (Schedule, True),
  53         'StartCanaryAfterCreation': (boolean, True),
  54         'SuccessRetentionPeriod': (integer, False),
  55         'Tags': (Tags, False),
  56         'VPCConfig': (VPCConfig, False),
  57     }
  58
  [end of troposphere/synthetics.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/synthetics.py b/troposphere/synthetics.py
  --- a/troposphere/synthetics.py
  +++ b/troposphere/synthetics.py
  @@ -47,7 +47,7 @@
           'ExecutionRoleArn': (basestring, True),
           'FailureRetentionPeriod': (integer, False),
           'Name': (basestring, True),
  -        'RunConfig': (RunConfig, False),
  +        'RunConfig': (RunConfig, True),
           'RuntimeVersion': (canary_runtime_version, True),
           'Schedule': (Schedule, True),
           'StartCanaryAfterCreation': (boolean, True),
  
verification_info: {"golden_diff": "diff --git a/troposphere/synthetics.py b/troposphere/synthetics.py\n--- a/troposphere/synthetics.py\n+++ b/troposphere/synthetics.py\n@@ -47,7 +47,7 @@\n         'ExecutionRoleArn': (basestring, True),\n         'FailureRetentionPeriod': (integer, False),\n         'Name': (basestring, True),\n-        'RunConfig': (RunConfig, False),\n+        'RunConfig': (RunConfig, True),\n         'RuntimeVersion': (canary_runtime_version, True),\n         'Schedule': (Schedule, True),\n         'StartCanaryAfterCreation': (boolean, True),\n", "issue": "implement AWS::Synthetics changes from May 14, 2020 update\n\n", "before_files": [{"content": "# Copyright (c) 2020, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty, Tags\nfrom .validators import (integer, boolean, canary_runtime_version)\n\n\nclass VPCConfig(AWSProperty):\n    props = {\n        'SecurityGroupIds': ([basestring], True),\n        'SubnetIds': ([basestring], True),\n        'VpcId': (basestring, False),\n    }\n\n\nclass Schedule(AWSProperty):\n    props = {\n        'DurationInSeconds': (basestring, True),\n        'Expression': (basestring, True),\n    }\n\n\nclass RunConfig(AWSProperty):\n    props = {\n        'TimeoutInSeconds': (integer, True),\n    }\n\n\nclass Code(AWSProperty):\n    props = {\n        'Handler': (basestring, False),\n        'S3Bucket': (basestring, False),\n        'S3Key': (basestring, False),\n        'S3ObjectVersion': (basestring, False),\n        'Script': (basestring, False),\n    }\n\n\nclass Canary(AWSObject):\n    resource_type = \"AWS::Synthetics::Canary\"\n\n    props = {\n        'ArtifactS3Location': (basestring, True),\n        'Code': (Code, True),\n        'ExecutionRoleArn': (basestring, True),\n        'FailureRetentionPeriod': (integer, False),\n        'Name': (basestring, True),\n        'RunConfig': (RunConfig, False),\n        'RuntimeVersion': (canary_runtime_version, True),\n        'Schedule': (Schedule, True),\n        'StartCanaryAfterCreation': (boolean, True),\n        'SuccessRetentionPeriod': (integer, False),\n        'Tags': (Tags, False),\n        'VPCConfig': (VPCConfig, False),\n    }\n", "path": "troposphere/synthetics.py"}]}