aws-sdk 1.11.2 → 1.11.3

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.
@@ -1384,12 +1384,16 @@ module AWS
1384
1384
  end
1385
1385
  end
1386
1386
 
1387
+ def empty_response_body? response_body
1388
+ response_body.nil? or response_body == ''
1389
+ end
1390
+
1387
1391
  # There are a few of s3 requests that can generate empty bodies and
1388
1392
  # yet still be errors. These return empty bodies to comply with the
1389
1393
  # HTTP spec. We have to detect these errors specially.
1390
1394
  def populate_error resp
1391
1395
  code = resp.http_response.status
1392
- if EMPTY_BODY_ERRORS.include?(code) and resp.http_response.body.nil?
1396
+ if EMPTY_BODY_ERRORS.include?(code) and empty_response_body?(resp.http_response.body)
1393
1397
  error_class = EMPTY_BODY_ERRORS[code]
1394
1398
  resp.error = error_class.new(resp.http_request, resp.http_response)
1395
1399
  else
@@ -117,7 +117,6 @@ module AWS
117
117
  #
118
118
  # ## Server Side Encryption
119
119
  #
120
- # Amazon S3 provides server side encryption for an additional cost.
121
120
  # You can specify to use server side encryption when writing an object.
122
121
  #
123
122
  # obj.write('data', :server_side_encryption => :aes256)
@@ -57,6 +57,7 @@ module AWS
57
57
  # @!method batch_delete_attributes(options = {})
58
58
  # Calls the BatchDeleteAttributes API operation.
59
59
  # @param [Hash] options
60
+ #
60
61
  # * `:domain_name` - *required* - (String) The name of the domain in
61
62
  # which the attributes are being deleted.
62
63
  # * `:items` - *required* - (Array<Hash>) A list of items on which to
@@ -76,6 +77,7 @@ module AWS
76
77
  # @!method batch_put_attributes(options = {})
77
78
  # Calls the BatchPutAttributes API operation.
78
79
  # @param [Hash] options
80
+ #
79
81
  # * `:domain_name` - *required* - (String) The name of the domain in
80
82
  # which the attributes are being stored.
81
83
  # * `:items` - *required* - (Array<Hash>) A list of items on which to
@@ -101,6 +103,7 @@ module AWS
101
103
  # @!method create_domain(options = {})
102
104
  # Calls the CreateDomain API operation.
103
105
  # @param [Hash] options
106
+ #
104
107
  # * `:domain_name` - *required* - (String) The name of the domain to
105
108
  # create. The name can range between 3 and 255 characters and can
106
109
  # contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.
@@ -115,6 +118,7 @@ module AWS
115
118
  # @!method delete_attributes(options = {})
116
119
  # Calls the DeleteAttributes API operation.
117
120
  # @param [Hash] options
121
+ #
118
122
  # * `:domain_name` - *required* - (String) The name of the domain in
119
123
  # which to perform the operation.
120
124
  # * `:item_name` - *required* - (String) The name of the item. Similar
@@ -150,6 +154,7 @@ module AWS
150
154
  # @!method delete_domain(options = {})
151
155
  # Calls the DeleteDomain API operation.
152
156
  # @param [Hash] options
157
+ #
153
158
  # * `:domain_name` - *required* - (String) The name of the domain to
154
159
  # delete.
155
160
  # @return [Core::Response]
@@ -163,6 +168,7 @@ module AWS
163
168
  # @!method domain_metadata(options = {})
164
169
  # Calls the DomainMetadata API operation.
165
170
  # @param [Hash] options
171
+ #
166
172
  # * `:domain_name` - *required* - (String) The name of the domain for
167
173
  # which to display the metadata of.
168
174
  # @return [Core::Response]
@@ -183,6 +189,7 @@ module AWS
183
189
  # @!method get_attributes(options = {})
184
190
  # Calls the GetAttributes API operation.
185
191
  # @param [Hash] options
192
+ #
186
193
  # * `:domain_name` - *required* - (String) The name of the domain in
187
194
  # which to perform the operation.
188
195
  # * `:item_name` - *required* - (String) The name of the item.
@@ -208,6 +215,7 @@ module AWS
208
215
  # @!method list_domains(options = {})
