Class: CfnDsl::CreationPolicyDefinition

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

Overview

Handles creation policy objects for Resources

Usage

Resource("aaa") {
  CreationPolicy('ResourceSignal', { 'Count' => 1,  'Timeout' => 'PT10M' })
}

Constant Summary

Constants included from Functions

Functions::FN_SUB_SCANNER

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from JSONSerialisableObject

#as_json, #to_json

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) ⇒ CreationPolicyDefinition

Returns a new instance of CreationPolicyDefinition.



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

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



15
16
17
# File 'lib/cfndsl/creation_policy.rb', line 15

def value
  @value
end