Class: CfnDsl::UpdatePolicyDefinition
- 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"
})
}
Constant Summary
Constants included from Functions
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ UpdatePolicyDefinition
constructor
A new instance of UpdatePolicyDefinition.
Methods included from JSONSerialisableObject
Methods inherited from JSONable
#as_json, #declare, #external_parameters, external_parameters, #ref_children, #to_json
Methods included from Functions
#FnAnd, #FnBase64, #FnCidr, #FnEquals, #FnFindInMap, #FnGetAZs, #FnGetAtt, #FnIf, #FnImportValue, #FnJoin, #FnNot, #FnOr, #FnSelect, #FnSplit, #FnSub, #Ref
Methods included from RefCheck
#build_references, #ref_children
Constructor Details
#initialize(value) ⇒ UpdatePolicyDefinition
Returns a new instance of UpdatePolicyDefinition.
22 23 24 |
# File 'lib/cfndsl/update_policy.rb', line 22 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
20 21 22 |
# File 'lib/cfndsl/update_policy.rb', line 20 def value @value end |