209
216
  # Calls the ListDomains API operation.
210
217
  # @param [Hash] options
218
+ #
211
219
  # * `:max_number_of_domains` - (Integer) The maximum number of domain
212
220
  # names you want returned. The range is 1 to 100. The default setting
213
221
  # is 100.
@@ -226,6 +234,7 @@ module AWS
226
234
  # @!method put_attributes(options = {})
227
235
  # Calls the PutAttributes API operation.
228
236
  # @param [Hash] options
237
+ #
229
238
  # * `:domain_name` - *required* - (String) The name of the domain in
230
239
  # which to perform the operation.
231
240
  # * `:item_name` - *required* - (String) The name of the item.
@@ -262,6 +271,7 @@ module AWS
262
271
  # @!method select(options = {})
263
272
  # Calls the Select API operation.
264
273
  # @param [Hash] options
274
+ #
265
275
  # * `:select_expression` - *required* - (String) The expression used to
266
276
  # query the domain.
267
277
  # * `:next_token` - (String) A string informing Amazon SimpleDB where
@@ -27,6 +27,7 @@ module AWS
27
27
  # @!method delete_identity(options = {})
28
28
  # Calls the DeleteIdentity API operation.
29
29
  # @param [Hash] options
30
+ #
30
31
  # * `:identity` - *required* - (String) The identity to be removed from
31
32
  # the list of identities for the AWS Account.
32
33
  # @return [Core::Response]
@@ -34,6 +35,7 @@ module AWS
34
35
  # @!method delete_verified_email_address(options = {})
35
36
  # Calls the DeleteVerifiedEmailAddress API operation.
36
37
  # @param [Hash] options
38
+ #
37
39
  # * `:email_address` - *required* - (String) An email address to be
38
40
  # removed from the list of verified addresses.
39
41
  # @return [Core::Response]
@@ -41,6 +43,7 @@ module AWS
41
43
  # @!method get_identity_dkim_attributes(options = {})
42
44
  # Calls the GetIdentityDkimAttributes API operation.
43
45
  # @param [Hash] options
46
+ #
44
47
  # * `:identities` - *required* - (Array<String>) A list of one or more
45
48
  # verified identities - email addresses, domains, or both.
46
49
  # @return [Core::Response]
@@ -55,6 +58,7 @@ module AWS
55
58
  # @!method get_identity_notification_attributes(options = {})
56
59
  # Calls the GetIdentityNotificationAttributes API operation.
57
60
  # @param [Hash] options
61
+ #
58
62
  # * `:identities` - *required* - (Array<String>) A list of one or more
59
63
  # identities.
60
64
  # @return [Core::Response]
@@ -69,6 +73,7 @@ module AWS
69
73
  # @!method get_identity_verification_attributes(options = {})
70
74
  # Calls the GetIdentityVerificationAttributes API operation.
71
75
  # @param [Hash] options
76
+ #
72
77
  # * `:identities` - *required* - (Array<String>) A list of identities.
73
78
  # @return [Core::Response]
74
79
  # The #data method of the response object returns
@@ -81,6 +86,7 @@ module AWS
81
86
  # @!method get_send_quota(options = {})
82
87
  # Calls the GetSendQuota API operation.
83
88
  # @param [Hash] options
89
+ #
84
90
  # @return [Core::Response]
85
91
  # The #data method of the response object returns
86
92
  # a hash with the following structure:
@@ -92,6 +98,7 @@ module AWS
92
98
  # @!method get_send_statistics(options = {})
93
99
  # Calls the GetSendStatistics API operation.
94
100
  # @param [Hash] options
101
+ #
95
102
  # @return [Core::Response]
96
103
  # The #data method of the response object returns
97
104
  # a hash with the following structure:
@@ -106,6 +113,7 @@ module AWS
106
113
  # @!method list_identities(options = {})
107
114
  # Calls the ListIdentities API operation.
108
115
  # @param [Hash] options
116
+ #
109
117
  # * `:identity_type` - (String) The type of the identities to list.
110
118
  # Possible values are "EmailAddress" and "Domain". If this parameter
111
119
  # is omitted, then all identities will be listed. Valid values
