aws_sdk 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (390) hide show
  1. data/lib/aws-sdk.rb +14 -0
  2. data/lib/aws.rb +49 -0
  3. data/lib/aws/api_config/AutoScaling-2011-01-01.yml +791 -0
  4. data/lib/aws/api_config/CloudFormation-2010-05-15.yml +303 -0
  5. data/lib/aws/api_config/DynamoDB-2011-12-05.yml +540 -0
  6. data/lib/aws/api_config/EC2-2011-12-15.yml +3638 -0
  7. data/lib/aws/api_config/EC2-2012-04-01.yml +3739 -0
  8. data/lib/aws/api_config/ELB-2011-08-15.yml +512 -0
  9. data/lib/aws/api_config/IAM-2010-05-08.yml +1221 -0
  10. data/lib/aws/api_config/SNS-2010-03-31.yml +248 -0
  11. data/lib/aws/api_config/SQS-2011-10-01.yml +314 -0
  12. data/lib/aws/api_config/STS-2011-06-15.yml +54 -0
  13. data/lib/aws/api_config/SimpleDB-2009-04-15.yml +305 -0
  14. data/lib/aws/api_config/SimpleEmailService-2010-12-01.yml +231 -0
  15. data/lib/aws/api_config/SimpleWorkflow-2012-01-25.yml +721 -0
  16. data/lib/aws/auto_scaling.rb +162 -0
  17. data/lib/aws/auto_scaling/activity.rb +102 -0
  18. data/lib/aws/auto_scaling/activity_collection.rb +82 -0
  19. data/lib/aws/auto_scaling/client.rb +765 -0
  20. data/lib/aws/auto_scaling/config.rb +18 -0
  21. data/lib/aws/auto_scaling/errors.rb +22 -0
  22. data/lib/aws/auto_scaling/group.rb +420 -0
  23. data/lib/aws/auto_scaling/group_collection.rb +96 -0
  24. data/lib/aws/auto_scaling/group_options.rb +146 -0
  25. data/lib/aws/auto_scaling/instance.rb +192 -0
  26. data/lib/aws/auto_scaling/instance_collection.rb +63 -0
  27. data/lib/aws/auto_scaling/launch_configuration.rb +150 -0
  28. data/lib/aws/auto_scaling/launch_configuration_collection.rb +144 -0
  29. data/lib/aws/auto_scaling/notification_configuration.rb +89 -0
  30. data/lib/aws/auto_scaling/notification_configuration_collection.rb +184 -0
  31. data/lib/aws/auto_scaling/request.rb +23 -0
  32. data/lib/aws/auto_scaling/scaling_policy.rb +125 -0
  33. data/lib/aws/auto_scaling/scaling_policy_collection.rb +72 -0
  34. data/lib/aws/auto_scaling/scaling_policy_options.rb +61 -0
  35. data/lib/aws/auto_scaling/scheduled_action.rb +145 -0
  36. data/lib/aws/auto_scaling/scheduled_action_collection.rb +195 -0
  37. data/lib/aws/auto_scaling/tag.rb +59 -0
  38. data/lib/aws/auto_scaling/tag_collection.rb +112 -0
  39. data/lib/aws/cloud_formation.rb +270 -0
  40. data/lib/aws/cloud_formation/client.rb +339 -0
  41. data/lib/aws/cloud_formation/config.rb +18 -0
  42. data/lib/aws/cloud_formation/errors.rb +22 -0
  43. data/lib/aws/cloud_formation/request.rb +29 -0
  44. data/lib/aws/cloud_formation/stack.rb +256 -0
  45. data/lib/aws/cloud_formation/stack_collection.rb +206 -0
  46. data/lib/aws/cloud_formation/stack_event.rb +75 -0
  47. data/lib/aws/cloud_formation/stack_event_collection.rb +47 -0
  48. data/lib/aws/cloud_formation/stack_options.rb +72 -0
  49. data/lib/aws/cloud_formation/stack_output.rb +53 -0
  50. data/lib/aws/cloud_formation/stack_resource.rb +117 -0
  51. data/lib/aws/cloud_formation/stack_resource_collection.rb +84 -0
  52. data/lib/aws/cloud_formation/stack_resource_summary_collection.rb +72 -0
  53. data/lib/aws/cloud_formation/stack_summary.rb +71 -0
  54. data/lib/aws/cloud_formation/stack_summary_collection.rb +127 -0
  55. data/lib/aws/core.rb +474 -0
  56. data/lib/aws/core/async_handle.rb +90 -0
  57. data/lib/aws/core/autoloader.rb +64 -0
  58. data/lib/aws/core/cacheable.rb +78 -0
  59. data/lib/aws/core/client.rb +541 -0
  60. data/lib/aws/core/client/query_json.rb +110 -0
  61. data/lib/aws/core/client/query_xml.rb +122 -0
  62. data/lib/aws/core/collection.rb +234 -0
  63. data/lib/aws/core/collection/limitable.rb +99 -0
  64. data/lib/aws/core/collection/simple.rb +90 -0
  65. data/lib/aws/core/configuration.rb +445 -0
  66. data/lib/aws/core/data.rb +242 -0
  67. data/lib/aws/core/default_signer.rb +67 -0
  68. data/lib/aws/core/http/curb_handler.rb +136 -0
  69. data/lib/aws/core/http/handler.rb +77 -0
  70. data/lib/aws/core/http/httparty_handler.rb +114 -0
  71. data/lib/aws/core/http/net_http_handler.rb +85 -0
  72. data/lib/aws/core/http/request.rb +250 -0
  73. data/lib/aws/core/http/response.rb +74 -0
  74. data/lib/aws/core/indifferent_hash.rb +88 -0
  75. data/lib/aws/core/inflection.rb +47 -0
  76. data/lib/aws/core/lazy_error_classes.rb +90 -0
  77. data/lib/aws/core/log_formatter.rb +454 -0
  78. data/lib/aws/core/meta_utils.rb +45 -0
  79. data/lib/aws/core/model.rb +57 -0
  80. data/lib/aws/core/naming.rb +30 -0
  81. data/lib/aws/core/option_grammar.rb +700 -0
  82. data/lib/aws/core/page_result.rb +73 -0
  83. data/lib/aws/core/policy.rb +916 -0
  84. data/lib/aws/core/resource.rb +408 -0
  85. data/lib/aws/core/resource_cache.rb +40 -0
  86. data/lib/aws/core/response.rb +202 -0
  87. data/lib/aws/core/response_cache.rb +50 -0
  88. data/lib/aws/core/service_interface.rb +61 -0
  89. data/lib/aws/core/session_signer.rb +90 -0
  90. data/lib/aws/core/signature/version_2.rb +42 -0
  91. data/lib/aws/core/signature/version_3.rb +73 -0
  92. data/lib/aws/core/signature/version_3_http.rb +72 -0
  93. data/lib/aws/core/signature/version_4.rb +138 -0
  94. data/lib/aws/core/uri_escape.rb +42 -0
  95. data/lib/aws/core/xml/frame.rb +242 -0
  96. data/lib/aws/core/xml/frame_stack.rb +85 -0
  97. data/lib/aws/core/xml/grammar.rb +299 -0
  98. data/lib/aws/core/xml/parser.rb +70 -0
  99. data/lib/aws/core/xml/root_frame.rb +65 -0
  100. data/lib/aws/core/xml/sax_handlers/libxml.rb +47 -0
  101. data/lib/aws/core/xml/sax_handlers/nokogiri.rb +55 -0
  102. data/lib/aws/core/xml/sax_handlers/ox.rb +41 -0
  103. data/lib/aws/core/xml/sax_handlers/rexml.rb +43 -0
  104. data/lib/aws/core/xml/stub.rb +123 -0
  105. data/lib/aws/dynamo_db.rb +213 -0
  106. data/lib/aws/dynamo_db/attribute_collection.rb +460 -0
  107. data/lib/aws/dynamo_db/batch_get.rb +206 -0
  108. data/lib/aws/dynamo_db/batch_write.rb +251 -0
  109. data/lib/aws/dynamo_db/client.rb +888 -0
  110. data/lib/aws/dynamo_db/config.rb +20 -0
  111. data/lib/aws/dynamo_db/errors.rb +20 -0
  112. data/lib/aws/dynamo_db/expectations.rb +40 -0
  113. data/lib/aws/dynamo_db/item.rb +130 -0
  114. data/lib/aws/dynamo_db/item_collection.rb +852 -0
  115. data/lib/aws/dynamo_db/item_data.rb +31 -0
  116. data/lib/aws/dynamo_db/keys.rb +41 -0
  117. data/lib/aws/dynamo_db/primary_key_element.rb +47 -0
  118. data/lib/aws/dynamo_db/request.rb +28 -0
  119. data/lib/aws/dynamo_db/resource.rb +33 -0
  120. data/lib/aws/dynamo_db/table.rb +489 -0
  121. data/lib/aws/dynamo_db/table_collection.rb +165 -0
  122. data/lib/aws/dynamo_db/types.rb +86 -0
  123. data/lib/aws/ec2.rb +431 -0
  124. data/lib/aws/ec2/attachment.rb +140 -0
  125. data/lib/aws/ec2/attachment_collection.rb +54 -0
  126. data/lib/aws/ec2/availability_zone.rb +87 -0
  127. data/lib/aws/ec2/availability_zone_collection.rb +43 -0
  128. data/lib/aws/ec2/block_device_mappings.rb +53 -0
  129. data/lib/aws/ec2/client.rb +4121 -0
  130. data/lib/aws/ec2/collection.rb +36 -0
  131. data/lib/aws/ec2/config.rb +18 -0
  132. data/lib/aws/ec2/config_transform.rb +63 -0
  133. data/lib/aws/ec2/customer_gateway.rb +90 -0
  134. data/lib/aws/ec2/customer_gateway_collection.rb +73 -0
  135. data/lib/aws/ec2/dhcp_options.rb +106 -0
  136. data/lib/aws/ec2/dhcp_options_collection.rb +87 -0
  137. data/lib/aws/ec2/elastic_ip.rb +157 -0
  138. data/lib/aws/ec2/elastic_ip_collection.rb +97 -0
  139. data/lib/aws/ec2/errors.rb +32 -0
  140. data/lib/aws/ec2/filtered_collection.rb +90 -0
  141. data/lib/aws/ec2/has_permissions.rb +44 -0
  142. data/lib/aws/ec2/image.rb +254 -0
  143. data/lib/aws/ec2/image_collection.rb +228 -0
  144. data/lib/aws/ec2/instance.rb +669 -0
  145. data/lib/aws/ec2/instance_collection.rb +346 -0
  146. data/lib/aws/ec2/internet_gateway.rb +122 -0
  147. data/lib/aws/ec2/internet_gateway/attachment.rb +78 -0
  148. data/lib/aws/ec2/internet_gateway_collection.rb +54 -0
  149. data/lib/aws/ec2/key_pair.rb +82 -0
  150. data/lib/aws/ec2/key_pair_collection.rb +99 -0
  151. data/lib/aws/ec2/network_acl.rb +256 -0
  152. data/lib/aws/ec2/network_acl/association.rb +56 -0
  153. data/lib/aws/ec2/network_acl/entry.rb +147 -0
  154. data/lib/aws/ec2/network_acl_collection.rb +64 -0
  155. data/lib/aws/ec2/network_interface.rb +228 -0
  156. data/lib/aws/ec2/network_interface/attachment.rb +100 -0
  157. data/lib/aws/ec2/network_interface_collection.rb +103 -0
  158. data/lib/aws/ec2/permission_collection.rb +174 -0
  159. data/lib/aws/ec2/region.rb +97 -0
  160. data/lib/aws/ec2/region_collection.rb +51 -0
  161. data/lib/aws/ec2/request.rb +22 -0
  162. data/lib/aws/ec2/reserved_instances.rb +53 -0
  163. data/lib/aws/ec2/reserved_instances_collection.rb +40 -0
  164. data/lib/aws/ec2/reserved_instances_offering.rb +58 -0
  165. data/lib/aws/ec2/reserved_instances_offering_collection.rb +39 -0
  166. data/lib/aws/ec2/resource.rb +161 -0
  167. data/lib/aws/ec2/resource_tag_collection.rb +211 -0
  168. data/lib/aws/ec2/route_table.rb +205 -0
  169. data/lib/aws/ec2/route_table/association.rb +119 -0
  170. data/lib/aws/ec2/route_table/route.rb +113 -0
  171. data/lib/aws/ec2/route_table_collection.rb +72 -0
  172. data/lib/aws/ec2/security_group.rb +458 -0
  173. data/lib/aws/ec2/security_group/egress_ip_permission_collection.rb +63 -0
  174. data/lib/aws/ec2/security_group/ingress_ip_permission_collection.rb +61 -0
  175. data/lib/aws/ec2/security_group/ip_permission.rb +128 -0
  176. data/lib/aws/ec2/security_group_collection.rb +135 -0
  177. data/lib/aws/ec2/snapshot.rb +143 -0
  178. data/lib/aws/ec2/snapshot_collection.rb +131 -0
  179. data/lib/aws/ec2/subnet.rb +161 -0
  180. data/lib/aws/ec2/subnet_collection.rb +115 -0
  181. data/lib/aws/ec2/tag.rb +81 -0
  182. data/lib/aws/ec2/tag_collection.rb +107 -0
  183. data/lib/aws/ec2/tagged_collection.rb +53 -0
  184. data/lib/aws/ec2/tagged_item.rb +85 -0
  185. data/lib/aws/ec2/volume.rb +170 -0
  186. data/lib/aws/ec2/volume_collection.rb +97 -0
  187. data/lib/aws/ec2/vpc.rb +166 -0
  188. data/lib/aws/ec2/vpc_collection.rb +70 -0
  189. data/lib/aws/ec2/vpn_connection.rb +99 -0
  190. data/lib/aws/ec2/vpn_connection/telemetry.rb +49 -0
  191. data/lib/aws/ec2/vpn_connection_collection.rb +96 -0
  192. data/lib/aws/ec2/vpn_gateway.rb +123 -0
  193. data/lib/aws/ec2/vpn_gateway/attachment.rb +45 -0
  194. data/lib/aws/ec2/vpn_gateway_collection.rb +77 -0
  195. data/lib/aws/elb.rb +65 -0
  196. data/lib/aws/elb/availability_zone_collection.rb +138 -0
  197. data/lib/aws/elb/backend_server_policy_collection.rb +140 -0
  198. data/lib/aws/elb/client.rb +539 -0
  199. data/lib/aws/elb/config.rb +18 -0
  200. data/lib/aws/elb/errors.rb +26 -0
  201. data/lib/aws/elb/instance_collection.rb +174 -0
  202. data/lib/aws/elb/listener.rb +189 -0
  203. data/lib/aws/elb/listener_collection.rb +119 -0
  204. data/lib/aws/elb/listener_opts.rb +45 -0
  205. data/lib/aws/elb/load_balancer.rb +253 -0
  206. data/lib/aws/elb/load_balancer_collection.rb +113 -0
  207. data/lib/aws/elb/load_balancer_policy.rb +93 -0
  208. data/lib/aws/elb/load_balancer_policy_collection.rb +208 -0
  209. data/lib/aws/elb/request.rb +23 -0
  210. data/lib/aws/errors.rb +122 -0
  211. data/lib/aws/iam.rb +418 -0
  212. data/lib/aws/iam/access_key.rb +180 -0
  213. data/lib/aws/iam/access_key_collection.rb +128 -0
  214. data/lib/aws/iam/account_alias_collection.rb +79 -0
  215. data/lib/aws/iam/client.rb +1609 -0
  216. data/lib/aws/iam/collection.rb +83 -0
  217. data/lib/aws/iam/config.rb +18 -0
  218. data/lib/aws/iam/errors.rb +22 -0
  219. data/lib/aws/iam/group.rb +111 -0
  220. data/lib/aws/iam/group_collection.rb +132 -0
  221. data/lib/aws/iam/group_policy_collection.rb +47 -0
  222. data/lib/aws/iam/group_user_collection.rb +84 -0
  223. data/lib/aws/iam/login_profile.rb +99 -0
  224. data/lib/aws/iam/mfa_device.rb +52 -0
  225. data/lib/aws/iam/mfa_device_collection.rb +127 -0
  226. data/lib/aws/iam/policy.rb +46 -0
  227. data/lib/aws/iam/policy_collection.rb +188 -0
  228. data/lib/aws/iam/request.rb +29 -0
  229. data/lib/aws/iam/resource.rb +71 -0
  230. data/lib/aws/iam/server_certificate.rb +141 -0
  231. data/lib/aws/iam/server_certificate_collection.rb +138 -0
  232. data/lib/aws/iam/signing_certificate.rb +169 -0
  233. data/lib/aws/iam/signing_certificate_collection.rb +131 -0
  234. data/lib/aws/iam/user.rb +205 -0
  235. data/lib/aws/iam/user_collection.rb +133 -0
  236. data/lib/aws/iam/user_group_collection.rb +98 -0
  237. data/lib/aws/iam/user_policy.rb +90 -0
  238. data/lib/aws/iam/user_policy_collection.rb +45 -0
  239. data/lib/aws/iam/virtual_mfa_device.rb +139 -0
  240. data/lib/aws/iam/virtual_mfa_device_collection.rb +73 -0
  241. data/lib/aws/rails.rb +195 -0
  242. data/lib/aws/record.rb +116 -0
  243. data/lib/aws/record/abstract_base.rb +645 -0
  244. data/lib/aws/record/attributes.rb +384 -0
  245. data/lib/aws/record/conversion.rb +38 -0
  246. data/lib/aws/record/dirty_tracking.rb +285 -0
  247. data/lib/aws/record/errors.rb +143 -0
  248. data/lib/aws/record/exceptions.rb +48 -0
  249. data/lib/aws/record/hash_model.rb +161 -0
  250. data/lib/aws/record/hash_model/attributes.rb +182 -0
  251. data/lib/aws/record/hash_model/finder_methods.rb +172 -0
  252. data/lib/aws/record/hash_model/scope.rb +108 -0
  253. data/lib/aws/record/model.rb +427 -0
  254. data/lib/aws/record/model/attributes.rb +379 -0
  255. data/lib/aws/record/model/finder_methods.rb +232 -0
  256. data/lib/aws/record/model/scope.rb +213 -0
  257. data/lib/aws/record/naming.rb +31 -0
  258. data/lib/aws/record/scope.rb +199 -0
  259. data/lib/aws/record/validations.rb +694 -0
  260. data/lib/aws/record/validator.rb +237 -0
  261. data/lib/aws/record/validators/acceptance.rb +51 -0
  262. data/lib/aws/record/validators/block.rb +38 -0
  263. data/lib/aws/record/validators/confirmation.rb +43 -0
  264. data/lib/aws/record/validators/count.rb +108 -0
  265. data/lib/aws/record/validators/exclusion.rb +43 -0
  266. data/lib/aws/record/validators/format.rb +57 -0
  267. data/lib/aws/record/validators/inclusion.rb +56 -0
  268. data/lib/aws/record/validators/length.rb +107 -0
  269. data/lib/aws/record/validators/method.rb +33 -0
  270. data/lib/aws/record/validators/numericality.rb +138 -0
  271. data/lib/aws/record/validators/presence.rb +45 -0
  272. data/lib/aws/s3.rb +135 -0
  273. data/lib/aws/s3/access_control_list.rb +250 -0
  274. data/lib/aws/s3/acl_object.rb +264 -0
  275. data/lib/aws/s3/bucket.rb +393 -0
  276. data/lib/aws/s3/bucket_collection.rb +143 -0
  277. data/lib/aws/s3/bucket_lifecycle_configuration.rb +360 -0
  278. data/lib/aws/s3/bucket_version_collection.rb +77 -0
  279. data/lib/aws/s3/client.rb +1184 -0
  280. data/lib/aws/s3/client/xml.rb +177 -0
  281. data/lib/aws/s3/config.rb +26 -0
  282. data/lib/aws/s3/data_options.rb +100 -0
  283. data/lib/aws/s3/errors.rb +81 -0
  284. data/lib/aws/s3/multipart_upload.rb +317 -0
  285. data/lib/aws/s3/multipart_upload_collection.rb +68 -0
  286. data/lib/aws/s3/object_collection.rb +337 -0
  287. data/lib/aws/s3/object_metadata.rb +96 -0
  288. data/lib/aws/s3/object_upload_collection.rb +77 -0
  289. data/lib/aws/s3/object_version.rb +143 -0
  290. data/lib/aws/s3/object_version_collection.rb +89 -0
  291. data/lib/aws/s3/paginated_collection.rb +75 -0
  292. data/lib/aws/s3/policy.rb +74 -0
  293. data/lib/aws/s3/prefix_and_delimiter_collection.rb +47 -0
  294. data/lib/aws/s3/prefixed_collection.rb +81 -0
  295. data/lib/aws/s3/presigned_post.rb +553 -0
  296. data/lib/aws/s3/request.rb +201 -0
  297. data/lib/aws/s3/s3_object.rb +1037 -0
  298. data/lib/aws/s3/tree.rb +118 -0
  299. data/lib/aws/s3/tree/branch_node.rb +68 -0
  300. data/lib/aws/s3/tree/child_collection.rb +104 -0
  301. data/lib/aws/s3/tree/leaf_node.rb +94 -0
  302. data/lib/aws/s3/tree/node.rb +22 -0
  303. data/lib/aws/s3/tree/parent.rb +87 -0
  304. data/lib/aws/s3/uploaded_part.rb +80 -0
  305. data/lib/aws/s3/uploaded_part_collection.rb +84 -0
  306. data/lib/aws/simple_db.rb +217 -0
  307. data/lib/aws/simple_db/attribute.rb +154 -0
  308. data/lib/aws/simple_db/attribute_collection.rb +231 -0
  309. data/lib/aws/simple_db/client.rb +349 -0
  310. data/lib/aws/simple_db/config.rb +20 -0
  311. data/lib/aws/simple_db/consistent_read_option.rb +42 -0
  312. data/lib/aws/simple_db/delete_attributes.rb +62 -0
  313. data/lib/aws/simple_db/domain.rb +121 -0
  314. data/lib/aws/simple_db/domain_collection.rb +113 -0
  315. data/lib/aws/simple_db/domain_metadata.rb +110 -0
  316. data/lib/aws/simple_db/errors.rb +55 -0
  317. data/lib/aws/simple_db/expect_condition_option.rb +45 -0
  318. data/lib/aws/simple_db/item.rb +93 -0
  319. data/lib/aws/simple_db/item_collection.rb +649 -0
  320. data/lib/aws/simple_db/item_data.rb +73 -0
  321. data/lib/aws/simple_db/put_attributes.rb +60 -0
  322. data/lib/aws/simple_db/request.rb +23 -0
  323. data/lib/aws/simple_email_service.rb +426 -0
  324. data/lib/aws/simple_email_service/client.rb +286 -0
  325. data/lib/aws/simple_email_service/config.rb +19 -0
  326. data/lib/aws/simple_email_service/email_address_collection.rb +69 -0
  327. data/lib/aws/simple_email_service/errors.rb +22 -0
  328. data/lib/aws/simple_email_service/identity.rb +91 -0
  329. data/lib/aws/simple_email_service/identity_collection.rb +81 -0
  330. data/lib/aws/simple_email_service/quotas.rb +64 -0
  331. data/lib/aws/simple_email_service/request.rb +29 -0
  332. data/lib/aws/simple_workflow.rb +226 -0
  333. data/lib/aws/simple_workflow/activity_task.rb +173 -0
  334. data/lib/aws/simple_workflow/activity_task_collection.rb +123 -0
  335. data/lib/aws/simple_workflow/activity_type.rb +131 -0
  336. data/lib/aws/simple_workflow/activity_type_collection.rb +93 -0
  337. data/lib/aws/simple_workflow/client.rb +1434 -0
  338. data/lib/aws/simple_workflow/config.rb +18 -0
  339. data/lib/aws/simple_workflow/count.rb +49 -0
  340. data/lib/aws/simple_workflow/decision_task.rb +601 -0
  341. data/lib/aws/simple_workflow/decision_task_collection.rb +225 -0
  342. data/lib/aws/simple_workflow/domain.rb +122 -0
  343. data/lib/aws/simple_workflow/domain_collection.rb +169 -0
  344. data/lib/aws/simple_workflow/errors.rb +20 -0
  345. data/lib/aws/simple_workflow/history_event.rb +276 -0
  346. data/lib/aws/simple_workflow/history_event_collection.rb +76 -0
  347. data/lib/aws/simple_workflow/option_formatters.rb +82 -0
  348. data/lib/aws/simple_workflow/request.rb +36 -0
  349. data/lib/aws/simple_workflow/resource.rb +94 -0
  350. data/lib/aws/simple_workflow/type.rb +89 -0
  351. data/lib/aws/simple_workflow/type_collection.rb +140 -0
  352. data/lib/aws/simple_workflow/workflow_execution.rb +386 -0
  353. data/lib/aws/simple_workflow/workflow_execution_collection.rb +617 -0
  354. data/lib/aws/simple_workflow/workflow_type.rb +177 -0
  355. data/lib/aws/simple_workflow/workflow_type_collection.rb +91 -0
  356. data/lib/aws/sns.rb +74 -0
  357. data/lib/aws/sns/client.rb +371 -0
  358. data/lib/aws/sns/config.rb +18 -0
  359. data/lib/aws/sns/errors.rb +22 -0
  360. data/lib/aws/sns/has_delivery_policy.rb +68 -0
  361. data/lib/aws/sns/policy.rb +47 -0
  362. data/lib/aws/sns/request.rb +23 -0
  363. data/lib/aws/sns/subscription.rb +144 -0
  364. data/lib/aws/sns/subscription_collection.rb +80 -0
  365. data/lib/aws/sns/topic.rb +403 -0
  366. data/lib/aws/sns/topic_collection.rb +67 -0
  367. data/lib/aws/sns/topic_subscription_collection.rb +55 -0
  368. data/lib/aws/sqs.rb +79 -0
  369. data/lib/aws/sqs/client.rb +360 -0
  370. data/lib/aws/sqs/config.rb +18 -0
  371. data/lib/aws/sqs/errors.rb +101 -0
  372. data/lib/aws/sqs/policy.rb +48 -0
  373. data/lib/aws/sqs/queue.rb +725 -0
  374. data/lib/aws/sqs/queue_collection.rb +170 -0
  375. data/lib/aws/sqs/received_message.rb +181 -0
  376. data/lib/aws/sqs/received_sns_message.rb +112 -0
  377. data/lib/aws/sqs/request.rb +43 -0
  378. data/lib/aws/sts.rb +152 -0
  379. data/lib/aws/sts/client.rb +105 -0
  380. data/lib/aws/sts/config.rb +18 -0
  381. data/lib/aws/sts/errors.rb +22 -0
  382. data/lib/aws/sts/federated_session.rb +56 -0
  383. data/lib/aws/sts/policy.rb +30 -0
  384. data/lib/aws/sts/request.rb +29 -0
  385. data/lib/aws/sts/session.rb +48 -0
  386. data/lib/net/http/connection_pool.rb +210 -0
  387. data/lib/net/http/connection_pool/connection.rb +132 -0
  388. data/lib/net/http/connection_pool/session.rb +93 -0
  389. data/lib/user.rb +49 -0
  390. metadata +433 -0
