aws-sdk 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. data/.yardopts +0 -1
  2. data/lib/aws/api_config/AutoScaling-2011-01-01.yml +772 -544
  3. data/lib/aws/api_config/CloudFormation-2010-05-15.yml +284 -185
  4. data/lib/aws/api_config/DynamoDB-2011-12-05.yml +458 -738
  5. data/lib/aws/api_config/EC2-2011-12-15.yml +3502 -2653
  6. data/lib/aws/api_config/ELB-2011-08-15.yml +484 -352
  7. data/lib/aws/api_config/IAM-2010-05-08.yml +899 -711
  8. data/lib/aws/api_config/SNS-2010-03-31.yml +235 -167
  9. data/lib/aws/api_config/SQS-2011-10-01.yml +290 -251
  10. data/lib/aws/api_config/STS-2011-06-15.yml +35 -41
  11. data/lib/aws/api_config/SimpleDB-2009-04-15.yml +290 -263
  12. data/lib/aws/api_config/SimpleEmailService-2010-12-01.yml +144 -130
  13. data/lib/aws/api_config/SimpleWorkflow-2012-01-25.yml +697 -1139
  14. data/lib/aws/auto_scaling/activity_collection.rb +1 -1
  15. data/lib/aws/auto_scaling/client.rb +724 -9
  16. data/lib/aws/auto_scaling/errors.rb +1 -5
  17. data/lib/aws/auto_scaling/group.rb +1 -1
  18. data/lib/aws/auto_scaling/group_collection.rb +1 -1
  19. data/lib/aws/auto_scaling/instance_collection.rb +1 -1
  20. data/lib/aws/auto_scaling/launch_configuration.rb +1 -1
  21. data/lib/aws/auto_scaling/launch_configuration_collection.rb +1 -1
  22. data/lib/aws/auto_scaling/notification_configuration_collection.rb +1 -1
  23. data/lib/aws/auto_scaling/request.rb +1 -2
  24. data/lib/aws/auto_scaling/scaling_policy_collection.rb +1 -1
  25. data/lib/aws/auto_scaling/scheduled_action_collection.rb +3 -3
  26. data/lib/aws/auto_scaling/tag_collection.rb +1 -1
  27. data/lib/aws/cloud_formation.rb +1 -18
  28. data/lib/aws/cloud_formation/client.rb +314 -8
  29. data/lib/aws/cloud_formation/errors.rb +1 -5
  30. data/lib/aws/cloud_formation/request.rb +1 -2
  31. data/lib/aws/cloud_formation/stack.rb +4 -3
  32. data/lib/aws/cloud_formation/stack_collection.rb +2 -2
  33. data/lib/aws/cloud_formation/stack_resource_collection.rb +1 -1
  34. data/lib/aws/cloud_formation/stack_resource_summary_collection.rb +2 -2
  35. data/lib/aws/cloud_formation/stack_summary_collection.rb +1 -1
  36. data/lib/aws/core.rb +29 -14
  37. data/lib/aws/core/async_handle.rb +11 -12
  38. data/lib/aws/core/client.rb +112 -102
  39. data/lib/aws/core/client/query_json.rb +110 -0
  40. data/lib/aws/core/client/query_xml.rb +122 -0
  41. data/lib/aws/core/data.rb +242 -0
  42. data/lib/aws/core/http/request.rb +7 -4
  43. data/lib/aws/core/lazy_error_classes.rb +60 -38
  44. data/lib/aws/core/option_grammar.rb +1 -0
  45. data/lib/aws/core/policy.rb +2 -1
  46. data/lib/aws/core/resource.rb +38 -33
  47. data/lib/aws/core/response.rb +109 -44
  48. data/lib/aws/core/signature/version_2.rb +42 -0
  49. data/lib/aws/core/signature/version_3.rb +73 -0
  50. data/lib/aws/core/signature/version_3_http.rb +72 -0
  51. data/lib/aws/core/signature/version_4.rb +138 -0
  52. data/lib/aws/core/uri_escape.rb +6 -9
  53. data/lib/aws/core/xml/frame.rb +242 -0
  54. data/lib/aws/core/xml/frame_stack.rb +85 -0
  55. data/lib/aws/core/xml/grammar.rb +299 -0
  56. data/lib/aws/core/xml/parser.rb +70 -0
  57. data/lib/aws/core/xml/root_frame.rb +65 -0
  58. data/lib/aws/core/{configured_xml_grammars.rb → xml/sax_handlers/libxml.rb} +22 -20
  59. data/lib/aws/core/xml/sax_handlers/nokogiri.rb +55 -0
  60. data/lib/aws/core/{authorize_with_session_token.rb → xml/sax_handlers/ox.rb} +19 -7
  61. data/lib/aws/core/{configured_option_grammars.rb → xml/sax_handlers/rexml.rb} +22 -23
  62. data/lib/aws/core/xml/stub.rb +123 -0
  63. data/lib/aws/dynamo_db/batch_get.rb +1 -1
  64. data/lib/aws/dynamo_db/client.rb +796 -14
  65. data/lib/aws/dynamo_db/errors.rb +1 -38
  66. data/lib/aws/dynamo_db/item_collection.rb +29 -28
  67. data/lib/aws/dynamo_db/request.rb +3 -53
  68. data/lib/aws/dynamo_db/table.rb +6 -2
  69. data/lib/aws/ec2/attachment.rb +1 -1
  70. data/lib/aws/ec2/client.rb +3954 -9
  71. data/lib/aws/ec2/dhcp_options.rb +3 -3
  72. data/lib/aws/ec2/errors.rb +10 -4
  73. data/lib/aws/ec2/instance.rb +7 -6
  74. data/lib/aws/ec2/instance_collection.rb +2 -2
  75. data/lib/aws/ec2/key_pair_collection.rb +3 -3
  76. data/lib/aws/ec2/network_acl.rb +4 -2
  77. data/lib/aws/ec2/network_acl/entry.rb +10 -10
  78. data/lib/aws/ec2/network_interface.rb +2 -3
  79. data/lib/aws/ec2/network_interface/attachment.rb +8 -8
  80. data/lib/aws/ec2/permission_collection.rb +3 -3
  81. data/lib/aws/ec2/request.rb +1 -3
  82. data/lib/aws/ec2/resource_tag_collection.rb +4 -8
  83. data/lib/aws/ec2/route_table.rb +3 -2
  84. data/lib/aws/ec2/route_table/route.rb +7 -7
  85. data/lib/aws/ec2/security_group.rb +2 -2
  86. data/lib/aws/ec2/security_group/egress_ip_permission_collection.rb +16 -5
  87. data/lib/aws/ec2/security_group/ingress_ip_permission_collection.rb +4 -3
  88. data/lib/aws/ec2/security_group/ip_permission.rb +1 -2
  89. data/lib/aws/ec2/snapshot_collection.rb +6 -3
  90. data/lib/aws/ec2/subnet.rb +1 -1
  91. data/lib/aws/ec2/volume.rb +1 -3
  92. data/lib/aws/ec2/volume_collection.rb +2 -0
  93. data/lib/aws/elb/availability_zone_collection.rb +2 -2
  94. data/lib/aws/elb/backend_server_policy_collection.rb +1 -1
  95. data/lib/aws/elb/client.rb +513 -9
  96. data/lib/aws/elb/errors.rb +2 -6
  97. data/lib/aws/elb/instance_collection.rb +2 -2
  98. data/lib/aws/elb/request.rb +1 -1
  99. data/lib/aws/errors.rb +61 -74
  100. data/lib/aws/iam.rb +2 -3
  101. data/lib/aws/iam/client.rb +1178 -10
  102. data/lib/aws/iam/collection.rb +2 -1
  103. data/lib/aws/iam/errors.rb +1 -6
  104. data/lib/aws/iam/group.rb +8 -9
  105. data/lib/aws/iam/request.rb +1 -1
  106. data/lib/aws/iam/server_certificate_collection.rb +8 -5
  107. data/lib/aws/iam/signing_certificate.rb +1 -1
  108. data/lib/aws/iam/user.rb +2 -2
  109. data/lib/aws/iam/user_policy.rb +3 -2
  110. data/lib/aws/rails.rb +1 -2
  111. data/lib/aws/record.rb +3 -3
  112. data/lib/aws/record/abstract_base.rb +0 -3
  113. data/lib/aws/record/attributes.rb +7 -7
  114. data/lib/aws/record/model.rb +19 -19
  115. data/lib/aws/record/model/finder_methods.rb +7 -7
  116. data/lib/aws/s3/bucket.rb +7 -2
  117. data/lib/aws/s3/client.rb +391 -398
  118. data/lib/aws/s3/client/xml.rb +44 -71
  119. data/lib/aws/s3/data_options.rb +3 -2
  120. data/lib/aws/s3/errors.rb +8 -11
  121. data/lib/aws/s3/multipart_upload_collection.rb +1 -3
  122. data/lib/aws/s3/object_collection.rb +2 -1
  123. data/lib/aws/s3/object_metadata.rb +2 -2
  124. data/lib/aws/s3/paginated_collection.rb +2 -2
  125. data/lib/aws/s3/prefix_and_delimiter_collection.rb +1 -1
  126. data/lib/aws/s3/presigned_post.rb +18 -17
  127. data/lib/aws/s3/request.rb +4 -3
  128. data/lib/aws/s3/s3_object.rb +8 -10
  129. data/lib/aws/simple_db/attribute.rb +2 -2
  130. data/lib/aws/simple_db/attribute_collection.rb +14 -4
  131. data/lib/aws/simple_db/client.rb +313 -14
  132. data/lib/aws/simple_db/domain.rb +1 -1
  133. data/lib/aws/simple_db/domain_collection.rb +4 -4
  134. data/lib/aws/simple_db/domain_metadata.rb +1 -1
  135. data/lib/aws/simple_db/errors.rb +14 -2
  136. data/lib/aws/simple_db/expect_condition_option.rb +1 -1
  137. data/lib/aws/simple_db/item.rb +1 -1
  138. data/lib/aws/simple_db/item_collection.rb +9 -9
  139. data/lib/aws/simple_db/item_data.rb +9 -6
  140. data/lib/aws/simple_db/request.rb +1 -1
  141. data/lib/aws/simple_email_service.rb +8 -7
  142. data/lib/aws/simple_email_service/client.rb +174 -9
  143. data/lib/aws/simple_email_service/email_address_collection.rb +0 -1
  144. data/lib/aws/simple_email_service/errors.rb +1 -5
  145. data/lib/aws/simple_email_service/quotas.rb +8 -6
  146. data/lib/aws/simple_email_service/request.rb +7 -1
  147. data/lib/aws/simple_workflow/client.rb +1383 -6
  148. data/lib/aws/simple_workflow/decision_task.rb +1 -3
  149. data/lib/aws/simple_workflow/errors.rb +1 -38
  150. data/lib/aws/simple_workflow/history_event_collection.rb +2 -2
  151. data/lib/aws/simple_workflow/request.rb +5 -49
  152. data/lib/aws/simple_workflow/type.rb +1 -1
  153. data/lib/aws/simple_workflow/type_collection.rb +4 -3
  154. data/lib/aws/simple_workflow/workflow_execution_collection.rb +2 -2
  155. data/lib/aws/sns/client.rb +345 -9
  156. data/lib/aws/sns/errors.rb +1 -5
  157. data/lib/aws/sns/request.rb +1 -2
  158. data/lib/aws/sns/subscription_collection.rb +2 -2
  159. data/lib/aws/sns/topic.rb +15 -14
  160. data/lib/aws/sns/topic_collection.rb +1 -1
  161. data/lib/aws/sqs/client.rb +334 -9
  162. data/lib/aws/sqs/errors.rb +1 -6
  163. data/lib/aws/sqs/queue.rb +20 -21
  164. data/lib/aws/sqs/queue_collection.rb +3 -3
  165. data/lib/aws/sqs/request.rb +2 -2
  166. data/lib/aws/sts.rb +8 -10
  167. data/lib/aws/sts/client.rb +67 -10
  168. data/lib/aws/sts/errors.rb +1 -5
  169. data/lib/aws/sts/request.rb +1 -1
  170. data/lib/user.rb +49 -0
  171. metadata +21 -28
  172. data/lib/aws/auto_scaling/client/xml.rb +0 -32
  173. data/lib/aws/cloud_formation/client/xml.rb +0 -32
  174. data/lib/aws/core/api_config.rb +0 -44
  175. data/lib/aws/core/authorize_v2.rb +0 -39
  176. data/lib/aws/core/authorize_v3.rb +0 -38
  177. data/lib/aws/core/authorize_v4.rb +0 -149
  178. data/lib/aws/core/configured_client_methods.rb +0 -76
  179. data/lib/aws/core/configured_grammars.rb +0 -63
  180. data/lib/aws/core/configured_json_client_methods.rb +0 -74
  181. data/lib/aws/core/ignore_result_element.rb +0 -34
  182. data/lib/aws/core/json_client.rb +0 -41
  183. data/lib/aws/core/xml_grammar.rb +0 -957
  184. data/lib/aws/ec2/client/xml.rb +0 -175
  185. data/lib/aws/elb/client/xml.rb +0 -33
  186. data/lib/aws/elb/listener_spec.rb +0 -14
  187. data/lib/aws/iam/client/xml.rb +0 -34
  188. data/lib/aws/simple_db/client/options.rb +0 -32
  189. data/lib/aws/simple_db/client/xml.rb +0 -63
  190. data/lib/aws/simple_email_service/client/xml.rb +0 -34
  191. data/lib/aws/sns/client/xml.rb +0 -34
  192. data/lib/aws/sqs/client/xml.rb +0 -33
  193. data/lib/aws/sts/client/xml.rb +0 -34
