old_contents: # Copyright (c) 2013, Mark Peek <mark@peek.org>
  # All rights reserved.
  #
  # See LICENSE file for full license.
  
  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),
      }
  
new_contents: # Copyright (c) 2013, Mark Peek <mark@peek.org>
  # All rights reserved.
  #
  # See LICENSE file for full license.
  
  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),
      }
  
subject: Allow Ref's in addition to basestrings