prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  AWS::AutoScaling::AutoScalingGroup MaxInstanceLifetime Validation
  *cfn-lint version: 0.29.2*
  
  *Description of issue.*
  
  When using the parameter `MaxInstanceLifetime` for `AWS::AutoScaling::AutoScalingGroup` we are hit with the following lint error:
  
  ```
  $ cfn-lint templates/proj/rgs/rgs_autoscale_stretch_elb.yml
  E3002 Invalid Property Resources/autoscalegroup/Properties/MaxInstanceLifetime
  templates/proj/rgs/rgs_autoscale_stretch_elb.yml:194:7
  ```
  
  The template which leads to the error:
  
  ```
  [...]
  
    autoscalegroup:
      Type: AWS::AutoScaling::AutoScalingGroup
      Properties:
        AvailabilityZones: !Ref AvailabilityZones
        Cooldown: '300'
        HealthCheckGracePeriod: !Ref GracePeriod
        HealthCheckType: ELB
        MaxSize: !Ref MaxSize
        MinSize: !Ref MinSize
        MaxInstanceLifetime: !Ref MaxInstanceLifetime
        VPCZoneIdentifier: !Ref EC2SubnetIDs
        TargetGroupARNs:
          - !Ref elbtargetgroup
        LaunchConfigurationName: !Ref launchconfiguration
        Tags: [...]
          PropagateAtLaunch: true
        TerminationPolicies:
          - Default
  
  [..]
  ```
  
  It seems the parameter is currently not supported by cfn-lint, would be cool to see support for it.
  
  </issue>
  <code>
  [start of src/cfnlint/version.py]
  1 """
  2 Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3 SPDX-License-Identifier: MIT-0
  4 """
  5 
  6 __version__ = '0.29.3'
  7
  [end of src/cfnlint/version.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/src/cfnlint/version.py b/src/cfnlint/version.py
  --- a/src/cfnlint/version.py
  +++ b/src/cfnlint/version.py
  @@ -3,4 +3,4 @@
   SPDX-License-Identifier: MIT-0
   """
   
  -__version__ = '0.29.3'
  +__version__ = '0.29.4'
  
verification_info: {"golden_diff": "diff --git a/src/cfnlint/version.py b/src/cfnlint/version.py\n--- a/src/cfnlint/version.py\n+++ b/src/cfnlint/version.py\n@@ -3,4 +3,4 @@\n SPDX-License-Identifier: MIT-0\n \"\"\"\n \n-__version__ = '0.29.3'\n+__version__ = '0.29.4'\n", "issue": "AWS::AutoScaling::AutoScalingGroup MaxInstanceLifetime Validation\n*cfn-lint version: 0.29.2*\r\n\r\n*Description of issue.*\r\n\r\nWhen using the parameter `MaxInstanceLifetime` for `AWS::AutoScaling::AutoScalingGroup` we are hit with the following lint error:\r\n\r\n```\r\n$ cfn-lint templates/proj/rgs/rgs_autoscale_stretch_elb.yml\r\nE3002 Invalid Property Resources/autoscalegroup/Properties/MaxInstanceLifetime\r\ntemplates/proj/rgs/rgs_autoscale_stretch_elb.yml:194:7\r\n```\r\n\r\nThe template which leads to the error:\r\n\r\n```\r\n[...]\r\n\r\n  autoscalegroup:\r\n    Type: AWS::AutoScaling::AutoScalingGroup\r\n    Properties:\r\n      AvailabilityZones: !Ref AvailabilityZones\r\n      Cooldown: '300'\r\n      HealthCheckGracePeriod: !Ref GracePeriod\r\n      HealthCheckType: ELB\r\n      MaxSize: !Ref MaxSize\r\n      MinSize: !Ref MinSize\r\n      MaxInstanceLifetime: !Ref MaxInstanceLifetime\r\n      VPCZoneIdentifier: !Ref EC2SubnetIDs\r\n      TargetGroupARNs:\r\n        - !Ref elbtargetgroup\r\n      LaunchConfigurationName: !Ref launchconfiguration\r\n      Tags: [...]\r\n        PropagateAtLaunch: true\r\n      TerminationPolicies:\r\n        - Default\r\n\r\n[..]\r\n```\r\n\r\nIt seems the parameter is currently not supported by cfn-lint, would be cool to see support for it.\n", "before_files": [{"content": "\"\"\"\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\n\n__version__ = '0.29.3'\n", "path": "src/cfnlint/version.py"}]}