
from . import AWSObject, AWSProperty


class Target(AWSProperty):
    props = {
        'Arn': (basestring, True),
        'Id': (basestring, True),
        'Input': (basestring, False),
        'InputPath': (basestring, False)

    }


class Rule(AWSObject):
    resource_type = "AWS::Events::Rule"

    props = {

        'Description': (basestring, False),
        'EventPattern': (dict, False),
        'Name': (basestring, False),
        'RoleArn': (basestring, False),
        'ScheduleExpression': (basestring, False),
        'State': (basestring, False),
        'Targets': ([Target], False)

    }


from . import AWSObject, AWSProperty


class Target(AWSProperty):
    props = {
        'Arn': (basestring, True),
        'Id': (basestring, True),
        'Input': (basestring, False),
        'InputPath': (basestring, False),
        'RoleArn': (basestring, False),
    }


class Rule(AWSObject):
    resource_type = "AWS::Events::Rule"

    props = {

        'Description': (basestring, False),
        'EventPattern': (dict, False),
        'Name': (basestring, False),
        'ScheduleExpression': (basestring, False),
        'State': (basestring, False),
        'Targets': ([Target], False),
    }

Remove RoleArn from Events::Rule and add to Target property
Remove RoleArn from Events::Rule and add to Target property

  
  from . import AWSObject, AWSProperty
  
  
  class Target(AWSProperty):
      props = {
          'Arn': (basestring, True),
          'Id': (basestring, True),
          'Input': (basestring, False),
-         'InputPath': (basestring, False)
+         'InputPath': (basestring, False),
- 
+         'RoleArn': (basestring, False),
      }
  
  
  class Rule(AWSObject):
      resource_type = "AWS::Events::Rule"
  
      props = {
  
          'Description': (basestring, False),
          'EventPattern': (dict, False),
          'Name': (basestring, False),
-         'RoleArn': (basestring, False),
          'ScheduleExpression': (basestring, False),
          'State': (basestring, False),
-         'Targets': ([Target], False)
+         'Targets': ([Target], False),
- 
      }
  
Remove RoleArn from Events::Rule and add to Target property
## Code Before:

from . import AWSObject, AWSProperty


class Target(AWSProperty):
    props = {
        'Arn': (basestring, True),
        'Id': (basestring, True),
        'Input': (basestring, False),
        'InputPath': (basestring, False)

    }


class Rule(AWSObject):
    resource_type = "AWS::Events::Rule"

    props = {

        'Description': (basestring, False),
        'EventPattern': (dict, False),
        'Name': (basestring, False),
        'RoleArn': (basestring, False),
        'ScheduleExpression': (basestring, False),
        'State': (basestring, False),
        'Targets': ([Target], False)

    }

## Instruction:
Remove RoleArn from Events::Rule and add to Target property
## Code After:

from . import AWSObject, AWSProperty


class Target(AWSProperty):
    props = {
        'Arn': (basestring, True),
        'Id': (basestring, True),
        'Input': (basestring, False),
        'InputPath': (basestring, False),
        'RoleArn': (basestring, False),
    }


class Rule(AWSObject):
    resource_type = "AWS::Events::Rule"

    props = {

        'Description': (basestring, False),
        'EventPattern': (dict, False),
        'Name': (basestring, False),
        'ScheduleExpression': (basestring, False),
        'State': (basestring, False),
        'Targets': ([Target], False),
    }