@@ -125,6 +133,7 @@ module AWS
125
133
  # @!method list_verified_email_addresses(options = {})
126
134
  # Calls the ListVerifiedEmailAddresses API operation.
127
135
  # @param [Hash] options
136
+ #
128
137
  # @return [Core::Response]
129
138
  # The #data method of the response object returns
130
139
  # a hash with the following structure:
@@ -134,6 +143,7 @@ module AWS
134
143
  # @!method send_email(options = {})
135
144
  # Calls the SendEmail API operation.
136
145
  # @param [Hash] options
146
+ #
137
147
  # * `:source` - *required* - (String) The identity's email address.
138
148
  # * `:destination` - *required* - (Hash) The destination for this
139
149
  # email, composed of To:, CC:, and BCC: fields.
@@ -181,6 +191,7 @@ module AWS
181
191
  # @!method send_raw_email(options = {})
182
192
  # Calls the SendRawEmail API operation.
183
193
  # @param [Hash] options
194
+ #
184
195
  # * `:source` - (String) The identity's email address. If you specify
185
196
  # the Source parameter, then bounce notifications and complaints will
186
197
  # be sent to this email address. This takes precedence over any
@@ -210,6 +221,7 @@ module AWS
210
221
  # @!method set_identity_dkim_enabled(options = {})
211
222
  # Calls the SetIdentityDkimEnabled API operation.
212
223
  # @param [Hash] options
224
+ #
213
225
  # * `:identity` - *required* - (String) The identity for which DKIM
214
226
  # signing should be enabled or disabled.
215
227
  # * `:dkim_enabled` - *required* - (Boolean) Sets whether DKIM signing
@@ -220,6 +232,7 @@ module AWS
220
232
  # @!method set_identity_feedback_forwarding_enabled(options = {})
221
233
  # Calls the SetIdentityFeedbackForwardingEnabled API operation.
222
234
  # @param [Hash] options
235
+ #
223
236
  # * `:identity` - *required* - (String) The identity for which to set
224
237
  # feedback notification forwarding. Examples: user@example.com,
225
238
  # example.com.
@@ -236,6 +249,7 @@ module AWS
236
249
  # @!method set_identity_notification_topic(options = {})
237
250
  # Calls the SetIdentityNotificationTopic API operation.
238
251
  # @param [Hash] options
252
+ #
239
253
  # * `:identity` - *required* - (String) The identity for which the
240
254
  # topic will be set. Examples: user@example.com, example.com.
241
255
  # * `:notification_type` - *required* - (String) The type of feedback
@@ -252,6 +266,7 @@ module AWS
252
266
  # @!method verify_domain_dkim(options = {})
253
267
  # Calls the VerifyDomainDkim API operation.
254
268
  # @param [Hash] options
269
+ #
255
270
  # * `:domain` - *required* - (String) The name of the domain to be
256
271
  # verified for Easy DKIM signing.
257
272
  # @return [Core::Response]
@@ -263,6 +278,7 @@ module AWS
263
278
  # @!method verify_domain_identity(options = {})
264
279
  # Calls the VerifyDomainIdentity API operation.
265
280
  # @param [Hash] options
281
+ #
266
282
  # * `:domain` - *required* - (String) The domain to be verified.
267
283
  # @return [Core::Response]
268
284
  # The #data method of the response object returns
@@ -273,6 +289,7 @@ module AWS
273
289
  # @!method verify_email_address(options = {})
274
290
  # Calls the VerifyEmailAddress API operation.
275
291
  # @param [Hash] options
292
+ #
276
293
  # * `:email_address` - *required* - (String) The email address to be
277
294
  # verified.
278
295
  # @return [Core::Response]
@@ -280,6 +297,7 @@ module AWS
280
297
  # @!method verify_email_identity(options = {})
281
298
  # Calls the VerifyEmailIdentity API operation.
282
299
  # @param [Hash] options
300
+ #
283
301
  # * `:email_address` - *required* - (String) The email address to be
284
302
  # verified.
285
303
  # @return [Core::Response]
@@ -41,6 +41,7 @@ module AWS
41
41
  # @!method count_closed_workflow_executions(options = {})
