We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN 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

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `troposphere/events.py`
Content:
```
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 FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

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),
     }

{"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"}], "after_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 InputTransformer(AWSProperty):\n    props = {\n        'InputPathsMap': (dict, False),\n        'InputTemplate': (basestring, True),\n    }\n\n\nclass KinesisParameters(AWSProperty):\n    props = {\n        'PartitionKeyPath': (basestring, True),\n    }\n\n\nclass RunCommandTarget(AWSProperty):\n    props = {\n        'Key': (basestring, True),\n        'Values': ([basestring], True),\n    }\n\n\nclass RunCommandParameters(AWSProperty):\n    props = {\n        'RunCommandTargets': ([RunCommandTarget], 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        'InputTransformer': (InputTransformer, False),\n        'KinesisParameters': (KinesisParameters, False),\n        'RoleArn': (basestring, False),\n        'RunCommandParameters': (RunCommandParameters, 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"}]}