You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.
Class: AWS::SimpleWorkflow::ActivityTypeCollection
- Inherits:
-
TypeCollection
- Object
- TypeCollection
- AWS::SimpleWorkflow::ActivityTypeCollection
- Defined in:
- lib/aws/simple_workflow/activity_type_collection.rb
Instance Method Summary collapse
-
#register(name, version, options = {}) ⇒ Object
(also: #create)
Registers a new activity type along with its configuration settings in the current domain.
Methods included from Core::Collection
#each, #each_batch, #enum, #first, #in_groups_of, #page
Instance Method Details
#register(name, version, options = {}) ⇒ Object Also known as: create
Registers a new activity type along with its configuration settings in the current domain.
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/aws/simple_workflow/activity_type_collection.rb', line 73 def register name, version, = {} [:domain] = domain.name [:name] = name [:version] = version duration_opts(, :default_task_heartbeat_timeout, :default_task_schedule_to_close_timeout, :default_task_schedule_to_start_timeout, :default_task_start_to_close_timeout) if priority = [:default_task_priority] [:default_task_priority] = priority.to_s end if task_list = [:default_task_list] [:default_task_list] = { :name => task_list.to_s } end client.register_activity_type() self[name, version] end |