Class: AWS::SimpleWorkflow::WorkflowTypeCollection
- Inherits:
-
TypeCollection
- Object
- TypeCollection
- AWS::SimpleWorkflow::WorkflowTypeCollection
- Defined in:
- lib/aws/simple_workflow/workflow_type_collection.rb
Instance Attribute Summary
Attributes inherited from TypeCollection
Attributes included from Core::Model
Instance Method Summary collapse
-
#register(name, version, options = {}) ⇒ Object
(also: #create)
Registers a new workflow type and its configuration settings for in the current domain.
Methods inherited from TypeCollection
#[], #deprecated, #initialize, #named, #reverse_order
Methods included from Core::Collection::Limitable
Methods included from Core::Collection
#each, #each_batch, #enum, #first, #in_groups_of, #page
Methods included from Core::Model
#client, #config_prefix, #initialize, #inspect
Constructor Details
This class inherits a constructor from AWS::SimpleWorkflow::TypeCollection
Instance Method Details
#register(name, version, options = {}) ⇒ Object Also known as: create
Registers a new workflow type and its configuration settings for in the current domain.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/aws/simple_workflow/workflow_type_collection.rb', line 66 def register name, version, = {} [:domain] = domain.name [:name] = name [:version] = version upcase_opts(, :default_child_policy) duration_opts(, :default_execution_start_to_close_timeout, :default_task_start_to_close_timeout) if task_list = [:default_task_list] [:default_task_list] = { :name => task_list.to_s } end client.register_workflow_type() self[name, version] end |