42
42
  # Calls the CountClosedWorkflowExecutions API operation.
43
43
  # @param [Hash] options
44
+ #
44
45
  # * `:domain` - *required* - (String)
45
46
  # * `:start_time_filter` - (Hash)
46
47
  # * `:oldest_date` - *required* - (Integer<unix timestamp>)
@@ -73,6 +74,7 @@ module AWS
73
74
  # @!method count_open_workflow_executions(options = {})
74
75
  # Calls the CountOpenWorkflowExecutions API operation.
75
76
  # @param [Hash] options
77
+ #
76
78
  # * `:domain` - *required* - (String)
77
79
  # * `:start_time_filter` - *required* - (Hash)
78
80
  # * `:oldest_date` - *required* - (Integer<unix timestamp>)
@@ -94,6 +96,7 @@ module AWS
94
96
  # @!method count_pending_activity_tasks(options = {})
95
97
  # Calls the CountPendingActivityTasks API operation.
96
98
  # @param [Hash] options
99
+ #
97
100
  # * `:domain` - *required* - (String)
98
101
  # * `:task_list` - *required* - (Hash)
99
102
  # * `:name` - *required* - (String)
@@ -107,6 +110,7 @@ module AWS
107
110
  # @!method count_pending_decision_tasks(options = {})
108
111
  # Calls the CountPendingDecisionTasks API operation.
109
112
  # @param [Hash] options
113
+ #
110
114
  # * `:domain` - *required* - (String)
111
115
  # * `:task_list` - *required* - (Hash)
112
116
  # * `:name` - *required* - (String)
@@ -120,6 +124,7 @@ module AWS
120
124
  # @!method deprecate_activity_type(options = {})
121
125
  # Calls the DeprecateActivityType API operation.
122
126
  # @param [Hash] options
127
+ #
123
128
  # * `:domain` - *required* - (String)
124
129
  # * `:activity_type` - *required* - (Hash)
125
130
  # * `:name` - *required* - (String)
@@ -129,12 +134,14 @@ module AWS
129
134
  # @!method deprecate_domain(options = {})
130
135
  # Calls the DeprecateDomain API operation.
131
136
  # @param [Hash] options
137
+ #
132
138
  # * `:name` - *required* - (String)
133
139
  # @return [Core::Response]
134
140
 
135
141
  # @!method deprecate_workflow_type(options = {})
136
142
  # Calls the DeprecateWorkflowType API operation.
137
143
  # @param [Hash] options
144
+ #
138
145
  # * `:domain` - *required* - (String)
139
146
  # * `:workflow_type` - *required* - (Hash)
140
147
  # * `:name` - *required* - (String)
@@ -144,6 +151,7 @@ module AWS
144
151
  # @!method describe_activity_type(options = {})
145
152
  # Calls the DescribeActivityType API operation.
146
153
  # @param [Hash] options
154
+ #
147
155
  # * `:domain` - *required* - (String)
148
156
  # * `:activity_type` - *required* - (Hash)
149
157
  # * `:name` - *required* - (String)
@@ -171,6 +179,7 @@ module AWS
171
179
  # @!method describe_domain(options = {})
172
180
  # Calls the DescribeDomain API operation.
173
181
  # @param [Hash] options
182
+ #
174
183
  # * `:name` - *required* - (String)
175
184
  # @return [Core::Response]
176
185
  # The #data method of the response object returns
@@ -186,6 +195,7 @@ module AWS
186
195
  # @!method describe_workflow_execution(options = {})
187
196
  # Calls the DescribeWorkflowExecution API operation.
188
197
  # @param [Hash] options
198
+ #
189
199
  # * `:domain` - *required* - (String)
190
200
  # * `:execution` - *required* - (Hash)
191
201
  # * `:workflow_id` - *required* - (String)
@@ -227,6 +237,7 @@ module AWS
227
237
  # @!method describe_workflow_type(options = {})
228
238
  # Calls the DescribeWorkflowType API operation.
229
239
  # @param [Hash] options
240
+ #
230
241
  # * `:domain` - *required* - (String)
231
242
  # * `:workflow_type` - *required* - (Hash)
232
243
  # * `:name` - *required* - (String)