@@ -36,7 +36,7 @@ module AWS
36
36
  }
37
37
  end
38
38
  end
39
- expected
39
+ expected.empty? ? {} : expected.first
40
40
  end
41
41
 
42
42
  end
@@ -76,7 +76,7 @@ module AWS
76
76
  get_opts[:item_name] = name
77
77
  get_opts[:consistent_read] = consistent_read(options)
78
78
  r = client.get_attributes(get_opts)
79
- ItemData.new(:name => name, :domain => domain, :response_object => r)
79
+ ItemData.new(:name => name, :domain => domain, :response_object => r.data)
80
80
  end
81
81
 
82
82
  def == other
@@ -62,12 +62,12 @@ module AWS
62
62
  # 'colors' => ['red', 'blue'],
63
63
  # 'category' => 'clearance'})
64
64
  #
65
- # @overload create(item_name, attribute_hash)
66
- # @param [String] item_name The name of the item as you want it stored
67
- # in SimpleDB.
68
- # @param [Hash] attribute_hash A hash of attribute names and values
69
- # you want to store in SimpleDB.
70
- # @return [Item] Returns a reference to the object that was created.
65
+ # @overload create(item_name, attributes)
66
+ # @param [String] item_name The name of the item as you want it stored
67
+ # in SimpleDB.
68
+ # @param [Hash] attributes A hash of attribute names and values
69
+ # you want to store in SimpleDB.
70
+ # @return [Item] Returns a reference to the object that was created.
71
71
  def create item_name, *args
