prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add properties to AWS::Events::Rule Target property
  [AWS::Events::Rule](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html)
  In the Target property type, use the following properties for input transformation of events and setting Amazon ECS task and Kinesis stream targets.
  
  - EcsParameters
  - InputTransformer
  - KinesisParameters
  - RunCommandParameters
  
  </issue>
  <code>
  [start of troposphere/events.py]
  1 # Copyright (c) 2013, Mark Peek <mark@peek.org>
  2 # All rights reserved.
  3 #
  4 # See LICENSE file for full license.
  5 
  6 from . import AWSObject, AWSProperty
  7 
  8 
  9 class EcsParameters(AWSProperty):
  10     props = {
  11         "TaskCount": (int, False),
  12         "TaskDefinitionArn": (basestring, True),
  13     }
  14 
  15 
  16 class Target(AWSProperty):
  17     props = {
  18         'Arn': (basestring, True),
  19         "EcsParameters": (EcsParameters, False),
  20         'Id': (basestring, True),
  21         'Input': (basestring, False),
  22         'InputPath': (basestring, False),
  23         'RoleArn': (basestring, False),
  24     }
  25 
  26 
  27 class Rule(AWSObject):
  28     resource_type = "AWS::Events::Rule"
  29 
  30     props = {
  31 
  32         'Description': (basestring, False),
  33         'EventPattern': (dict, False),
  34         'Name': (basestring, False),
  35         'ScheduleExpression': (basestring, False),
  36         'State': (basestring, False),
  37         'Targets': ([Target], False),
  38     }
  39
  [end of troposphere/events.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/events.py b/troposphere/events.py
  --- a/troposphere/events.py
  +++ b/troposphere/events.py
  @@ -13,6 +13,32 @@
       }
   
   
  +class InputTransformer(AWSProperty):
  +    props = {
  +        'InputPathsMap': (dict, False),
  +        'InputTemplate': (basestring, True),
  +    }
  +
  +
  +class KinesisParameters(AWSProperty):
  +    props = {
  +        'PartitionKeyPath': (basestring, True),
  +    }
  +
  +
  +class RunCommandTarget(AWSProperty):
  +    props = {
  +        'Key': (basestring, True),
  +        'Values': ([basestring], True),
  +    }
  +
  +
  +class RunCommandParameters(AWSProperty):
  +    props = {
  +        'RunCommandTargets': ([RunCommandTarget], True),
  +    }
  +
  +
   class Target(AWSProperty):
       props = {
           'Arn': (basestring, True),
  @@ -20,7 +46,10 @@
           'Id': (basestring, True),
           'Input': (basestring, False),
           'InputPath': (basestring, False),
  +        'InputTransformer': (InputTransformer, False),
  +        'KinesisParameters': (KinesisParameters, False),
           'RoleArn': (basestring, False),
  +        'RunCommandParameters': (RunCommandParameters, False),
       }
  
verification_info: {"golden_diff": "diff --git a/troposphere/events.py b/troposphere/events.py\n--- a/troposphere/events.py\n+++ b/troposphere/events.py\n@@ -13,6 +13,32 @@\n     }\n \n \n+class InputTransformer(AWSProperty):\n+    props = {\n+        'InputPathsMap': (dict, False),\n+        'InputTemplate': (basestring, True),\n+    }\n+\n+\n+class KinesisParameters(AWSProperty):\n+    props = {\n+        'PartitionKeyPath': (basestring, True),\n+    }\n+\n+\n+class RunCommandTarget(AWSProperty):\n+    props = {\n+        'Key': (basestring, True),\n+        'Values': ([basestring], True),\n+    }\n+\n+\n+class RunCommandParameters(AWSProperty):\n+    props = {\n+        'RunCommandTargets': ([RunCommandTarget], True),\n+    }\n+\n+\n class Target(AWSProperty):\n     props = {\n         'Arn': (basestring, True),\n@@ -20,7 +46,10 @@\n         'Id': (basestring, True),\n         'Input': (basestring, False),\n         'InputPath': (basestring, False),\n+        'InputTransformer': (InputTransformer, False),\n+        'KinesisParameters': (KinesisParameters, False),\n         'RoleArn': (basestring, False),\n+        'RunCommandParameters': (RunCommandParameters, False),\n     }\n", "issue": "Add properties to AWS::Events::Rule Target property\n[AWS::Events::Rule](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html)\r\nIn the Target property type, use the following properties for input transformation of events and setting Amazon ECS task and Kinesis stream targets.\r\n\r\n- EcsParameters\r\n- InputTransformer\r\n- KinesisParameters\r\n- RunCommandParameters\n", "before_files": [{"content": "# Copyright (c) 2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty\n\n\nclass EcsParameters(AWSProperty):\n    props = {\n        \"TaskCount\": (int, False),\n        \"TaskDefinitionArn\": (basestring, True),\n    }\n\n\nclass Target(AWSProperty):\n    props = {\n        'Arn': (basestring, True),\n        \"EcsParameters\": (EcsParameters, False),\n        'Id': (basestring, True),\n        'Input': (basestring, False),\n        'InputPath': (basestring, False),\n        'RoleArn': (basestring, False),\n    }\n\n\nclass Rule(AWSObject):\n    resource_type = \"AWS::Events::Rule\"\n\n    props = {\n\n        'Description': (basestring, False),\n        'EventPattern': (dict, False),\n        'Name': (basestring, False),\n        'ScheduleExpression': (basestring, False),\n        'State': (basestring, False),\n        'Targets': ([Target], False),\n    }\n", "path": "troposphere/events.py"}]}