@@ -253,6 +264,7 @@ module AWS
253
264
  # @!method get_workflow_execution_history(options = {})
254
265
  # Calls the GetWorkflowExecutionHistory API operation.
255
266
  # @param [Hash] options
267
+ #
256
268
  # * `:domain` - *required* - (String)
257
269
  # * `:execution` - *required* - (Hash)
258
270
  # * `:workflow_id` - *required* - (String)
@@ -548,6 +560,7 @@ module AWS
548
560
  # @!method list_activity_types(options = {})
549
561
  # Calls the ListActivityTypes API operation.
550
562
  # @param [Hash] options
563
+ #
551
564
  # * `:domain` - *required* - (String)
552
565
  # * `:name` - (String)
553
566
  # * `:registration_status` - *required* - (String) Valid values
@@ -574,6 +587,7 @@ module AWS
574
587
  # @!method list_closed_workflow_executions(options = {})
575
588
  # Calls the ListClosedWorkflowExecutions API operation.
576
589
  # @param [Hash] options
590
+ #
577
591
  # * `:domain` - *required* - (String)
578
592
  # * `:start_time_filter` - (Hash)
579
593
  # * `:oldest_date` - *required* - (Integer<unix timestamp>)
@@ -624,6 +638,7 @@ module AWS
624
638
  # @!method list_domains(options = {})
625
639
  # Calls the ListDomains API operation.
626
640
  # @param [Hash] options
641
+ #
627
642
  # * `:next_page_token` - (String)
628
643
  # * `:registration_status` - *required* - (String) Valid values
629
644
  # include:
@@ -644,6 +659,7 @@ module AWS
644
659
  # @!method list_open_workflow_executions(options = {})
645
660
  # Calls the ListOpenWorkflowExecutions API operation.
646
661
  # @param [Hash] options
662
+ #
647
663
  # * `:domain` - *required* - (String)
648
664
  # * `:start_time_filter` - *required* - (Hash)
649
665
  # * `:oldest_date` - *required* - (Integer<unix timestamp>)
@@ -683,6 +699,7 @@ module AWS
683
699
  # @!method list_workflow_types(options = {})
684
700
  # Calls the ListWorkflowTypes API operation.
685
701
  # @param [Hash] options
702
+ #
686
703
  # * `:domain` - *required* - (String)
687
704
  # * `:name` - (String)
688
705
  # * `:registration_status` - *required* - (String) Valid values
@@ -709,6 +726,7 @@ module AWS
709
726
  # @!method poll_for_activity_task(options = {})
710
727
  # Calls the PollForActivityTask API operation.
711
728
  # @param [Hash] options
729
+ #
712
730
  # * `:domain` - *required* - (String)
713
731
  # * `:task_list` - *required* - (Hash)
714
732
  # * `:name` - *required* - (String)
@@ -731,6 +749,7 @@ module AWS
731
749
  # @!method poll_for_decision_task(options = {})
732
750
  # Calls the PollForDecisionTask API operation.
733
751
  # @param [Hash] options
752
+ #
734
753
  # * `:domain` - *required* - (String)
735
754
  # * `:task_list` - *required* - (Hash)
736
755
  # * `:name` - *required* - (String)
@@ -1035,6 +1054,7 @@ module AWS
1035
1054
  # @!method record_activity_task_heartbeat(options = {})
1036
1055
  # Calls the RecordActivityTaskHeartbeat API operation.
1037
1056
  # @param [Hash] options
1057
+ #
1038
1058
  # * `:task_token` - *required* - (String)
1039
1059
  # * `:details` - (String)
1040
1060
  # @return [Core::Response]
@@ -1046,6 +1066,7 @@ module AWS
1046
1066
  # @!method register_activity_type(options = {})
1047
1067
  # Calls the RegisterActivityType API operation.
1048
1068
  # @param [Hash] options
1069
+ #
1049
1070
  # * `:domain` - *required* - (String)
1050
1071
  # * `:name` - *required* - (String)
1051
1072
  # * `:version` - *required* - (String)
@@ -1061,6 +1082,7 @@ module AWS
1061
1082
  # @!method register_domain(options = {})
