Class: Humidifier::ApplicationAutoScaling::ScalingPolicy

Inherits:
Resource
  • Object
show all
Defined in:
lib/humidifier/magic.rb

Overview

A dynamically-defined class that represents an AWS::ApplicationAutoScaling::ScalingPolicy resource

Constant Summary

Constants inherited from Resource

Resource::COMMON_ATTRIBUTES

Instance Method Summary collapse

Methods inherited from Resource

#initialize, #method_missing, prop?, #respond_to_missing?, #to_cf, #update, #update_attributes, #update_property

Constructor Details

This class inherits a constructor from Humidifier::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Humidifier::Resource

Instance Method Details

#policy_nameObject

returns the PolicyName property



10
11
12
# File 'lib/humidifier/magic.rb', line 10

def policy_name
  properties['policy_name']
end

#policy_name=(value) ⇒ Object

sets the PolicyName property (String)



15
16
17
# File 'lib/humidifier/magic.rb', line 15

def policy_name=(value)
  update_property('policy_name', value)
end

#policy_typeObject

returns the PolicyType property



20
21
22
# File 'lib/humidifier/magic.rb', line 20

def policy_type
  properties['policy_type']
end

#policy_type=(value) ⇒ Object

sets the PolicyType property (String)



25
26
27
# File 'lib/humidifier/magic.rb', line 25

def policy_type=(value)
  update_property('policy_type', value)
end

#resource_idObject

returns the ResourceId property



30
31
32
# File 'lib/humidifier/magic.rb', line 30

def resource_id
  properties['resource_id']
end

#resource_id=(value) ⇒ Object

sets the ResourceId property (String)



35
36
37
# File 'lib/humidifier/magic.rb', line 35

def resource_id=(value)
  update_property('resource_id', value)
end

#scalable_dimensionObject

returns the ScalableDimension property



40
41
42
# File 'lib/humidifier/magic.rb', line 40

def scalable_dimension
  properties['scalable_dimension']
end

#scalable_dimension=(value) ⇒ Object

sets the ScalableDimension property (String)



45
46
47
# File 'lib/humidifier/magic.rb', line 45

def scalable_dimension=(value)
  update_property('scalable_dimension', value)
end

#scaling_target_idObject

returns the ScalingTargetId property



50
51
52
# File 'lib/humidifier/magic.rb', line 50

def scaling_target_id
  properties['scaling_target_id']
end

#scaling_target_id=(value) ⇒ Object

sets the ScalingTargetId property (String)



55
56
57
# File 'lib/humidifier/magic.rb', line 55

def scaling_target_id=(value)
  update_property('scaling_target_id', value)
end

#service_namespaceObject

returns the ServiceNamespace property



60
61
62
# File 'lib/humidifier/magic.rb', line 60

def service_namespace
  properties['service_namespace']
end

#service_namespace=(value) ⇒ Object

sets the ServiceNamespace property (String)



65
66
67
# File 'lib/humidifier/magic.rb', line 65

def service_namespace=(value)
  update_property('service_namespace', value)
end

#step_scaling_policy_configurationObject

returns the StepScalingPolicyConfiguration property



70
71
72
# File 'lib/humidifier/magic.rb', line 70

def step_scaling_policy_configuration
  properties['step_scaling_policy_configuration']
end

#step_scaling_policy_configuration=(value) ⇒ Object

sets the StepScalingPolicyConfiguration property (Structure)



75
76
77
# File 'lib/humidifier/magic.rb', line 75

def step_scaling_policy_configuration=(value)
  update_property('step_scaling_policy_configuration', value)
end

#target_tracking_scaling_policy_configurationObject

returns the TargetTrackingScalingPolicyConfiguration property



80
81
82
# File 'lib/humidifier/magic.rb', line 80

def target_tracking_scaling_policy_configuration
  properties['target_tracking_scaling_policy_configuration']
end

#target_tracking_scaling_policy_configuration=(value) ⇒ Object

sets the TargetTrackingScalingPolicyConfiguration property (Structure)



85
86
87
# File 'lib/humidifier/magic.rb', line 85

def target_tracking_scaling_policy_configuration=(value)
  update_property('target_tracking_scaling_policy_configuration', value)
end