72
72
  item = self[item_name]
73
73
  item.attributes.replace(*args)
@@ -224,7 +224,7 @@ module AWS
224
224
  count += count_attribute.value.to_i
225
225
  end
226
226
 
227
- break unless next_token = response.next_token
227
+ break unless next_token = response[:next_token]
228
228
 
229
229
  end while limit.nil? || count < limit
230
230
 
@@ -263,7 +263,7 @@ module AWS
263
263
  # with #attribute hashes, instead of {Item} objects with
264
264
  # an item name.
265
265
  #
266
- # @param *attributes [Symbol, String, or Array] The attributes to
266
+ # @param [Symbol, String, or Array] attributes The attributes to
267
267
  # retrieve. This can be:
268
268
  #
269
269
  # * +:all+ or '*' to request all attributes for each item
@@ -496,7 +496,7 @@ module AWS
496
496
  end
497
497
  end
498
498
 
499
- response.next_token
499
+ response[:next_token]
500
500
 
501
501
  end
502
502
 
@@ -36,12 +36,15 @@ module AWS
36
36
  @domain = opts[:domain]
37
37
 
38
38
  if obj = opts[:response_object]
39
- @name ||= obj.name if obj.respond_to?(:name)
40
- if obj.respond_to?(:attributes)
41
- @attributes ||= obj.attributes.inject({}) do |m, att|
42
- m[att.name] ||= []
43
- m[att.name] << att.value
44
- m
39
+ @name ||= obj[:name]
40
+ if obj[:attributes]
41
+ @attributes ||= begin
42
+ attributes = {}
43
+ obj[:attributes].each do |attr|
44
+ attributes[attr[:name]] ||= []
45
+ attributes[attr[:name]] << attr[:value]
46
+ end
47
+ attributes
45
48
  end