@@ -0,0 +1,123 @@
1
+ # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4
+ # may not use this file except in compliance with the License. A copy of
5
+ # the License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0/
8
+ #
9
+ # or in the "license" file accompanying this file. This file is
10
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ # ANY KIND, either express or implied. See the License for the specific
12
+ # language governing permissions and limitations under the License.
13
+
14
+ require 'timeout'
15
+
16
+ module AWS
17
+ class SimpleWorkflow
18
+
19
+ class ActivityTaskCollection
20
+
21
+ include Core::Model
22
+ include OptionFormatters
23
+
24
+ # @private
25
+ def initialize domain, options = {}
26
+ @domain = domain
27
+ super
28
+ end
29
+
30
+ # @return [Domain]
31
+ attr_reader :domain
32
+
33
+ # Returns the number of tasks in the specified +task_list+.
34
+ #
35
+ # count = activity_tasks.count('task-list-name')
36
+ # count.truncated? #=> false
37
+ # count.to_i #=> 7
38
+ #
39
+ # @note This operation is eventually consistent. The results are best
40
+ # effort and may not exactly reflect recent updates and changes.
41
+ #
42
+ # @param [String] task_list The name of the task list.
43
+ #
44
+ # @return [Count] Returns a possibly truncated count of
45
+ # pending activity tasks for the given +task_list+.
46
+ #
47
+ def count task_list
48
+ options = {}
49
+ options[:domain] = domain.name
50
+ options[:task_list] = { :name => task_list }
51
+ response = client.count_pending_activity_tasks(options)
52
+ Count.new(response.data['count'], response.data['truncated'])
53
+ end
54
+
55
+ # @param [String] task_list The task list to check for pending
56
+ # activity tasks in.
57
+ #
58
+ # @param [Hash] options
59
+ #
60
+ # @option options [String] :identity (nil) Identity of the worker
61
+ # making the request, which is recorded in the ActivityTaskStarted
62
+ # event in the workflow history. This enables diagnostic tracing
63
+ # when problems arise. The :identity defaults to the hostname and
64
+ # pid (e.g. "hostname:pid").
65
+ #
66
+ # @yieldparam [ActivityTask] activity_task Yields if a task is
67
+ # available within 60 seconds.
68
+ #
69
+ # @return [ActivityTask,nil] Returns an activity task when one is
70
+ # available, +nil+ otherwise. If you call this function with
71
+ # a block, +nil+ is always returned.
72
+ #
73
+ def poll_for_single_task task_list, options = {}, &block
74
+
75
+ client_opts = {}
76
+ client_opts[:domain] = domain.name
77
+ client_opts[:task_list] = { :name => task_list }
78
+ client_opts[:identity] = identity_opt(options)
79
+
80
+ response = client.poll_for_activity_task(client_opts)
81
+
82
+ if response.data['taskToken']
83
+ activity_task = ActivityTask.new(domain, response.data)
84
+ if block_given?
85
+ begin
86
+ yield(activity_task)
87
+ activity_task.complete! unless activity_task.responded?
88
+ rescue ActivityTask::CancelRequestedError
89
+ activity_task.cancel! unless activity_task.responded?
90
+ rescue StandardError => e
91
+ unless activity_task.responded?
92
+ reason = "UNTRAPPED ERROR: #{e.message}"
93
+ details = e.backtrace.join("\n")
94
+ activity_task.fail!(:reason => reason, :details => details)
95
+ end
96
+ raise e
97
+ end
98
+ nil
99
+ else
100
+ activity_task
101
+ end
102
+ else
103
+ nil
104
+ end
105
+
106
+ end
107
+
108
+ def poll task_list, options = {}, &block
109
+ loop do
110
+ begin
111
+ poll_for_single_task(task_list, options) do |activity_task|
112
+ yield(activity_task)
113
+ end
114
+ rescue Timeout::Error
115
+ retry
116
+ end
117
+ end
118
+ nil
119
+ end
120
+
121
+ end
122
+ end
123
+ end
@@ -0,0 +1,131 @@
1
+ # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4
+ # may not use this file except in compliance with the License. A copy of
5
+ # the License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0/
8
+ #
9
+ # or in the "license" file accompanying this file. This file is
10
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ # ANY KIND, either express or implied. See the License for the specific
12
+ # language governing permissions and limitations under the License.
13
+
14
+ module AWS
15
+ class SimpleWorkflow
16
+
17
+ # == Registering an ActivityType
18
+ #
19
+ # To register an activity type you should use the #activity_types method
20
+ # on the domain:
21
+ #
22
+ # domain.activity_types.register('name', 'version', { ... })
23
+ #
24
+ # See {ActivityTypeCollection#register} for a complete list of options.
25
+ #
26
+ # == Deprecating an activity type
27
+ #
28
+ # ActivityType inherits from the generic {Type} base class. Defined in
29
+ # {Type} are a few useful methods including:
30
+ #
31
+ # * {Type#deprecate}
32
+ # * {Type#deprecated?}
33
+ #
34
+ # You can use these to deprecate an activity type:
35
+ #
36
+ # domain.activity_types['name','version'].deprecate
37
+ #
38
+ # @attr_reader [Time] creation_date When the workflow type was registered.
39
+ #
40
+ # @attr_reader [Time,nil] deprecation_date When the workflow type
41
+ # was deprecated, or nil if the workflow type has not been deprecated.
42
+ #
43
+ # @attr_reader [String,nil] description The description of this workflow
44
+ # type, or nil if was not set when it was registered.
45
+ #
46
+ # @attr_reader [Symbol] status The status of this workflow type. The
47
+ # status will either be +:registered+ or +:deprecated+.
48
+ #
49
+ # @attr_reader [Integer,:none,nil] default_task_heartbeat_timeout
50
+ # The default maximum time specified when registering the activity
51
+ # type, before which a worker processing a task must report
52
+ # progress. If the timeout is exceeded, the activity task is
53
+ # automatically timed out. If the worker subsequently attempts
54
+ # to record a heartbeat or return a result, it will be ignored.
55
+ #
56
+ # The return value may be an integer (number of seconds), the
57
+ # symbol +:none+ (implying no timeout) or +nil+ (not specified).
58
+ #
59
+ # @attr_reader [String,nil] default_task_list
60
+ # The default task list specified for this activity type at
61
+ # registration. This default task list is used if a task list is
62
+ # not provided when a task is scheduled.
63
+ #
64
+ # @attr_reader [Integer,:none,nil] default_task_schedule_to_close_timeout
65
+ # The default maximum duration specified when registering the
66
+ # activity type, for tasks of this activity type. You can override
67
+ # this default when scheduling a task.
68
+ #
69
+ # The return value may be an integer (number of seconds), the
70
+ # symbol +:none+ (implying no timeout) or +nil+ (not specified).
71
+ #
72
+ # @attr_reader [Integer,:none,nil] default_task_schedule_to_start_timeout
73
+ # The optional default maximum duration specified when registering
74
+ # the activity type, that a task of an activity type can wait
75
+ # before being assigned to a worker.
76
+ #
77
+ # The return value may be an integer (number of seconds), the
78
+ # symbol +:none+ (implying no timeout) or +nil+ (not specified).
79
+ #
80
+ # @attr_reader [Integer,:none,nil] default_task_start_to_close_timeout
81
+ # The default maximum duration for activity tasks of this type.
82
+ #
83
+ # The return value may be an integer (number of seconds), the
84
+ # symbol +:none+ (implying no timeout) or +nil+ (not specified).
85
+ #
86
+ class ActivityType < Type
87
+
88
+ type_attribute :creation_date, :timestamp => true
89
+
90
+ type_attribute :deprecation_date, :timestamp => true, :static => false
91
+
92
+ type_attribute :description
93
+
94
+ type_attribute :status, :to_sym => true, :static => false
95
+
96
+ config_attribute :default_task_heartbeat_timeout, :duration => true
97
+
98
+ config_attribute :default_task_list do
99
+ translates_output {|v| v['name'] }
100
+ end
101
+
102
+ config_attribute :default_task_schedule_to_close_timeout, :duration => true
103
+
104
+ config_attribute :default_task_schedule_to_start_timeout, :duration => true
105
+
106
+ config_attribute :default_task_start_to_close_timeout, :duration => true
107
+
108
+ # list activity type only provides type attributes
109
+ provider(:list_activity_types) do |provider|
110
+ provider.provides *type_attributes.keys
111
+ provider.find do |resp|
112
+ desc = resp.data['typeInfos'].find do |info|
113
+ info[self.class.type_key] == { 'name' => name, 'version' => version }
114
+ end
115
+ end
116
+ end
117
+
118
+ # describe activity type provides type and config attributes
119
+ provider(:describe_activity_type) do |provider|
120
+ provider.provides *type_attributes.keys
121
+ provider.provides *config_attributes.keys
122
+ provider.find do |resp|
123
+ type = { 'name' => name, 'version' => version }
124
+ resp.data['typeInfo'][self.class.type_key] == type ?
125
+ resp.data['typeInfo'].merge(resp.data['configuration']) : nil
126
+ end
127
+ end
128
+
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,93 @@
1
+ # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4
+ # may not use this file except in compliance with the License. A copy of
5
+ # the License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0/
8
+ #
9
+ # or in the "license" file accompanying this file. This file is
10
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ # ANY KIND, either express or implied. See the License for the specific
12
+ # language governing permissions and limitations under the License.
13
+
14
+ module AWS
15
+ class SimpleWorkflow
16
+ class ActivityTypeCollection < TypeCollection
17
+
18
+ # Registers a new activity type along with its configuration settings
19
+ # in the current domain.
20
+ #
21
+ # @param [String] name The name of the activity type.
22
+ #
23
+ # @param [String] version The version of the activity type.
24
+ # The activity type consists of the name and version, the
25
+ # combination of which must be unique within the domain.
26
+ #
27
+ # @param [Hash] options
28
+ #
29
+ # @option options [Integer,:none] :default_task_heartbeat_timeout (nil)
30
+ # The default maximum time before which a worker processing a task
31
+ # of this type must report progress. If the timeout is exceeded,
32
+ # the activity task is automatically timed out. If the worker
33
+ # subsequently attempts to record a heartbeat or returns a
34
+ # result, it will be ignored. This default can be overridden when
35
+ # scheduling an activity task.
36
+ #
37
+ # The value should be a number of seconds (integer) or the symbol
38
+ # +:none+ (implying no timeout).
39
+ #
40
+ # @option options [String] :default_task_list (nil) The default task
41
+ # list to use for scheduling tasks of this activity type.
42
+ # This default task list is used if a task list is not provided
43
+ # when a task is scheduled.
44
+ #
45
+ # @option options [Integer,:none] :default_task_schedule_to_close_timeout (nil)
46
+ # The value should be a number of seconds (integer) or the symbol
47
+ # +:none+ (implying no timeout).
48
+ #
49
+ # @option options [Integer,:none] :default_task_schedule_to_start_timeout (nil)
50
+ # The default maximum duration that a task of this activity type
51
+ # can wait before being assigned to a worker. This default can be
52
+ # overridden when scheduling an activity task.
53
+ #
54
+ # The value should be a number of seconds (integer) or the symbol
55
+ # +:none+ (implying no timeout).
56
+ #
57
+ # @option options [Integer,:none] :default_task_start_to_close_timeout (nil)
58
+ # The default maximum duration that a worker can take to process
59
+ # tasks of this activity type (in the ISO 8601 format). This default
60
+ # can be overridden when scheduling an activity task.
61
+ #
62
+ # The value should be a number of seconds (integer) or the symbol
63
+ # +:none+ (implying no timeout).
64
+ #
65
+ # @option options [String] :description (nil) A textual description
66
+ # of the activity type.
67
+ #
68
+ def register name, version, options = {}
69
+
70
+ options[:domain] = domain.name
71
+ options[:name] = name
72
+ options[:version] = version
73
+
74
+ duration_opts(options,
75
+ :default_task_heartbeat_timeout,
76
+ :default_task_schedule_to_close_timeout,
77
+ :default_task_schedule_to_start_timeout,
78
+ :default_task_start_to_close_timeout)
79
+
80
+ if task_list = options[:default_task_list]
81
+ options[:default_task_list] = { :name => task_list.to_s }
82
+ end
83
+
84
+ client.register_activity_type(options)
85
+
86
+ self[name, version]
87
+
88
+ end
89
+ alias_method :create, :register
90
+
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,1434 @@
1
+ # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4
+ # may not use this file except in compliance with the License. A copy of
5
+ # the License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0/
8
+ #
9
+ # or in the "license" file accompanying this file. This file is
10
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ # ANY KIND, either express or implied. See the License for the specific
12
+ # language governing permissions and limitations under the License.
13
+
14
+ module AWS
15
+ class SimpleWorkflow
16
+
17
+ # Client class for Amazon Simple Workflow Service (SWF).
18
+ class Client < Core::Client
19
+
20
+ API_VERSION = '2012-01-25'
21
+
22
+ extend Core::Client::QueryJSON
23
+
24
+ # @private
25
+ TARGET_PREFIX = "SimpleWorkflowService."
26
+
27
+ # @private
28
+ CACHEABLE_REQUESTS = Set[
29
+ :count_pending_activity_tasks,
30
+ :count_pending_decision_tasks,
31
+ :count_closed_workflow_executions,
32
+ :count_open_workflow_executions,
33
+ :describe_activity_type,
34
+ :describe_domain,
35
+ :describe_workflow_execution,
36
+ :describe_workflow_type,
37
+ :get_workflow_execution_history,
38
+ #:poll_for_decision_task, # see below for expanded logic
39
+ :list_activity_types,
40
+ :list_domains,
41
+ :list_closed_workfow_executions,
42
+ :list_open_workfow_executions,
43
+ :list_workfow_types,
44
+ ]
45
+
46
+ ## client methods ##
47
+
48
+ # Calls the CountClosedWorkflowExecutions API operation.
49
+ # @method count_closed_workflow_executions(options = {})
50
+ #
51
+ # === Options:
52
+ #
53
+ # * +:domain+ - *required* - (String)
54
+ # * +:start_time_filter+ - (Hash)
55
+ # * +:oldest_date+ - *required* - (Integer<unix timestamp>)
56
+ # * +:latest_date+ - (Integer<unix timestamp>)
57
+ # * +:close_time_filter+ - (Hash)
58
+ # * +:oldest_date+ - *required* - (Integer<unix timestamp>)
59
+ # * +:latest_date+ - (Integer<unix timestamp>)
60
+ # * +:execution_filter+ - (Hash)
61
+ # * +:workflow_id+ - *required* - (String)
62
+ # * +:type_filter+ - (Hash)
63
+ # * +:name+ - *required* - (String)
64
+ # * +:version+ - (String)
65
+ # * +:tag_filter+ - (Hash)
66
+ # * +:tag+ - *required* - (String)
67
+ # * +:close_status_filter+ - (Hash)
68
+ # * +:status+ - *required* - (String)
69
+ #
70
+ # === Response Structure:
71
+ #
72
+ # * +count+ - (Integer)
73
+ # * +truncated+ - (Boolean)
74
+ #
75
+ # @return [Core::Response]
76
+ #
77
+ define_client_method :count_closed_workflow_executions, 'CountClosedWorkflowExecutions'
78
+
79
+ # Calls the CountOpenWorkflowExecutions API operation.
80
+ # @method count_open_workflow_executions(options = {})
81
+ #
82
+ # === Options:
83
+ #
84
+ # * +:domain+ - *required* - (String)
85
+ # * +:start_time_filter+ - *required* - (Hash)
86
+ # * +:oldest_date+ - *required* - (Integer<unix timestamp>)
87
+ # * +:latest_date+ - (Integer<unix timestamp>)
88
+ # * +:type_filter+ - (Hash)
89
+ # * +:name+ - *required* - (String)
90
+ # * +:version+ - (String)
91
+ # * +:tag_filter+ - (Hash)
92
+ # * +:tag+ - *required* - (String)
93
+ # * +:execution_filter+ - (Hash)
94
+ # * +:workflow_id+ - *required* - (String)
95
+ #
96
+ # === Response Structure:
97
+ #
98
+ # * +count+ - (Integer)
99
+ # * +truncated+ - (Boolean)
100
+ #
101
+ # @return [Core::Response]
102
+ #
103
+ define_client_method :count_open_workflow_executions, 'CountOpenWorkflowExecutions'
104
+
105
+ # Calls the CountPendingActivityTasks API operation.
106
+ # @method count_pending_activity_tasks(options = {})
107
+ #
108
+ # === Options:
109
+ #
110
+ # * +:domain+ - *required* - (String)
111
+ # * +:task_list+ - *required* - (Hash)
112
+ # * +:name+ - *required* - (String)
113
+ #
114
+ # === Response Structure:
115
+ #
116
+ # * +count+ - (Integer)
117
+ # * +truncated+ - (Boolean)
118
+ #
119
+ # @return [Core::Response]
120
+ #
121
+ define_client_method :count_pending_activity_tasks, 'CountPendingActivityTasks'
122
+
123
+ # Calls the CountPendingDecisionTasks API operation.
124
+ # @method count_pending_decision_tasks(options = {})
125
+ #
126
+ # === Options:
127
+ #
128
+ # * +:domain+ - *required* - (String)
129
+ # * +:task_list+ - *required* - (Hash)
130
+ # * +:name+ - *required* - (String)
131
+ #
132
+ # === Response Structure:
133
+ #
134
+ # * +count+ - (Integer)
135
+ # * +truncated+ - (Boolean)
136
+ #
137
+ # @return [Core::Response]
138
+ #
139
+ define_client_method :count_pending_decision_tasks, 'CountPendingDecisionTasks'
140
+
141
+ # Calls the DeprecateActivityType API operation.
142
+ # @method deprecate_activity_type(options = {})
143
+ #
144
+ # === Options:
145
+ #
146
+ # * +:domain+ - *required* - (String)
147
+ # * +:activity_type+ - *required* - (Hash)
148
+ # * +:name+ - *required* - (String)
149
+ # * +:version+ - *required* - (String)
150
+ #
151
+ # === Response Structure:
152
+ #
153
+ # This method returns no response data.
154
+ #
155
+ # @return [Core::Response]
156
+ #
157
+ define_client_method :deprecate_activity_type, 'DeprecateActivityType'
158
+
159
+ # Calls the DeprecateDomain API operation.
160
+ # @method deprecate_domain(options = {})
161
+ #
162
+ # === Options:
163
+ #
164
+ # * +:name+ - *required* - (String)
165
+ #
166
+ # === Response Structure:
167
+ #
168
+ # This method returns no response data.
169
+ #
170
+ # @return [Core::Response]
171
+ #
172
+ define_client_method :deprecate_domain, 'DeprecateDomain'
173
+
174
+ # Calls the DeprecateWorkflowType API operation.
175
+ # @method deprecate_workflow_type(options = {})
176
+ #
177
+ # === Options:
178
+ #
179
+ # * +:domain+ - *required* - (String)
180
+ # * +:workflow_type+ - *required* - (Hash)
181
+ # * +:name+ - *required* - (String)
182
+ # * +:version+ - *required* - (String)
183
+ #
184
+ # === Response Structure:
185
+ #
186
+ # This method returns no response data.
187
+ #
188
+ # @return [Core::Response]
189
+ #
190
+ define_client_method :deprecate_workflow_type, 'DeprecateWorkflowType'
191
+
192
+ # Calls the DescribeActivityType API operation.
193
+ # @method describe_activity_type(options = {})
194
+ #
195
+ # === Options:
196
+ #
197
+ # * +:domain+ - *required* - (String)
198
+ # * +:activity_type+ - *required* - (Hash)
199
+ # * +:name+ - *required* - (String)
200
+ # * +:version+ - *required* - (String)
201
+ #
202
+ # === Response Structure:
203
+ #
204
+ # * +typeInfo+ - (Hash)
205
+ # * +activityType+ - (Hash)
206
+ # * +name+ - (String)
207
+ # * +version+ - (String)
208
+ # * +status+ - (String)
209
+ # * +description+ - (String)
210
+ # * +creationDate+ - (Time)
211
+ # * +deprecationDate+ - (Time)
212
+ # * +configuration+ - (Hash)
213
+ # * +defaultTaskStartToCloseTimeout+ - (String)
214
+ # * +defaultTaskHeartbeatTimeout+ - (String)
215
+ # * +defaultTaskList+ - (Hash)
216
+ # * +name+ - (String)
217
+ # * +defaultTaskScheduleToStartTimeout+ - (String)
218
+ # * +defaultTaskScheduleToCloseTimeout+ - (String)
219
+ #
220
+ # @return [Core::Response]
221
+ #
222
+ define_client_method :describe_activity_type, 'DescribeActivityType'
223
+
224
+ # Calls the DescribeDomain API operation.
225
+ # @method describe_domain(options = {})
226
+ #
227
+ # === Options:
228
+ #
229
+ # * +:name+ - *required* - (String)
230
+ #
231
+ # === Response Structure:
232
+ #
233
+ # * +domainInfo+ - (Hash)
234
+ # * +name+ - (String)
235
+ # * +status+ - (String)
236
+ # * +description+ - (String)
237
+ # * +configuration+ - (Hash)
238
+ # * +workflowExecutionRetentionPeriodInDays+ - (String)
239
+ #
240
+ # @return [Core::Response]
241
+ #
242
+ define_client_method :describe_domain, 'DescribeDomain'
243
+
244
+ # Calls the DescribeWorkflowExecution API operation.
245
+ # @method describe_workflow_execution(options = {})
246
+ #
247
+ # === Options:
248
+ #
249
+ # * +:domain+ - *required* - (String)
250
+ # * +:execution+ - *required* - (Hash)
251
+ # * +:workflow_id+ - *required* - (String)
252
+ # * +:run_id+ - *required* - (String)
253
+ #
254
+ # === Response Structure:
255
+ #
256
+ # * +executionInfo+ - (Hash)
257
+ # * +execution+ - (Hash)
258
+ # * +workflowId+ - (String)
259
+ # * +runId+ - (String)
260
+ # * +workflowType+ - (Hash)
261
+ # * +name+ - (String)
262
+ # * +version+ - (String)
263
+ # * +startTimestamp+ - (Time)
264
+ # * +closeTimestamp+ - (Time)
265
+ # * +executionStatus+ - (String)
266
+ # * +closeStatus+ - (String)
267
+ # * +parent+ - (Hash)
268
+ # * +workflowId+ - (String)
269
+ # * +runId+ - (String)
270
+ # * +tagList+ - (Array<String>)
271
+ # * +cancelRequested+ - (Boolean)
272
+ # * +executionConfiguration+ - (Hash)
273
+ # * +taskStartToCloseTimeout+ - (String)
274
+ # * +executionStartToCloseTimeout+ - (String)
275
+ # * +taskList+ - (Hash)
276
+ # * +name+ - (String)
277
+ # * +childPolicy+ - (String)
278
+ # * +openCounts+ - (Hash)
279
+ # * +openActivityTasks+ - (Integer)
280
+ # * +openDecisionTasks+ - (Integer)
281
+ # * +openTimers+ - (Integer)
282
+ # * +openChildWorkflowExecutions+ - (Integer)
283
+ # * +latestActivityTaskTimestamp+ - (Time)
284
+ # * +latestExecutionContext+ - (String)
285
+ #
286
+ # @return [Core::Response]
287
+ #
288
+ define_client_method :describe_workflow_execution, 'DescribeWorkflowExecution'
289
+
290
+ # Calls the DescribeWorkflowType API operation.
291
+ # @method describe_workflow_type(options = {})
292
+ #
293
+ # === Options:
294
+ #
295
+ # * +:domain+ - *required* - (String)
296
+ # * +:workflow_type+ - *required* - (Hash)
297
+ # * +:name+ - *required* - (String)
298
+ # * +:version+ - *required* - (String)
299
+ #
300
+ # === Response Structure:
301
+ #
302
+ # * +typeInfo+ - (Hash)
303
+ # * +workflowType+ - (Hash)
304
+ # * +name+ - (String)
305
+ # * +version+ - (String)
306
+ # * +status+ - (String)
307
+ # * +description+ - (String)
308
+ # * +creationDate+ - (Time)
309
+ # * +deprecationDate+ - (Time)
310
+ # * +configuration+ - (Hash)
311
+ # * +defaultTaskStartToCloseTimeout+ - (String)
312
+ # * +defaultExecutionStartToCloseTimeout+ - (String)
313
+ # * +defaultTaskList+ - (Hash)
314
+ # * +name+ - (String)
315
+ # * +defaultChildPolicy+ - (String)
316
+ #
317
+ # @return [Core::Response]
318
+ #
319
+ define_client_method :describe_workflow_type, 'DescribeWorkflowType'
320
+
321
+ # Calls the GetWorkflowExecutionHistory API operation.
322
+ # @method get_workflow_execution_history(options = {})
323
+ #
324
+ # === Options:
325
+ #
326
+ # * +:domain+ - *required* - (String)
327
+ # * +:execution+ - *required* - (Hash)
328
+ # * +:workflow_id+ - *required* - (String)
329
+ # * +:run_id+ - *required* - (String)
330
+ # * +:next_page_token+ - (String)
331
+ # * +:maximum_page_size+ - (Integer)
332
+ # * +:reverse_order+ - (Boolean)
333
+ #
334
+ # === Response Structure:
335
+ #
336
+ # * +events+ - (Array<Hash>)
337
+ # * +eventTimestamp+ - (Time)
338
+ # * +eventType+ - (String)
339
+ # * +eventId+ - (Integer)
340
+ # * +workflowExecutionStartedEventAttributes+ - (Hash)
341
+ # * +input+ - (String)
342
+ # * +executionStartToCloseTimeout+ - (String)
343
+ # * +taskStartToCloseTimeout+ - (String)
344
+ # * +childPolicy+ - (String)
345
+ # * +taskList+ - (Hash)
346
+ # * +name+ - (String)
347
+ # * +workflowType+ - (Hash)
348
+ # * +name+ - (String)
349
+ # * +version+ - (String)
350
+ # * +tagList+ - (Array<String>)
351
+ # * +continuedExecutionRunId+ - (String)
352
+ # * +parentWorkflowExecution+ - (Hash)
353
+ # * +workflowId+ - (String)
354
+ # * +runId+ - (String)
355
+ # * +parentInitiatedEventId+ - (Integer)
356
+ # * +workflowExecutionCompletedEventAttributes+ - (Hash)
357
+ # * +result+ - (String)
358
+ # * +decisionTaskCompletedEventId+ - (Integer)
359
+ # * +completeWorkflowExecutionFailedEventAttributes+ - (Hash)
360
+ # * +cause+ - (String)
361
+ # * +decisionTaskCompletedEventId+ - (Integer)
362
+ # * +workflowExecutionFailedEventAttributes+ - (Hash)
363
+ # * +reason+ - (String)
364
+ # * +details+ - (String)
365
+ # * +decisionTaskCompletedEventId+ - (Integer)
366
+ # * +failWorkflowExecutionFailedEventAttributes+ - (Hash)
367
+ # * +cause+ - (String)
368
+ # * +decisionTaskCompletedEventId+ - (Integer)
369
+ # * +workflowExecutionTimedOutEventAttributes+ - (Hash)
370
+ # * +timeoutType+ - (String)
371
+ # * +childPolicy+ - (String)
372
+ # * +workflowExecutionCanceledEventAttributes+ - (Hash)
373
+ # * +details+ - (String)
374
+ # * +decisionTaskCompletedEventId+ - (Integer)
375
+ # * +cancelWorkflowExecutionFailedEventAttributes+ - (Hash)
376
+ # * +cause+ - (String)
377
+ # * +decisionTaskCompletedEventId+ - (Integer)
378
+ # * +workflowExecutionContinuedAsNewEventAttributes+ - (Hash)
379
+ # * +input+ - (String)
380
+ # * +decisionTaskCompletedEventId+ - (Integer)
381
+ # * +newExecutionRunId+ - (String)
382
+ # * +executionStartToCloseTimeout+ - (String)
383
+ # * +taskList+ - (Hash)
384
+ # * +name+ - (String)
385
+ # * +taskStartToCloseTimeout+ - (String)
386
+ # * +childPolicy+ - (String)
387
+ # * +tagList+ - (Array<String>)
388
+ # * +workflowType+ - (Hash)
389
+ # * +name+ - (String)
390
+ # * +version+ - (String)
391
+ # * +continueAsNewWorkflowExecutionFailedEventAttributes+ - (Hash)
392
+ # * +cause+ - (String)
393
+ # * +decisionTaskCompletedEventId+ - (Integer)
394
+ # * +workflowExecutionTerminatedEventAttributes+ - (Hash)
395
+ # * +reason+ - (String)
396
+ # * +details+ - (String)
397
+ # * +childPolicy+ - (String)
398
+ # * +cause+ - (String)
399
+ # * +workflowExecutionCancelRequestedEventAttributes+ - (Hash)
400
+ # * +externalWorkflowExecution+ - (Hash)
401
+ # * +workflowId+ - (String)
402
+ # * +runId+ - (String)
403
+ # * +externalInitiatedEventId+ - (Integer)
404
+ # * +cause+ - (String)
405
+ # * +decisionTaskScheduledEventAttributes+ - (Hash)
406
+ # * +taskList+ - (Hash)
407
+ # * +name+ - (String)
408
+ # * +startToCloseTimeout+ - (String)
409
+ # * +decisionTaskStartedEventAttributes+ - (Hash)
410
+ # * +identity+ - (String)
411
+ # * +scheduledEventId+ - (Integer)
412
+ # * +decisionTaskCompletedEventAttributes+ - (Hash)
413
+ # * +executionContext+ - (String)
414
+ # * +scheduledEventId+ - (Integer)
415
+ # * +startedEventId+ - (Integer)
416
+ # * +decisionTaskTimedOutEventAttributes+ - (Hash)
417
+ # * +timeoutType+ - (String)
418
+ # * +scheduledEventId+ - (Integer)
419
+ # * +startedEventId+ - (Integer)
420
+ # * +activityTaskScheduledEventAttributes+ - (Hash)
421
+ # * +activityType+ - (Hash)
422
+ # * +name+ - (String)
423
+ # * +version+ - (String)
424
+ # * +activityId+ - (String)
425
+ # * +input+ - (String)
426
+ # * +control+ - (String)
427
+ # * +scheduleToStartTimeout+ - (String)
428
+ # * +scheduleToCloseTimeout+ - (String)
429
+ # * +startToCloseTimeout+ - (String)
430
+ # * +taskList+ - (Hash)
431
+ # * +name+ - (String)
432
+ # * +decisionTaskCompletedEventId+ - (Integer)
433
+ # * +heartbeatTimeout+ - (String)
434
+ # * +activityTaskStartedEventAttributes+ - (Hash)
435
+ # * +identity+ - (String)
436
+ # * +scheduledEventId+ - (Integer)
437
+ # * +activityTaskCompletedEventAttributes+ - (Hash)
438
+ # * +result+ - (String)
439
+ # * +scheduledEventId+ - (Integer)
440
+ # * +startedEventId+ - (Integer)
441
+ # * +activityTaskFailedEventAttributes+ - (Hash)
442
+ # * +reason+ - (String)
443
+ # * +details+ - (String)
444
+ # * +scheduledEventId+ - (Integer)
445
+ # * +startedEventId+ - (Integer)
446
+ # * +activityTaskTimedOutEventAttributes+ - (Hash)
447
+ # * +timeoutType+ - (String)
448
+ # * +scheduledEventId+ - (Integer)
449
+ # * +startedEventId+ - (Integer)
450
+ # * +details+ - (String)
451
+ # * +activityTaskCanceledEventAttributes+ - (Hash)
452
+ # * +details+ - (String)
453
+ # * +scheduledEventId+ - (Integer)
454
+ # * +startedEventId+ - (Integer)
455
+ # * +latestCancelRequestedEventId+ - (Integer)
456
+ # * +activityTaskCancelRequestedEventAttributes+ - (Hash)
457
+ # * +decisionTaskCompletedEventId+ - (Integer)
458
+ # * +activityId+ - (String)
459
+ # * +workflowExecutionSignaledEventAttributes+ - (Hash)
460
+ # * +signalName+ - (String)
461
+ # * +input+ - (String)
462
+ # * +externalWorkflowExecution+ - (Hash)
463
+ # * +workflowId+ - (String)
464
+ # * +runId+ - (String)
465
+ # * +externalInitiatedEventId+ - (Integer)
466
+ # * +markerRecordedEventAttributes+ - (Hash)
467
+ # * +markerName+ - (String)
468
+ # * +details+ - (String)
469
+ # * +decisionTaskCompletedEventId+ - (Integer)
470
+ # * +timerStartedEventAttributes+ - (Hash)
471
+ # * +timerId+ - (String)
472
+ # * +control+ - (String)
473
+ # * +startToFireTimeout+ - (String)
474
+ # * +decisionTaskCompletedEventId+ - (Integer)
475
+ # * +timerFiredEventAttributes+ - (Hash)
476
+ # * +timerId+ - (String)
477
+ # * +startedEventId+ - (Integer)
478
+ # * +timerCanceledEventAttributes+ - (Hash)
479
+ # * +timerId+ - (String)
480
+ # * +startedEventId+ - (Integer)
481
+ # * +decisionTaskCompletedEventId+ - (Integer)
482
+ # * +startChildWorkflowExecutionInitiatedEventAttributes+ - (Hash)
483
+ # * +workflowId+ - (String)
484
+ # * +workflowType+ - (Hash)
485
+ # * +name+ - (String)
486
+ # * +version+ - (String)
487
+ # * +control+ - (String)
488
+ # * +input+ - (String)
489
+ # * +executionStartToCloseTimeout+ - (String)
490
+ # * +taskList+ - (Hash)
491
+ # * +name+ - (String)
492
+ # * +decisionTaskCompletedEventId+ - (Integer)
493
+ # * +childPolicy+ - (String)
494
+ # * +taskStartToCloseTimeout+ - (String)
495
+ # * +tagList+ - (Array<String>)
496
+ # * +childWorkflowExecutionStartedEventAttributes+ - (Hash)
497
+ # * +workflowExecution+ - (Hash)
498
+ # * +workflowId+ - (String)
499
+ # * +runId+ - (String)
500
+ # * +workflowType+ - (Hash)
501
+ # * +name+ - (String)
502
+ # * +version+ - (String)
503
+ # * +initiatedEventId+ - (Integer)
504
+ # * +childWorkflowExecutionCompletedEventAttributes+ - (Hash)
505
+ # * +workflowExecution+ - (Hash)
506
+ # * +workflowId+ - (String)
507
+ # * +runId+ - (String)
508
+ # * +workflowType+ - (Hash)
509
+ # * +name+ - (String)
510
+ # * +version+ - (String)
511
+ # * +result+ - (String)
512
+ # * +initiatedEventId+ - (Integer)
513
+ # * +startedEventId+ - (Integer)
514
+ # * +childWorkflowExecutionFailedEventAttributes+ - (Hash)
515
+ # * +workflowExecution+ - (Hash)
516
+ # * +workflowId+ - (String)
517
+ # * +runId+ - (String)
518
+ # * +workflowType+ - (Hash)
519
+ # * +name+ - (String)
520
+ # * +version+ - (String)
521
+ # * +reason+ - (String)
522
+ # * +details+ - (String)
523
+ # * +initiatedEventId+ - (Integer)
524
+ # * +startedEventId+ - (Integer)
525
+ # * +childWorkflowExecutionTimedOutEventAttributes+ - (Hash)
526
+ # * +workflowExecution+ - (Hash)
527
+ # * +workflowId+ - (String)
528
+ # * +runId+ - (String)
529
+ # * +workflowType+ - (Hash)
530
+ # * +name+ - (String)
531
+ # * +version+ - (String)
532
+ # * +timeoutType+ - (String)
533
+ # * +initiatedEventId+ - (Integer)
534
+ # * +startedEventId+ - (Integer)
535
+ # * +childWorkflowExecutionCanceledEventAttributes+ - (Hash)
536
+ # * +workflowExecution+ - (Hash)
537
+ # * +workflowId+ - (String)
538
+ # * +runId+ - (String)
539
+ # * +workflowType+ - (Hash)
540
+ # * +name+ - (String)
541
+ # * +version+ - (String)
542
+ # * +details+ - (String)
543
+ # * +initiatedEventId+ - (Integer)
544
+ # * +startedEventId+ - (Integer)
545
+ # * +childWorkflowExecutionTerminatedEventAttributes+ - (Hash)
546
+ # * +workflowExecution+ - (Hash)
547
+ # * +workflowId+ - (String)
548
+ # * +runId+ - (String)
549
+ # * +workflowType+ - (Hash)
550
+ # * +name+ - (String)
551
+ # * +version+ - (String)
552
+ # * +initiatedEventId+ - (Integer)
553
+ # * +startedEventId+ - (Integer)
554
+ # * +signalExternalWorkflowExecutionInitiatedEventAttributes+ - (Hash)
555
+ # * +workflowId+ - (String)
556
+ # * +runId+ - (String)
557
+ # * +signalName+ - (String)
558
+ # * +input+ - (String)
559
+ # * +decisionTaskCompletedEventId+ - (Integer)
560
+ # * +control+ - (String)
561
+ # * +externalWorkflowExecutionSignaledEventAttributes+ - (Hash)
562
+ # * +workflowExecution+ - (Hash)
563
+ # * +workflowId+ - (String)
564
+ # * +runId+ - (String)
565
+ # * +initiatedEventId+ - (Integer)
566
+ # * +signalExternalWorkflowExecutionFailedEventAttributes+ - (Hash)
567
+ # * +workflowId+ - (String)
568
+ # * +runId+ - (String)
569
+ # * +cause+ - (String)
570
+ # * +initiatedEventId+ - (Integer)
571
+ # * +decisionTaskCompletedEventId+ - (Integer)
572
+ # * +externalWorkflowExecutionCancelRequestedEventAttributes+ - (Hash)
573
+ # * +workflowExecution+ - (Hash)
574
+ # * +workflowId+ - (String)
575
+ # * +runId+ - (String)
576
+ # * +initiatedEventId+ - (Integer)
577
+ # * +requestCancelExternalWorkflowExecutionInitiatedEventAttributes+ - (Hash)
578
+ # * +workflowId+ - (String)
579
+ # * +runId+ - (String)
580
+ # * +decisionTaskCompletedEventId+ - (Integer)
581
+ # * +control+ - (String)
582
+ # * +requestCancelExternalWorkflowExecutionFailedEventAttributes+ - (Hash)
583
+ # * +workflowId+ - (String)
584
+ # * +runId+ - (String)
585
+ # * +cause+ - (String)
586
+ # * +initiatedEventId+ - (Integer)
587
+ # * +decisionTaskCompletedEventId+ - (Integer)
588
+ # * +scheduleActivityTaskFailedEventAttributes+ - (Hash)
589
+ # * +activityType+ - (Hash)
590
+ # * +name+ - (String)
591
+ # * +version+ - (String)
592
+ # * +activityId+ - (String)
593
+ # * +cause+ - (String)
594
+ # * +decisionTaskCompletedEventId+ - (Integer)
595
+ # * +requestCancelActivityTaskFailedEventAttributes+ - (Hash)
596
+ # * +activityId+ - (String)
597
+ # * +cause+ - (String)
598
+ # * +decisionTaskCompletedEventId+ - (Integer)
599
+ # * +startTimerFailedEventAttributes+ - (Hash)
600
+ # * +timerId+ - (String)
601
+ # * +cause+ - (String)
602
+ # * +decisionTaskCompletedEventId+ - (Integer)
603
+ # * +cancelTimerFailedEventAttributes+ - (Hash)
604
+ # * +timerId+ - (String)
605
+ # * +cause+ - (String)
606
+ # * +decisionTaskCompletedEventId+ - (Integer)
607
+ # * +startChildWorkflowExecutionFailedEventAttributes+ - (Hash)
608
+ # * +workflowType+ - (Hash)
609
+ # * +name+ - (String)
610
+ # * +version+ - (String)
611
+ # * +cause+ - (String)
612
+ # * +workflowId+ - (String)
613
+ # * +initiatedEventId+ - (Integer)
614
+ # * +decisionTaskCompletedEventId+ - (Integer)
615
+ # * +nextPageToken+ - (String)
616
+ #
617
+ # @return [Core::Response]
618
+ #
619
+ define_client_method :get_workflow_execution_history, 'GetWorkflowExecutionHistory'
620
+
621
+ # Calls the ListActivityTypes API operation.
622
+ # @method list_activity_types(options = {})
623
+ #
624
+ # === Options:
625
+ #
626
+ # * +:domain+ - *required* - (String)
627
+ # * +:name+ - (String)
628
+ # * +:registration_status+ - *required* - (String)
629
+ # * +:next_page_token+ - (String)
630
+ # * +:maximum_page_size+ - (Integer)
631
+ # * +:reverse_order+ - (Boolean)
632
+ #
633
+ # === Response Structure:
634
+ #
635
+ # * +typeInfos+ - (Array<Hash>)
636
+ # * +activityType+ - (Hash)
637
+ # * +name+ - (String)
638
+ # * +version+ - (String)
639
+ # * +status+ - (String)
640
+ # * +description+ - (String)
641
+ # * +creationDate+ - (Time)
642
+ # * +deprecationDate+ - (Time)
643
+ # * +nextPageToken+ - (String)
644
+ #
645
+ # @return [Core::Response]
646
+ #
647
+ define_client_method :list_activity_types, 'ListActivityTypes'
648
+
649
+ # Calls the ListClosedWorkflowExecutions API operation.
650
+ # @method list_closed_workflow_executions(options = {})
651
+ #
652
+ # === Options:
653
+ #
654
+ # * +:domain+ - *required* - (String)
655
+ # * +:start_time_filter+ - (Hash)
656
+ # * +:oldest_date+ - *required* - (Integer<unix timestamp>)
657
+ # * +:latest_date+ - (Integer<unix timestamp>)
658
+ # * +:close_time_filter+ - (Hash)
659
+ # * +:oldest_date+ - *required* - (Integer<unix timestamp>)
660
+ # * +:latest_date+ - (Integer<unix timestamp>)
661
+ # * +:execution_filter+ - (Hash)
662
+ # * +:workflow_id+ - *required* - (String)
663
+ # * +:close_status_filter+ - (Hash)
664
+ # * +:status+ - *required* - (String)
665
+ # * +:type_filter+ - (Hash)
666
+ # * +:name+ - *required* - (String)
667
+ # * +:version+ - (String)
668
+ # * +:tag_filter+ - (Hash)
669
+ # * +:tag+ - *required* - (String)
670
+ # * +:next_page_token+ - (String)
671
+ # * +:maximum_page_size+ - (Integer)
672
+ # * +:reverse_order+ - (Boolean)
673
+ #
674
+ # === Response Structure:
675
+ #
676
+ # * +executionInfos+ - (Array<Hash>)
677
+ # * +execution+ - (Hash)
678
+ # * +workflowId+ - (String)
679
+ # * +runId+ - (String)
680
+ # * +workflowType+ - (Hash)
681
+ # * +name+ - (String)
682
+ # * +version+ - (String)
683
+ # * +startTimestamp+ - (Time)
684
+ # * +closeTimestamp+ - (Time)
685
+ # * +executionStatus+ - (String)
686
+ # * +closeStatus+ - (String)
687
+ # * +parent+ - (Hash)
688
+ # * +workflowId+ - (String)
689
+ # * +runId+ - (String)
690
+ # * +tagList+ - (Array<String>)
691
+ # * +cancelRequested+ - (Boolean)
692
+ # * +nextPageToken+ - (String)
693
+ #
694
+ # @return [Core::Response]
695
+ #
696
+ define_client_method :list_closed_workflow_executions, 'ListClosedWorkflowExecutions'
697
+
698
+ # Calls the ListDomains API operation.
699
+ # @method list_domains(options = {})
700
+ #
701
+ # === Options:
702
+ #
703
+ # * +:next_page_token+ - (String)
704
+ # * +:registration_status+ - *required* - (String)
705
+ # * +:maximum_page_size+ - (Integer)
706
+ # * +:reverse_order+ - (Boolean)
707
+ #
708
+ # === Response Structure:
709
+ #
710
+ # * +domainInfos+ - (Array<Hash>)
711
+ # * +name+ - (String)
712
+ # * +status+ - (String)
713
+ # * +description+ - (String)
714
+ # * +nextPageToken+ - (String)
715
+ #
716
+ # @return [Core::Response]
717
+ #
718
+ define_client_method :list_domains, 'ListDomains'
719
+
720
+ # Calls the ListOpenWorkflowExecutions API operation.
721
+ # @method list_open_workflow_executions(options = {})
722
+ #
723
+ # === Options:
724
+ #
725
+ # * +:domain+ - *required* - (String)
726
+ # * +:start_time_filter+ - *required* - (Hash)
727
+ # * +:oldest_date+ - *required* - (Integer<unix timestamp>)
728
+ # * +:latest_date+ - (Integer<unix timestamp>)
729
+ # * +:type_filter+ - (Hash)
730
+ # * +:name+ - *required* - (String)
731
+ # * +:version+ - (String)
732
+ # * +:tag_filter+ - (Hash)
733
+ # * +:tag+ - *required* - (String)
734
+ # * +:next_page_token+ - (String)
735
+ # * +:maximum_page_size+ - (Integer)
736
+ # * +:reverse_order+ - (Boolean)
737
+ # * +:execution_filter+ - (Hash)
738
+ # * +:workflow_id+ - *required* - (String)
739
+ #
740
+ # === Response Structure:
741
+ #
742
+ # * +executionInfos+ - (Array<Hash>)
743
+ # * +execution+ - (Hash)
744
+ # * +workflowId+ - (String)
745
+ # * +runId+ - (String)
746
+ # * +workflowType+ - (Hash)
747
+ # * +name+ - (String)
748
+ # * +version+ - (String)
749
+ # * +startTimestamp+ - (Time)
750
+ # * +closeTimestamp+ - (Time)
751
+ # * +executionStatus+ - (String)
752
+ # * +closeStatus+ - (String)
753
+ # * +parent+ - (Hash)
754
+ # * +workflowId+ - (String)
755
+ # * +runId+ - (String)
756
+ # * +tagList+ - (Array<String>)
757
+ # * +cancelRequested+ - (Boolean)
758
+ # * +nextPageToken+ - (String)
759
+ #
760
+ # @return [Core::Response]
761
+ #
762
+ define_client_method :list_open_workflow_executions, 'ListOpenWorkflowExecutions'
763
+
764
+ # Calls the ListWorkflowTypes API operation.
765
+ # @method list_workflow_types(options = {})
766
+ #
767
+ # === Options:
768
+ #
769
+ # * +:domain+ - *required* - (String)
770
+ # * +:name+ - (String)
771
+ # * +:registration_status+ - *required* - (String)
772
+ # * +:next_page_token+ - (String)
773
+ # * +:maximum_page_size+ - (Integer)
774
+ # * +:reverse_order+ - (Boolean)
775
+ #
776
+ # === Response Structure:
777
+ #
778
+ # * +typeInfos+ - (Array<Hash>)
779
+ # * +workflowType+ - (Hash)
780
+ # * +name+ - (String)
781
+ # * +version+ - (String)
782
+ # * +status+ - (String)
783
+ # * +description+ - (String)
784
+ # * +creationDate+ - (Time)
785
+ # * +deprecationDate+ - (Time)
786
+ # * +nextPageToken+ - (String)
787
+ #
788
+ # @return [Core::Response]
789
+ #
790
+ define_client_method :list_workflow_types, 'ListWorkflowTypes'
791
+
792
+ # Calls the PollForActivityTask API operation.
793
+ # @method poll_for_activity_task(options = {})
794
+ #
795
+ # === Options:
796
+ #
797
+ # * +:domain+ - *required* - (String)
798
+ # * +:task_list+ - *required* - (Hash)
799
+ # * +:name+ - *required* - (String)
800
+ # * +:identity+ - (String)
801
+ #
802
+ # === Response Structure:
803
+ #
804
+ # * +taskToken+ - (String)
805
+ # * +activityId+ - (String)
806
+ # * +startedEventId+ - (Integer)
807
+ # * +workflowExecution+ - (Hash)
808
+ # * +workflowId+ - (String)
809
+ # * +runId+ - (String)
810
+ # * +activityType+ - (Hash)
811
+ # * +name+ - (String)
812
+ # * +version+ - (String)
813
+ # * +input+ - (String)
814
+ #
815
+ # @return [Core::Response]
816
+ #
817
+ define_client_method :poll_for_activity_task, 'PollForActivityTask'
818
+
819
+ # Calls the PollForDecisionTask API operation.
820
+ # @method poll_for_decision_task(options = {})
821
+ #
822
+ # === Options:
823
+ #
824
+ # * +:domain+ - *required* - (String)
825
+ # * +:task_list+ - *required* - (Hash)
826
+ # * +:name+ - *required* - (String)
827
+ # * +:identity+ - (String)
828
+ # * +:next_page_token+ - (String)
829
+ # * +:maximum_page_size+ - (Integer)
830
+ # * +:reverse_order+ - (Boolean)
831
+ #
832
+ # === Response Structure:
833
+ #
834
+ # * +taskToken+ - (String)
835
+ # * +startedEventId+ - (Integer)
836
+ # * +workflowExecution+ - (Hash)
837
+ # * +workflowId+ - (String)
838
+ # * +runId+ - (String)
839
+ # * +workflowType+ - (Hash)
840
+ # * +name+ - (String)
841
+ # * +version+ - (String)
842
+ # * +events+ - (Array<Hash>)
843
+ # * +eventTimestamp+ - (Time)
844
+ # * +eventType+ - (String)
845
+ # * +eventId+ - (Integer)
846
+ # * +workflowExecutionStartedEventAttributes+ - (Hash)
847
+ # * +input+ - (String)
848
+ # * +executionStartToCloseTimeout+ - (String)
849
+ # * +taskStartToCloseTimeout+ - (String)
850
+ # * +childPolicy+ - (String)
851
+ # * +taskList+ - (Hash)
852
+ # * +name+ - (String)
853
+ # * +workflowType+ - (Hash)
854
+ # * +name+ - (String)
855
+ # * +version+ - (String)
856
+ # * +tagList+ - (Array<String>)
857
+ # * +continuedExecutionRunId+ - (String)
858
+ # * +parentWorkflowExecution+ - (Hash)
859
+ # * +workflowId+ - (String)
860
+ # * +runId+ - (String)
861
+ # * +parentInitiatedEventId+ - (Integer)
862
+ # * +workflowExecutionCompletedEventAttributes+ - (Hash)
863
+ # * +result+ - (String)
864
+ # * +decisionTaskCompletedEventId+ - (Integer)
865
+ # * +completeWorkflowExecutionFailedEventAttributes+ - (Hash)
866
+ # * +cause+ - (String)
867
+ # * +decisionTaskCompletedEventId+ - (Integer)
868
+ # * +workflowExecutionFailedEventAttributes+ - (Hash)
869
+ # * +reason+ - (String)
870
+ # * +details+ - (String)
871
+ # * +decisionTaskCompletedEventId+ - (Integer)
872
+ # * +failWorkflowExecutionFailedEventAttributes+ - (Hash)
873
+ # * +cause+ - (String)
874
+ # * +decisionTaskCompletedEventId+ - (Integer)
875
+ # * +workflowExecutionTimedOutEventAttributes+ - (Hash)
876
+ # * +timeoutType+ - (String)
877
+ # * +childPolicy+ - (String)
878
+ # * +workflowExecutionCanceledEventAttributes+ - (Hash)
879
+ # * +details+ - (String)
880
+ # * +decisionTaskCompletedEventId+ - (Integer)
881
+ # * +cancelWorkflowExecutionFailedEventAttributes+ - (Hash)
882
+ # * +cause+ - (String)
883
+ # * +decisionTaskCompletedEventId+ - (Integer)
884
+ # * +workflowExecutionContinuedAsNewEventAttributes+ - (Hash)
885
+ # * +input+ - (String)
886
+ # * +decisionTaskCompletedEventId+ - (Integer)
887
+ # * +newExecutionRunId+ - (String)
888
+ # * +executionStartToCloseTimeout+ - (String)
889
+ # * +taskList+ - (Hash)
890
+ # * +name+ - (String)
891
+ # * +taskStartToCloseTimeout+ - (String)
892
+ # * +childPolicy+ - (String)
893
+ # * +tagList+ - (Array<String>)
894
+ # * +workflowType+ - (Hash)
895
+ # * +name+ - (String)
896
+ # * +version+ - (String)
897
+ # * +continueAsNewWorkflowExecutionFailedEventAttributes+ - (Hash)
898
+ # * +cause+ - (String)
899
+ # * +decisionTaskCompletedEventId+ - (Integer)
900
+ # * +workflowExecutionTerminatedEventAttributes+ - (Hash)
901
+ # * +reason+ - (String)
902
+ # * +details+ - (String)
903
+ # * +childPolicy+ - (String)
904
+ # * +cause+ - (String)
905
+ # * +workflowExecutionCancelRequestedEventAttributes+ - (Hash)
906
+ # * +externalWorkflowExecution+ - (Hash)
907
+ # * +workflowId+ - (String)
908
+ # * +runId+ - (String)
909
+ # * +externalInitiatedEventId+ - (Integer)
910
+ # * +cause+ - (String)
911
+ # * +decisionTaskScheduledEventAttributes+ - (Hash)
912
+ # * +taskList+ - (Hash)
913
+ # * +name+ - (String)
914
+ # * +startToCloseTimeout+ - (String)
915
+ # * +decisionTaskStartedEventAttributes+ - (Hash)
916
+ # * +identity+ - (String)
917
+ # * +scheduledEventId+ - (Integer)
918
+ # * +decisionTaskCompletedEventAttributes+ - (Hash)
919
+ # * +executionContext+ - (String)
920
+ # * +scheduledEventId+ - (Integer)
921
+ # * +startedEventId+ - (Integer)
922
+ # * +decisionTaskTimedOutEventAttributes+ - (Hash)
923
+ # * +timeoutType+ - (String)
924
+ # * +scheduledEventId+ - (Integer)
925
+ # * +startedEventId+ - (Integer)
926
+ # * +activityTaskScheduledEventAttributes+ - (Hash)
927
+ # * +activityType+ - (Hash)
928
+ # * +name+ - (String)
929
+ # * +version+ - (String)
930
+ # * +activityId+ - (String)
931
+ # * +input+ - (String)
932
+ # * +control+ - (String)
933
+ # * +scheduleToStartTimeout+ - (String)
934
+ # * +scheduleToCloseTimeout+ - (String)
935
+ # * +startToCloseTimeout+ - (String)
936
+ # * +taskList+ - (Hash)
937
+ # * +name+ - (String)
938
+ # * +decisionTaskCompletedEventId+ - (Integer)
939
+ # * +heartbeatTimeout+ - (String)
940
+ # * +activityTaskStartedEventAttributes+ - (Hash)
941
+ # * +identity+ - (String)
942
+ # * +scheduledEventId+ - (Integer)
943
+ # * +activityTaskCompletedEventAttributes+ - (Hash)
944
+ # * +result+ - (String)
945
+ # * +scheduledEventId+ - (Integer)
946
+ # * +startedEventId+ - (Integer)
947
+ # * +activityTaskFailedEventAttributes+ - (Hash)
948
+ # * +reason+ - (String)
949
+ # * +details+ - (String)
950
+ # * +scheduledEventId+ - (Integer)
951
+ # * +startedEventId+ - (Integer)
952
+ # * +activityTaskTimedOutEventAttributes+ - (Hash)
953
+ # * +timeoutType+ - (String)
954
+ # * +scheduledEventId+ - (Integer)
955
+ # * +startedEventId+ - (Integer)
956
+ # * +details+ - (String)
957
+ # * +activityTaskCanceledEventAttributes+ - (Hash)
958
+ # * +details+ - (String)
959
+ # * +scheduledEventId+ - (Integer)
960
+ # * +startedEventId+ - (Integer)
961
+ # * +latestCancelRequestedEventId+ - (Integer)
962
+ # * +activityTaskCancelRequestedEventAttributes+ - (Hash)
963
+ # * +decisionTaskCompletedEventId+ - (Integer)
964
+ # * +activityId+ - (String)
965
+ # * +workflowExecutionSignaledEventAttributes+ - (Hash)
966
+ # * +signalName+ - (String)
967
+ # * +input+ - (String)
968
+ # * +externalWorkflowExecution+ - (Hash)
969
+ # * +workflowId+ - (String)
970
+ # * +runId+ - (String)
971
+ # * +externalInitiatedEventId+ - (Integer)
972
+ # * +markerRecordedEventAttributes+ - (Hash)
973
+ # * +markerName+ - (String)
974
+ # * +details+ - (String)
975
+ # * +decisionTaskCompletedEventId+ - (Integer)
976
+ # * +timerStartedEventAttributes+ - (Hash)
977
+ # * +timerId+ - (String)
978
+ # * +control+ - (String)
979
+ # * +startToFireTimeout+ - (String)
980
+ # * +decisionTaskCompletedEventId+ - (Integer)
981
+ # * +timerFiredEventAttributes+ - (Hash)
982
+ # * +timerId+ - (String)
983
+ # * +startedEventId+ - (Integer)
984
+ # * +timerCanceledEventAttributes+ - (Hash)
985
+ # * +timerId+ - (String)
986
+ # * +startedEventId+ - (Integer)
987
+ # * +decisionTaskCompletedEventId+ - (Integer)
988
+ # * +startChildWorkflowExecutionInitiatedEventAttributes+ - (Hash)
989
+ # * +workflowId+ - (String)
990
+ # * +workflowType+ - (Hash)
991
+ # * +name+ - (String)
992
+ # * +version+ - (String)
993
+ # * +control+ - (String)
994
+ # * +input+ - (String)
995
+ # * +executionStartToCloseTimeout+ - (String)
996
+ # * +taskList+ - (Hash)
997
+ # * +name+ - (String)
998
+ # * +decisionTaskCompletedEventId+ - (Integer)
999
+ # * +childPolicy+ - (String)
1000
+ # * +taskStartToCloseTimeout+ - (String)
1001
+ # * +tagList+ - (Array<String>)
1002
+ # * +childWorkflowExecutionStartedEventAttributes+ - (Hash)
1003
+ # * +workflowExecution+ - (Hash)
1004
+ # * +workflowId+ - (String)
1005
+ # * +runId+ - (String)
1006
+ # * +workflowType+ - (Hash)
1007
+ # * +name+ - (String)
1008
+ # * +version+ - (String)
1009
+ # * +initiatedEventId+ - (Integer)
1010
+ # * +childWorkflowExecutionCompletedEventAttributes+ - (Hash)
1011
+ # * +workflowExecution+ - (Hash)
1012
+ # * +workflowId+ - (String)
1013
+ # * +runId+ - (String)
1014
+ # * +workflowType+ - (Hash)
1015
+ # * +name+ - (String)
1016
+ # * +version+ - (String)
1017
+ # * +result+ - (String)
1018
+ # * +initiatedEventId+ - (Integer)
1019
+ # * +startedEventId+ - (Integer)
1020
+ # * +childWorkflowExecutionFailedEventAttributes+ - (Hash)
1021
+ # * +workflowExecution+ - (Hash)
1022
+ # * +workflowId+ - (String)
1023
+ # * +runId+ - (String)
1024
+ # * +workflowType+ - (Hash)
1025
+ # * +name+ - (String)
1026
+ # * +version+ - (String)
1027
+ # * +reason+ - (String)
1028
+ # * +details+ - (String)
1029
+ # * +initiatedEventId+ - (Integer)
1030
+ # * +startedEventId+ - (Integer)
1031
+ # * +childWorkflowExecutionTimedOutEventAttributes+ - (Hash)
1032
+ # * +workflowExecution+ - (Hash)
1033
+ # * +workflowId+ - (String)
1034
+ # * +runId+ - (String)
1035
+ # * +workflowType+ - (Hash)
1036
+ # * +name+ - (String)
1037
+ # * +version+ - (String)
1038
+ # * +timeoutType+ - (String)
1039
+ # * +initiatedEventId+ - (Integer)
1040
+ # * +startedEventId+ - (Integer)
1041
+ # * +childWorkflowExecutionCanceledEventAttributes+ - (Hash)
1042
+ # * +workflowExecution+ - (Hash)
1043
+ # * +workflowId+ - (String)
1044
+ # * +runId+ - (String)
1045
+ # * +workflowType+ - (Hash)
1046
+ # * +name+ - (String)
1047
+ # * +version+ - (String)
1048
+ # * +details+ - (String)
1049
+ # * +initiatedEventId+ - (Integer)
1050
+ # * +startedEventId+ - (Integer)
1051
+ # * +childWorkflowExecutionTerminatedEventAttributes+ - (Hash)
1052
+ # * +workflowExecution+ - (Hash)
1053
+ # * +workflowId+ - (String)
1054
+ # * +runId+ - (String)
1055
+ # * +workflowType+ - (Hash)
1056
+ # * +name+ - (String)
1057
+ # * +version+ - (String)
1058
+ # * +initiatedEventId+ - (Integer)
1059
+ # * +startedEventId+ - (Integer)
1060
+ # * +signalExternalWorkflowExecutionInitiatedEventAttributes+ - (Hash)
1061
+ # * +workflowId+ - (String)
1062
+ # * +runId+ - (String)
1063
+ # * +signalName+ - (String)
1064
+ # * +input+ - (String)
1065
+ # * +decisionTaskCompletedEventId+ - (Integer)
1066
+ # * +control+ - (String)
1067
+ # * +externalWorkflowExecutionSignaledEventAttributes+ - (Hash)
1068
+ # * +workflowExecution+ - (Hash)
1069
+ # * +workflowId+ - (String)
1070
+ # * +runId+ - (String)
1071
+ # * +initiatedEventId+ - (Integer)
1072
+ # * +signalExternalWorkflowExecutionFailedEventAttributes+ - (Hash)
1073
+ # * +workflowId+ - (String)
1074
+ # * +runId+ - (String)
1075
+ # * +cause+ - (String)
1076
+ # * +initiatedEventId+ - (Integer)
1077
+ # * +decisionTaskCompletedEventId+ - (Integer)
1078
+ # * +externalWorkflowExecutionCancelRequestedEventAttributes+ - (Hash)
1079
+ # * +workflowExecution+ - (Hash)
1080
+ # * +workflowId+ - (String)
1081
+ # * +runId+ - (String)
1082
+ # * +initiatedEventId+ - (Integer)
1083
+ # * +requestCancelExternalWorkflowExecutionInitiatedEventAttributes+ - (Hash)
1084
+ # * +workflowId+ - (String)
1085
+ # * +runId+ - (String)
1086
+ # * +decisionTaskCompletedEventId+ - (Integer)
1087
+ # * +control+ - (String)
1088
+ # * +requestCancelExternalWorkflowExecutionFailedEventAttributes+ - (Hash)
1089
+ # * +workflowId+ - (String)
1090
+ # * +runId+ - (String)
1091
+ # * +cause+ - (String)
1092
+ # * +initiatedEventId+ - (Integer)
1093
+ # * +decisionTaskCompletedEventId+ - (Integer)
1094
+ # * +scheduleActivityTaskFailedEventAttributes+ - (Hash)
1095
+ # * +activityType+ - (Hash)
1096
+ # * +name+ - (String)
1097
+ # * +version+ - (String)
1098
+ # * +activityId+ - (String)
1099
+ # * +cause+ - (String)
1100
+ # * +decisionTaskCompletedEventId+ - (Integer)
1101
+ # * +requestCancelActivityTaskFailedEventAttributes+ - (Hash)
1102
+ # * +activityId+ - (String)
1103
+ # * +cause+ - (String)
1104
+ # * +decisionTaskCompletedEventId+ - (Integer)
1105
+ # * +startTimerFailedEventAttributes+ - (Hash)
1106
+ # * +timerId+ - (String)
1107
+ # * +cause+ - (String)
1108
+ # * +decisionTaskCompletedEventId+ - (Integer)
1109
+ # * +cancelTimerFailedEventAttributes+ - (Hash)
1110
+ # * +timerId+ - (String)
1111
+ # * +cause+ - (String)
1112
+ # * +decisionTaskCompletedEventId+ - (Integer)
1113
+ # * +startChildWorkflowExecutionFailedEventAttributes+ - (Hash)
1114
+ # * +workflowType+ - (Hash)
1115
+ # * +name+ - (String)
1116
+ # * +version+ - (String)
1117
+ # * +cause+ - (String)
1118
+ # * +workflowId+ - (String)
1119
+ # * +initiatedEventId+ - (Integer)
1120
+ # * +decisionTaskCompletedEventId+ - (Integer)
1121
+ # * +nextPageToken+ - (String)
1122
+ # * +previousStartedEventId+ - (Integer)
1123
+ #
1124
+ # @return [Core::Response]
1125
+ #
1126
+ define_client_method :poll_for_decision_task, 'PollForDecisionTask'
1127
+
1128
+ # Calls the RecordActivityTaskHeartbeat API operation.
1129
+ # @method record_activity_task_heartbeat(options = {})
1130
+ #
1131
+ # === Options:
1132
+ #
1133
+ # * +:task_token+ - *required* - (String)
1134
+ # * +:details+ - (String)
1135
+ #
1136
+ # === Response Structure:
1137
+ #
1138
+ # * +cancelRequested+ - (Boolean)
1139
+ #
1140
+ # @return [Core::Response]
1141
+ #
1142
+ define_client_method :record_activity_task_heartbeat, 'RecordActivityTaskHeartbeat'
1143
+
1144
+ # Calls the RegisterActivityType API operation.
1145
+ # @method register_activity_type(options = {})
1146
+ #
1147
+ # === Options:
1148
+ #
1149
+ # * +:domain+ - *required* - (String)
1150
+ # * +:name+ - *required* - (String)
1151
+ # * +:version+ - *required* - (String)
1152
+ # * +:description+ - (String)
1153
+ # * +:default_task_start_to_close_timeout+ - (String)
1154
+ # * +:default_task_heartbeat_timeout+ - (String)
1155
+ # * +:default_task_list+ - (Hash)
1156
+ # * +:name+ - *required* - (String)
1157
+ # * +:default_task_schedule_to_start_timeout+ - (String)
1158
+ # * +:default_task_schedule_to_close_timeout+ - (String)
1159
+ #
1160
+ # === Response Structure:
1161
+ #
1162
+ # This method returns no response data.
1163
+ #
1164
+ # @return [Core::Response]
1165
+ #
1166
+ define_client_method :register_activity_type, 'RegisterActivityType'
1167
+
1168
+ # Calls the RegisterDomain API operation.
1169
+ # @method register_domain(options = {})
1170
+ #
1171
+ # === Options:
1172
+ #
1173
+ # * +:name+ - *required* - (String)
1174
+ # * +:description+ - (String)
1175
+ # * +:workflow_execution_retention_period_in_days+ - *required* - (String)
1176
+ #
1177
+ # === Response Structure:
1178
+ #
1179
+ # This method returns no response data.
1180
+ #
1181
+ # @return [Core::Response]
1182
+ #
1183
+ define_client_method :register_domain, 'RegisterDomain'
1184
+
1185
+ # Calls the RegisterWorkflowType API operation.
1186
+ # @method register_workflow_type(options = {})
1187
+ #
1188
+ # === Options:
1189
+ #
1190
+ # * +:domain+ - *required* - (String)
1191
+ # * +:name+ - *required* - (String)
1192
+ # * +:version+ - *required* - (String)
1193
+ # * +:description+ - (String)
1194
+ # * +:default_task_start_to_close_timeout+ - (String)
1195
+ # * +:default_execution_start_to_close_timeout+ - (String)
1196
+ # * +:default_task_list+ - (Hash)
1197
+ # * +:name+ - *required* - (String)
1198
+ # * +:default_child_policy+ - (String)
1199
+ #
1200
+ # === Response Structure:
1201
+ #
1202
+ # This method returns no response data.
1203
+ #
1204
+ # @return [Core::Response]
1205
+ #
1206
+ define_client_method :register_workflow_type, 'RegisterWorkflowType'
1207
+
1208
+ # Calls the RequestCancelWorkflowExecution API operation.
1209
+ # @method request_cancel_workflow_execution(options = {})
1210
+ #
1211
+ # === Options:
1212
+ #
1213
+ # * +:domain+ - *required* - (String)
1214
+ # * +:workflow_id+ - *required* - (String)
1215
+ # * +:run_id+ - (String)
1216
+ #
1217
+ # === Response Structure:
1218
+ #
1219
+ # This method returns no response data.
1220
+ #
1221
+ # @return [Core::Response]
1222
+ #
1223
+ define_client_method :request_cancel_workflow_execution, 'RequestCancelWorkflowExecution'
1224
+
1225
+ # Calls the RespondActivityTaskCanceled API operation.
1226
+ # @method respond_activity_task_canceled(options = {})
1227
+ #
1228
+ # === Options:
1229
+ #
1230
+ # * +:task_token+ - *required* - (String)
1231
+ # * +:details+ - (String)
1232
+ #
1233
+ # === Response Structure:
1234
+ #
1235
+ # This method returns no response data.
1236
+ #
1237
+ # @return [Core::Response]
1238
+ #
1239
+ define_client_method :respond_activity_task_canceled, 'RespondActivityTaskCanceled'
1240
+
1241
+ # Calls the RespondActivityTaskCompleted API operation.
1242
+ # @method respond_activity_task_completed(options = {})
1243
+ #
1244
+ # === Options:
1245
+ #
1246
+ # * +:task_token+ - *required* - (String)
1247
+ # * +:result+ - (String)
1248
+ #
1249
+ # === Response Structure:
1250
+ #
1251
+ # This method returns no response data.
1252
+ #
1253
+ # @return [Core::Response]
1254
+ #
1255
+ define_client_method :respond_activity_task_completed, 'RespondActivityTaskCompleted'
1256
+
1257
+ # Calls the RespondActivityTaskFailed API operation.
1258
+ # @method respond_activity_task_failed(options = {})
1259
+ #
1260
+ # === Options:
1261
+ #
1262
+ # * +:task_token+ - *required* - (String)
1263
+ # * +:reason+ - (String)
1264
+ # * +:details+ - (String)
1265
+ #
1266
+ # === Response Structure:
1267
+ #
1268
+ # This method returns no response data.
1269
+ #
1270
+ # @return [Core::Response]
1271
+ #
1272
+ define_client_method :respond_activity_task_failed, 'RespondActivityTaskFailed'
1273
+
1274
+ # Calls the RespondDecisionTaskCompleted API operation.
1275
+ # @method respond_decision_task_completed(options = {})
1276
+ #
1277
+ # === Options:
1278
+ #
1279
+ # * +:task_token+ - *required* - (String)
1280
+ # * +:decisions+ - (Array<Hash>)
1281
+ # * +:decision_type+ - *required* - (String)
1282
+ # * +:schedule_activity_task_decision_attributes+ - (Hash)
1283
+ # * +:activity_type+ - *required* - (Hash)
1284
+ # * +:name+ - *required* - (String)
1285
+ # * +:version+ - *required* - (String)
1286
+ # * +:activity_id+ - *required* - (String)
1287
+ # * +:control+ - (String)
1288
+ # * +:input+ - (String)
1289
+ # * +:schedule_to_close_timeout+ - (String)
1290
+ # * +:task_list+ - (Hash)
1291
+ # * +:name+ - *required* - (String)
1292
+ # * +:schedule_to_start_timeout+ - (String)
1293
+ # * +:start_to_close_timeout+ - (String)
1294
+ # * +:heartbeat_timeout+ - (String)
1295
+ # * +:request_cancel_activity_task_decision_attributes+ - (Hash)
1296
+ # * +:activity_id+ - *required* - (String)
1297
+ # * +:complete_workflow_execution_decision_attributes+ - (Hash)
1298
+ # * +:result+ - (String)
1299
+ # * +:fail_workflow_execution_decision_attributes+ - (Hash)
1300
+ # * +:reason+ - (String)
1301
+ # * +:details+ - (String)
1302
+ # * +:cancel_workflow_execution_decision_attributes+ - (Hash)
1303
+ # * +:details+ - (String)
1304
+ # * +:continue_as_new_workflow_execution_decision_attributes+ - (Hash)
1305
+ # * +:input+ - (String)
1306
+ # * +:execution_start_to_close_timeout+ - (String)
1307
+ # * +:task_list+ - (Hash)
1308
+ # * +:name+ - *required* - (String)
1309
+ # * +:task_start_to_close_timeout+ - (String)
1310
+ # * +:child_policy+ - (String)
1311
+ # * +:tag_list+ - (Array<String>)
1312
+ # * +:workflow_type_version+ - (String)
1313
+ # * +:record_marker_decision_attributes+ - (Hash)
1314
+ # * +:marker_name+ - *required* - (String)
1315
+ # * +:details+ - (String)
1316
+ # * +:start_timer_decision_attributes+ - (Hash)
1317
+ # * +:timer_id+ - *required* - (String)
1318
+ # * +:control+ - (String)
1319
+ # * +:start_to_fire_timeout+ - *required* - (String)
1320
+ # * +:cancel_timer_decision_attributes+ - (Hash)
1321
+ # * +:timer_id+ - *required* - (String)
1322
+ # * +:signal_external_workflow_execution_decision_attributes+ - (Hash)
1323
+ # * +:workflow_id+ - *required* - (String)
1324
+ # * +:run_id+ - (String)
1325
+ # * +:signal_name+ - *required* - (String)
1326
+ # * +:input+ - (String)
1327
+ # * +:control+ - (String)
1328
+ # * +:request_cancel_external_workflow_execution_decision_attributes+ - (Hash)
1329
+ # * +:workflow_id+ - *required* - (String)
1330
+ # * +:run_id+ - (String)
1331
+ # * +:control+ - (String)
1332
+ # * +:start_child_workflow_execution_decision_attributes+ - (Hash)
1333
+ # * +:workflow_type+ - *required* - (Hash)
1334
+ # * +:name+ - *required* - (String)
1335
+ # * +:version+ - *required* - (String)
1336
+ # * +:workflow_id+ - *required* - (String)
1337
+ # * +:control+ - (String)
1338
+ # * +:input+ - (String)
1339
+ # * +:execution_start_to_close_timeout+ - (String)
1340
+ # * +:task_list+ - (Hash)
1341
+ # * +:name+ - *required* - (String)
1342
+ # * +:task_start_to_close_timeout+ - (String)
1343
+ # * +:child_policy+ - (String)
1344
+ # * +:tag_list+ - (Array<String>)
1345
+ # * +:execution_context+ - (String)
1346
+ #
1347
+ # === Response Structure:
1348
+ #
1349
+ # This method returns no response data.
1350
+ #
1351
+ # @return [Core::Response]
1352
+ #
1353
+ define_client_method :respond_decision_task_completed, 'RespondDecisionTaskCompleted'
1354
+
1355
+ # Calls the SignalWorkflowExecution API operation.
1356
+ # @method signal_workflow_execution(options = {})
1357
+ #
1358
+ # === Options:
1359
+ #
1360
+ # * +:domain+ - *required* - (String)
1361
+ # * +:workflow_id+ - *required* - (String)
1362
+ # * +:run_id+ - (String)
1363
+ # * +:signal_name+ - *required* - (String)
1364
+ # * +:input+ - (String)
1365
+ #
1366
+ # === Response Structure:
1367
+ #
1368
+ # This method returns no response data.
1369
+ #
1370
+ # @return [Core::Response]
1371
+ #
1372
+ define_client_method :signal_workflow_execution, 'SignalWorkflowExecution'
1373
+
1374
+ # Calls the StartWorkflowExecution API operation.
1375
+ # @method start_workflow_execution(options = {})
1376
+ #
1377
+ # === Options:
1378
+ #
1379
+ # * +:domain+ - *required* - (String)
1380
+ # * +:workflow_id+ - *required* - (String)
1381
+ # * +:workflow_type+ - *required* - (Hash)
1382
+ # * +:name+ - *required* - (String)
1383
+ # * +:version+ - *required* - (String)
1384
+ # * +:task_list+ - (Hash)
1385
+ # * +:name+ - *required* - (String)
1386
+ # * +:input+ - (String)
1387
+ # * +:execution_start_to_close_timeout+ - (String)
1388
+ # * +:tag_list+ - (Array<String>)
1389
+ # * +:task_start_to_close_timeout+ - (String)
1390
+ # * +:child_policy+ - (String)
1391
+ #
1392
+ # === Response Structure:
1393
+ #
1394
+ # * +runId+ - (String)
1395
+ #
1396
+ # @return [Core::Response]
1397
+ #
1398
+ define_client_method :start_workflow_execution, 'StartWorkflowExecution'
1399
+
1400
+ # Calls the TerminateWorkflowExecution API operation.
1401
+ # @method terminate_workflow_execution(options = {})
1402
+ #
1403
+ # === Options:
1404
+ #
1405
+ # * +:domain+ - *required* - (String)
1406
+ # * +:workflow_id+ - *required* - (String)
1407
+ # * +:run_id+ - (String)
1408
+ # * +:reason+ - (String)
1409
+ # * +:details+ - (String)
1410
+ # * +:child_policy+ - (String)
1411
+ #
1412
+ # === Response Structure:
1413
+ #
1414
+ # This method returns no response data.
1415
+ #
1416
+ # @return [Core::Response]
1417
+ #
1418
+ define_client_method :terminate_workflow_execution, 'TerminateWorkflowExecution'
1419
+
1420
+ ## end client methods ##
1421
+
1422
+ protected
1423
+
1424
+ def cacheable_request? name, options
1425
+ if name == :poll_for_decision_task
1426
+ options.keys.include?(:next_page_token)
1427
+ else
1428
+ self.class::CACHEABLE_REQUESTS.include?(name)
1429
+ end
1430
+ end
1431
+
1432
+ end
1433
+ end
1434
+ end