Class: CfnDsl::UpdatePolicyDefinition

Inherits:
JSONable
  • Object
show all
Includes:
JSONSerialisableObject
Defined in:
lib/cfndsl/update_policy.rb

Overview

Handles autoscaling group update policy objects for Resources

Usage

Resource("aaa") {
  UpdatePolicy("AutoScalingRollingUpdate", {
    "MinInstancesInService" => "1",
    "MaxBatchSize" => "1",
    "PauseTime" => "PT12M5S"
  })
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from JSONSerialisableObject

#as_json, #to_json

Methods inherited from JSONable

#as_json, #declare, #incorrect_capitalization?, #method_missing, #ref_children, #titleize, #to_json

Methods included from Functions

#FnAnd, #FnBase64, #FnEquals, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnIf, #FnJoin, #FnNot, #FnOr, #FnSelect, #Ref

Methods included from RefCheck

#build_references, #ref_children

Constructor Details

#initialize(value) ⇒ UpdatePolicyDefinition

Returns a new instance of UpdatePolicyDefinition.



20
21
22
# File 'lib/cfndsl/update_policy.rb', line 20

def initialize(value)
  @value = value
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CfnDsl::JSONable

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



18
19
20
# File 'lib/cfndsl/update_policy.rb', line 18

def value
  @value
end