46
49
  end
47
50
  end
@@ -16,7 +16,7 @@ module AWS
16
16
 
17
17
  # @private
18
18
  class Request < Core::Http::Request
19
- include Core::AuthorizeV2
19
+ include Core::Signature::Version2
20
20
  end
21
21
 
22
22
  end
@@ -327,13 +327,14 @@ module AWS
327
327
  #
328
328
  # @return [Array of Hashes] An array of email statistic hashes.
329
329
  def statistics
330
- client.get_send_statistics.send_data_points.inject([]) do |stats, data|
331
- stats << {
332
- :sent => data.timestamp,
333
- :delivery_attempts => data.delivery_attempts,
334
- :rejects => data.rejects,
335
- :bounces => data.bounces,
336
- :complaints => data.complaints,
330
+ response = client.get_send_statistics
331
+ response.data[:send_data_points].collect do |data|
332
+ {
333
+ :sent => data[:timestamp],
334
+ :delivery_attempts => data[:delivery_attempts],
335
+ :rejects => data[:rejects],
336
+ :bounces => data[:bounces],
337
+ :complaints => data[:complaints],
337
338
  }
338
339
  end
339
340
  end
@@ -14,22 +14,187 @@
14
14
  module AWS
15
15
  class SimpleEmailService
16
16
 
17
- # @private
17
+ # Client class for Amazon Simple E-mail Service (SES).
18
18
  class Client < Core::Client
19
19
 
20
- AWS.register_autoloads(self, 'aws/simple_email_service/client') do
21
- autoload :XML, 'xml'
22
- end
23
-
24
- include Core::ConfiguredClientMethods
25
-
26
20
  API_VERSION = '2010-12-01'
27
21
 
22
+ extend Core::Client::QueryXML
23
+
28
24
  REGION_US_E1 = 'email.us-east-1.amazonaws.com'
29
25
 
30
- REQUEST_CLASS = SimpleEmailService::Request
26
+ # @private
27
+ CACHEABLE_REQUESTS = Set[]
28
+
29
+ ## client methods ##
30
+
31
+ # Calls the DeleteVerifiedEmailAddress API operation.
32
+ # @method delete_verified_email_address(options = {})
33
+ #
34
+ # === Options:
35
+ #
36
+ # * +:email_address+ - *required* - (String) An email address to be
37
+ # removed from the list of verified addreses.
38
+ #
39
+ # === Response Structure:
40
+ #
41
+ # This method returns no response data.
42
+ #
43
+ # @return [Core::Response]
44
+ #
45
+ define_client_method :delete_verified_email_address, 'DeleteVerifiedEmailAddress'
46
+
47
+ # Calls the GetSendQuota API operation.
48
+ # @method get_send_quota(options = {})
49
+ #
50
+ # === Options:
51
+ #
52
+ # This method accepts no options.
53
+ #
54
+ # === Response Structure:
55
+ #
56
+ # * +:max_24_hour_send+ - (Numeric)
57
+ # * +:max_send_rate+ - (Numeric)
58
+ # * +:sent_last_24_hours+ - (Numeric)
59
+ #
60
+ # @return [Core::Response]
61
+ #
62
+ define_client_method :get_send_quota, 'GetSendQuota'
63
+
64
+ # Calls the GetSendStatistics API operation.
65
+ # @method get_send_statistics(options = {})
66
+ #
67
+ # === Options:
68
+ #
69
+ # This method accepts no options.
70
+ #
71
+ # === Response Structure:
72
+ #
73
+ # * +:send_data_points+ - (Array<Hash>)
74
+ # * +:timestamp+ - (Time)
75
+ # * +:delivery_attempts+ - (Integer)
76
+ # * +:bounces+ - (Integer)
77
+ # * +:complaints+ - (Integer)
78
+ # * +:rejects+ - (Integer)
79
+ #
80
+ # @return [Core::Response]
81
+ #
82
+ define_client_method :get_send_statistics, 'GetSendStatistics'
83
+
84
+ # Calls the ListVerifiedEmailAddresses API operation.
85
+ # @method list_verified_email_addresses(options = {})
86
+ #
87
+ # === Options:
88
+ #
89
+ # This method accepts no options.
90
+ #
91
+ # === Response Structure:
92
+ #
93
+ # * +:verified_email_addresses+ - (Array<String>)
94
+ #
95
+ # @return [Core::Response]
96
+ #
97
+ define_client_method :list_verified_email_addresses, 'ListVerifiedEmailAddresses'
98
+
99
+ # Calls the SendEmail API operation.
100
+ # @method send_email(options = {})
101
+ #
102
+ # === Options:
103
+ #
104
+ # * +:source+ - *required* - (String) The sender's email address.
105
+ # * +:destination+ - *required* - (Hash) The destination for this email,
106
+ # composed of To:, CC:, and BCC: fields.
107
+ # * +:to_addresses+ - (Array<String>) The To: field(s) of the message.
108
+ # * +:cc_addresses+ - (Array<String>) The CC: field(s) of the message.
109
+ # * +:bcc_addresses+ - (Array<String>) The BCC: field(s) of the
110
+ # message.
111
+ # * +:message+ - *required* - (Hash) The message to be sent.
112
+ # * +:subject+ - *required* - (Hash) The subject of the message: A
113
+ # short summary of the content, which will appear in the recipient's
114
+ # inbox.
115
+ # * +:data+ - *required* - (String) The textual data of the content.
116
+ # * +:charset+ - (String) The character set of the content.
117
+ # * +:body+ - *required* - (Hash) The message body.
118
+ # * +:text+ - (Hash) The content of the message, in text format. Use
119
+ # this for text-based email clients, or clients on high-latency
120
+ # networks (such as mobile devices).
121
+ # * +:data+ - *required* - (String) The textual data of the
122
+ # content.
123
+ # * +:charset+ - (String) The character set of the content.
124
+ # * +:html+ - (Hash) The content of the message, in HTML format. Use
125
+ # this for email clients that can process HTML. You can include
126
+ # clickable links, formatted text, and much more in an HTML
127
+ # message.
128
+ # * +:data+ - *required* - (String) The textual data of the
129
+ # content.
130
+ # * +:charset+ - (String) The character set of the content.
131
+ # * +:reply_to_addresses+ - (Array<String>) The reply-to email
132
+ # address(es) for the message. If the recipient replies to the message,
133
+ # each reply-to address will receive the reply.
134
+ # * +:return_path+ - (String) The email address to which bounce
135
+ # notifications are to be forwarded. If the message cannot be delivered
136
+ # to the recipient, then an error message will be returned from the
137
+ # recipient's ISP; this message will then be forwarded to the email
138
+ # address specified by the ReturnPath parameter.
139
+ #
140
+ # === Response Structure:
141
+ #
142
+ # * +:message_id+ - (String)
143
+ #
144
+ # @return [Core::Response]
145
+ #
146
+ define_client_method :send_email, 'SendEmail'
147
+
148
+ # Calls the SendRawEmail API operation.
149
+ # @method send_raw_email(options = {})
150
+ #
151
+ # === Options:
152
+ #
153
+ # * +:source+ - (String) The sender's email address. If you specify the
154
+ # Source parameter, then bounce notifications and complaints will be
155
+ # sent to this email address. This takes precedence over any
156
+ # Return-Path header that you might include in the raw text of the
157
+ # message.
158
+ # * +:destinations+ - (Array<String>) A list of destinations for the
159
+ # message.
160
+ # * +:raw_message+ - *required* - (Hash) The raw text of the message. The
161
+ # client is responsible for ensuring the following: Message must
162
+ # contain a header and a body, separated by a blank line. All required
163
+ # header fields must be present. Each part of a multipart MIME message
164
+ # must be formatted properly. MIME content types must be among those
165
+ # supported by Amazon SES. Refer to the Amazon SES Developer Guide for
166
+ # more details. Content must be base64-encoded, if MIME requires it.
167
+ # * +:data+ - *required* - (String) The raw data of the message. The
168
+ # client must ensure that the message format complies with Internet
169
+ # email standards regarding email header fields, MIME types, MIME
170
+ # encoding, and base64 encoding (if necessary). For more information,
171
+ # go to the Amazon SES Developer Guide.
172
+ #
173
+ # === Response Structure:
174
+ #
175
+ # * +:message_id+ - (String)
176
+ #
177
+ # @return [Core::Response]
178
+ #
179
+ define_client_method :send_raw_email, 'SendRawEmail'
180
+
181
+ # Calls the VerifyEmailAddress API operation.
182
+ # @method verify_email_address(options = {})
183
+ #
184
+ # === Options:
185
+ #
186
+ # * +:email_address+ - *required* - (String) The email address to be
187
+ # verified.
188
+ #
189
+ # === Response Structure:
190
+ #
191
+ # This method returns no response data.
192
+ #
193
+ # @return [Core::Response]
194
+ #
195
+ define_client_method :verify_email_address, 'VerifyEmailAddress'
31
196
 
32
- configure_client
197
+ ## end client methods ##
33
198
 
34
199
  end
35
200
  end
@@ -30,7 +30,6 @@ module AWS
30
30
  client.verify_email_address(:email_address => email_address)
31
31
  nil
32
32
  end
33
-
34
33
  alias_method :create, :verify
35
34
 
36
35
  # @param [String] email_address An email address to remove from the list
@@ -13,13 +13,9 @@
13
13
 
14
14
  module AWS
15
15
  class SimpleEmailService
16
-
17
- # @private
18
16
  module Errors
19
17
 
20
- BASE_ERROR_GRAMMAR = Client::XML::BaseError
21
-
22
- include Core::LazyErrorClasses
18
+ extend Core::LazyErrorClasses
23
19
 
24
20
  end
25
21
  end
@@ -37,24 +37,26 @@ module AWS
37
37
  to_h[:sent_last_24_hours]
38
38
  end
39
39
 
40
- # @example
40
+ # Returns a hash of the SES quotas.
41
41
  #
42
- # @ses.quotas.to_h
42
+ # @ses.quotas.to_hash
43
43
  # # {:max_24_hour_send=>200, :max_send_rate=>1.0, :sent_last_24_hours=>22}
44
44
  #
45
- # @return [Hash] Returns a hash of the SES quotas.
46
- def to_h
47
- response = client.get_send_quota({})
45
+ # @return [Hash]
46
+ #
47
+ def to_hash
48
+ response = client.get_send_quota
48
49
  {
49
50
  :max_24_hour_send => response.max_24_hour_send.to_i,
50
51
  :max_send_rate => response.max_send_rate.to_f,
51
52
  :sent_last_24_hours => response.sent_last_24_hours.to_i,
52
53
  }
53
54
  end
55
+ alias_method :to_h, :to_hash
54
56
 
55
57
  # @private
56
58
  def inspect
57
- "<#{self.class} #{to_h.inspect}>"
59
+ "<#{self.class} #{to_hash.inspect}>"
58
60
  end
59
61
 
60
62
  end
@@ -16,7 +16,13 @@ module AWS
16
16
 
17
17
  # @private
18
18
  class Request < Core::Http::Request
19
- include Core::AuthorizeV3
19
+
20
+ include Core::Signature::Version4
21
+
22
+ def service
23
+ 'ses'
24
+ end
25
+
20
26
  end
21
27
 
22
28
  end
@@ -14,15 +14,17 @@
14
14
  module AWS
15
15
  class SimpleWorkflow
16
16
 
17
- # @private
18
- class Client < Core::JsonClient
17
+ # Client class for Amazon Simple Workflow Service (SWF).
18
+ class Client < Core::Client
19
19
 
20
20
  API_VERSION = '2012-01-25'
21
21
 
22
- TARGET_PREFIX = "SimpleWorkflowService."
22
+ extend Core::Client::QueryJSON
23
23
 
24
- REQUEST_CLASS = SimpleWorkflow::Request
24
+ # @private
25
+ TARGET_PREFIX = "SimpleWorkflowService."
25
26
 
27
+ # @private
26
28
  CACHEABLE_REQUESTS = Set[
27
29
  :count_pending_activity_tasks,
28
30
  :count_pending_decision_tasks,
@@ -41,9 +43,1384 @@ module AWS
41
43
  :list_workfow_types,
42
44
  ]
43
45
 
44
- configure_client
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
45
1423
 
46
- private
47
1424
  def cacheable_request? name, options
48
1425
  if name == :poll_for_decision_task
49
1426
  options.keys.include?(:next_page_token)