1062
1083
  # Calls the RegisterDomain API operation.
1063
1084
  # @param [Hash] options
1085
+ #
1064
1086
  # * `:name` - *required* - (String)
1065
1087
  # * `:description` - (String)
1066
1088
  # * `:workflow_execution_retention_period_in_days` - *required* - (String)
@@ -1069,6 +1091,7 @@ module AWS
1069
1091
  # @!method register_workflow_type(options = {})
1070
1092
  # Calls the RegisterWorkflowType API operation.
1071
1093
  # @param [Hash] options
1094
+ #
1072
1095
  # * `:domain` - *required* - (String)
1073
1096
  # * `:name` - *required* - (String)
1074
1097
  # * `:version` - *required* - (String)
@@ -1086,6 +1109,7 @@ module AWS
1086
1109
  # @!method request_cancel_workflow_execution(options = {})
1087
1110
  # Calls the RequestCancelWorkflowExecution API operation.
1088
1111
  # @param [Hash] options
1112
+ #
1089
1113
  # * `:domain` - *required* - (String)
1090
1114
  # * `:workflow_id` - *required* - (String)
1091
1115
  # * `:run_id` - (String)
@@ -1094,6 +1118,7 @@ module AWS
1094
1118
  # @!method respond_activity_task_canceled(options = {})
1095
1119
  # Calls the RespondActivityTaskCanceled API operation.
1096
1120
  # @param [Hash] options
1121
+ #
1097
1122
  # * `:task_token` - *required* - (String)
1098
1123
  # * `:details` - (String)
1099
1124
  # @return [Core::Response]
@@ -1101,6 +1126,7 @@ module AWS
1101
1126
  # @!method respond_activity_task_completed(options = {})
1102
1127
  # Calls the RespondActivityTaskCompleted API operation.
1103
1128
  # @param [Hash] options
1129
+ #
1104
1130
  # * `:task_token` - *required* - (String)
1105
1131
  # * `:result` - (String)
1106
1132
  # @return [Core::Response]
@@ -1108,6 +1134,7 @@ module AWS
1108
1134
  # @!method respond_activity_task_failed(options = {})
1109
1135
  # Calls the RespondActivityTaskFailed API operation.
1110
1136
  # @param [Hash] options
1137
+ #
1111
1138
  # * `:task_token` - *required* - (String)
1112
1139
  # * `:reason` - (String)
1113
1140
  # * `:details` - (String)
@@ -1116,6 +1143,7 @@ module AWS
1116
1143
  # @!method respond_decision_task_completed(options = {})
1117
1144
  # Calls the RespondDecisionTaskCompleted API operation.
1118
1145
  # @param [Hash] options
1146
+ #
1119
1147
  # * `:task_token` - *required* - (String)
1120
1148
  # * `:decisions` - (Array<Hash>)
1121
1149
  # * `:decision_type` - *required* - (String) Valid values include:
@@ -1206,6 +1234,7 @@ module AWS
1206
1234
  # @!method signal_workflow_execution(options = {})
1207
1235
  # Calls the SignalWorkflowExecution API operation.
1208
1236
  # @param [Hash] options
1237
+ #
1209
1238
  # * `:domain` - *required* - (String)
1210
1239
  # * `:workflow_id` - *required* - (String)
1211
1240
  # * `:run_id` - (String)
@@ -1216,6 +1245,7 @@ module AWS
1216
1245
  # @!method start_workflow_execution(options = {})
1217
1246
  # Calls the StartWorkflowExecution API operation.
1218
1247
  # @param [Hash] options
1248
+ #
1219
1249
  # * `:domain` - *required* - (String)
1220
1250
  # * `:workflow_id` - *required* - (String)
1221
1251
  # * `:workflow_type` - *required* - (Hash)
@@ -1240,6 +1270,7 @@ module AWS
1240
1270
  # @!method terminate_workflow_execution(options = {})
1241
1271
  # Calls the TerminateWorkflowExecution API operation.
1242
1272
  # @param [Hash] options
1273
+ #
1243
1274
  # * `:domain` - *required* - (String)
1244
1275
  # * `:workflow_id` - *required* - (String)
1245
1276
  # * `:run_id` - (String)