
from . import AWSObject, AWSProperty
from .validators import integer, positive_integer, boolean

class MetricDimension(AWSProperty):
    props = {
        'Name': (basestring, True),
        'Value': (basestring, True),
    }


class Alarm(AWSObject):
    type = "AWS::CloudWatch::Alarm"

    props = {
        'ActionsEnabled': (boolean, False),
        'AlarmActions': ([basestring], False),
        'AlarmDescription': (basestring, False),
        'AlarmName': (basestring, False),
        'ComparisonOperator': (basestring, True),
        'Dimensions': ([MetricDimension], False),
        'EvaluationPeriods': (positive_integer, True),
        'InsufficientDataActions': ([basestring], False),
        'MetricName': (basestring, True),
        'Namespace': (basestring, True),
        'OKActions': ([basestring], False),
        'Period': (positive_integer, True),
        'Statistic': (basestring, True),
        'Threshold': (integer, True),
        'Unit': (basestring, False),
    }


from . import AWSObject, AWSProperty, Ref
from .validators import integer, positive_integer, boolean

class MetricDimension(AWSProperty):
    props = {
        'Name': (basestring, True),
        'Value': (basestring, True),
    }


class Alarm(AWSObject):
    type = "AWS::CloudWatch::Alarm"

    props = {
        'ActionsEnabled': (boolean, False),
        'AlarmActions': ([basestring, Ref], False),
        'AlarmDescription': (basestring, False),
        'AlarmName': (basestring, False),
        'ComparisonOperator': (basestring, True),
        'Dimensions': ([MetricDimension], False),
        'EvaluationPeriods': (positive_integer, True),
        'InsufficientDataActions': ([basestring, Ref], False),
        'MetricName': (basestring, True),
        'Namespace': (basestring, True),
        'OKActions': ([basestring, Ref], False),
        'Period': (positive_integer, True),
        'Statistic': (basestring, True),
        'Threshold': (integer, True),
        'Unit': (basestring, False),
    }

Allow Ref's in addition to basestrings
Allow Ref's in addition to basestrings

  
- from . import AWSObject, AWSProperty
+ from . import AWSObject, AWSProperty, Ref
  from .validators import integer, positive_integer, boolean
  
  class MetricDimension(AWSProperty):
      props = {
          'Name': (basestring, True),
          'Value': (basestring, True),
      }
  
  
  class Alarm(AWSObject):
      type = "AWS::CloudWatch::Alarm"
  
      props = {
          'ActionsEnabled': (boolean, False),
-         'AlarmActions': ([basestring], False),
+         'AlarmActions': ([basestring, Ref], False),
          'AlarmDescription': (basestring, False),
          'AlarmName': (basestring, False),
          'ComparisonOperator': (basestring, True),
          'Dimensions': ([MetricDimension], False),
          'EvaluationPeriods': (positive_integer, True),
-         'InsufficientDataActions': ([basestring], False),
+         'InsufficientDataActions': ([basestring, Ref], False),
          'MetricName': (basestring, True),
          'Namespace': (basestring, True),
-         'OKActions': ([basestring], False),
+         'OKActions': ([basestring, Ref], False),
          'Period': (positive_integer, True),
          'Statistic': (basestring, True),
          'Threshold': (integer, True),
          'Unit': (basestring, False),
      }
  
Allow Ref's in addition to basestrings
## Code Before:

from . import AWSObject, AWSProperty
from .validators import integer, positive_integer, boolean

class MetricDimension(AWSProperty):
    props = {
        'Name': (basestring, True),
        'Value': (basestring, True),
    }


class Alarm(AWSObject):
    type = "AWS::CloudWatch::Alarm"

    props = {
        'ActionsEnabled': (boolean, False),
        'AlarmActions': ([basestring], False),
        'AlarmDescription': (basestring, False),
        'AlarmName': (basestring, False),
        'ComparisonOperator': (basestring, True),
        'Dimensions': ([MetricDimension], False),
        'EvaluationPeriods': (positive_integer, True),
        'InsufficientDataActions': ([basestring], False),
        'MetricName': (basestring, True),
        'Namespace': (basestring, True),
        'OKActions': ([basestring], False),
        'Period': (positive_integer, True),
        'Statistic': (basestring, True),
        'Threshold': (integer, True),
        'Unit': (basestring, False),
    }

## Instruction:
Allow Ref's in addition to basestrings
## Code After:

from . import AWSObject, AWSProperty, Ref
from .validators import integer, positive_integer, boolean

class MetricDimension(AWSProperty):
    props = {
        'Name': (basestring, True),
        'Value': (basestring, True),
    }


class Alarm(AWSObject):
    type = "AWS::CloudWatch::Alarm"

    props = {
        'ActionsEnabled': (boolean, False),
        'AlarmActions': ([basestring, Ref], False),
        'AlarmDescription': (basestring, False),
        'AlarmName': (basestring, False),
        'ComparisonOperator': (basestring, True),
        'Dimensions': ([MetricDimension], False),
        'EvaluationPeriods': (positive_integer, True),
        'InsufficientDataActions': ([basestring, Ref], False),
        'MetricName': (basestring, True),
        'Namespace': (basestring, True),
        'OKActions': ([basestring, Ref], False),
        'Period': (positive_integer, True),
        'Statistic': (basestring, True),
        'Threshold': (integer, True),
        'Unit': (basestring, False),
    }
