Class: CfnDsl::UpdatePolicyDefinition

Inherits:
JSONable
  • Object
show all
Defined in:
lib/cfndsl/UpdatePolicy.rb

Instance Method Summary collapse

Methods inherited from JSONable

#declare, #method_missing, #ref_children

Methods included from Functions

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

Methods included from RefCheck

#ref_children, #references

Constructor Details

#initialize(value) ⇒ UpdatePolicyDefinition

Handles autoscaling group update policy objects for Resources

Usage

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


17
18
19
# File 'lib/cfndsl/UpdatePolicy.rb', line 17

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 Method Details

#to_json(*a) ⇒ Object



25
26
27
# File 'lib/cfndsl/UpdatePolicy.rb', line 25

def to_json(*a) 
  @value.to_json(*a)
end

#valueObject



21
22
23
# File 'lib/cfndsl/UpdatePolicy.rb', line 21

def value
  return @value
end