aws-sdk 1.8.5 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (386) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +1 -0
  3. data/README.rdoc +8 -0
  4. data/lib/aws-sdk.rb +39 -35
  5. data/lib/aws/api_config/CloudFront-2012-07-01.yml +2398 -0
  6. data/lib/aws/api_config/DirectConnect-2012-10-25.yml +475 -0
  7. data/lib/aws/api_config/DynamoDB-2011-12-05.yml +8 -0
  8. data/lib/aws/api_config/DynamoDB-2012-08-10.yml +1516 -0
  9. data/lib/aws/api_config/OpsWorks-2013-02-18.yml +2 -2
  10. data/lib/aws/auto_scaling.rb +44 -44
  11. data/lib/aws/auto_scaling/activity.rb +1 -1
  12. data/lib/aws/auto_scaling/activity_collection.rb +14 -15
  13. data/lib/aws/auto_scaling/client.rb +277 -277
  14. data/lib/aws/auto_scaling/config.rb +1 -1
  15. data/lib/aws/auto_scaling/group.rb +35 -36
  16. data/lib/aws/auto_scaling/group_collection.rb +10 -10
  17. data/lib/aws/auto_scaling/group_options.rb +19 -19
  18. data/lib/aws/auto_scaling/instance.rb +27 -27
  19. data/lib/aws/auto_scaling/instance_collection.rb +10 -10
  20. data/lib/aws/auto_scaling/launch_configuration.rb +3 -3
  21. data/lib/aws/auto_scaling/launch_configuration_collection.rb +1 -1
  22. data/lib/aws/auto_scaling/notification_configuration.rb +2 -2
  23. data/lib/aws/auto_scaling/notification_configuration_collection.rb +37 -38
  24. data/lib/aws/auto_scaling/scaling_policy.rb +3 -3
  25. data/lib/aws/auto_scaling/scaling_policy_collection.rb +6 -6
  26. data/lib/aws/auto_scaling/scaling_policy_options.rb +8 -7
  27. data/lib/aws/auto_scaling/scheduled_action.rb +3 -3
  28. data/lib/aws/auto_scaling/scheduled_action_collection.rb +28 -28
  29. data/lib/aws/auto_scaling/tag_collection.rb +30 -28
  30. data/lib/aws/cloud_formation.rb +95 -94
  31. data/lib/aws/cloud_formation/client.rb +136 -133
  32. data/lib/aws/cloud_formation/config.rb +1 -1
  33. data/lib/aws/cloud_formation/stack.rb +37 -37
  34. data/lib/aws/cloud_formation/stack_collection.rb +28 -27
  35. data/lib/aws/cloud_formation/stack_event.rb +9 -11
  36. data/lib/aws/cloud_formation/stack_output.rb +1 -1
  37. data/lib/aws/cloud_formation/stack_resource.rb +6 -6
  38. data/lib/aws/cloud_formation/stack_resource_collection.rb +11 -12
  39. data/lib/aws/cloud_formation/stack_resource_summary_collection.rb +11 -11
  40. data/lib/aws/cloud_formation/stack_summary_collection.rb +39 -39
  41. data/lib/aws/cloud_front.rb +21 -21
  42. data/lib/aws/cloud_front/client.rb +853 -652
  43. data/lib/aws/cloud_front/request.rb +3 -0
  44. data/lib/aws/cloud_search.rb +22 -22
  45. data/lib/aws/cloud_search/client.rb +322 -315
  46. data/lib/aws/cloud_search/config.rb +1 -1
  47. data/lib/aws/cloud_watch.rb +39 -39
  48. data/lib/aws/cloud_watch/alarm.rb +55 -37
  49. data/lib/aws/cloud_watch/alarm_collection.rb +18 -18
  50. data/lib/aws/cloud_watch/alarm_history_item_collection.rb +2 -2
  51. data/lib/aws/cloud_watch/client.rb +360 -146
  52. data/lib/aws/cloud_watch/config.rb +1 -1
  53. data/lib/aws/cloud_watch/metric.rb +15 -15
  54. data/lib/aws/cloud_watch/metric_alarm_collection.rb +17 -17
  55. data/lib/aws/cloud_watch/metric_collection.rb +16 -16
  56. data/lib/aws/cloud_watch/metric_statistics.rb +11 -11
  57. data/lib/aws/core.rb +243 -225
  58. data/lib/aws/core/async_handle.rb +13 -13
  59. data/lib/aws/core/cacheable.rb +14 -15
  60. data/lib/aws/core/client.rb +40 -15
  61. data/lib/aws/core/collection.rb +42 -46
  62. data/lib/aws/core/collection/with_limit_and_next_token.rb +1 -1
  63. data/lib/aws/core/collection/with_next_token.rb +1 -1
  64. data/lib/aws/core/configuration.rb +97 -133
  65. data/lib/aws/core/credential_providers.rb +16 -16
  66. data/lib/aws/core/data.rb +23 -23
  67. data/lib/aws/core/http/connection_pool.rb +348 -0
  68. data/lib/aws/core/http/net_http_handler.rb +17 -26
  69. data/lib/aws/core/http/patch.rb +102 -0
  70. data/lib/aws/core/http/request.rb +13 -19
  71. data/lib/aws/core/http/response.rb +2 -2
  72. data/lib/aws/core/lazy_error_classes.rb +17 -17
  73. data/lib/aws/core/log_formatter.rb +70 -104
  74. data/lib/aws/core/options/json_serializer.rb +1 -1
  75. data/lib/aws/core/options/validator.rb +4 -4
  76. data/lib/aws/core/page_result.rb +8 -8
  77. data/lib/aws/core/policy.rb +49 -49
  78. data/lib/aws/core/region.rb +72 -0
  79. data/lib/aws/core/region_collection.rb +106 -0
  80. data/lib/aws/core/resource.rb +5 -5
  81. data/lib/aws/core/response.rb +20 -17
  82. data/lib/aws/core/rest_request_builder.rb +4 -4
  83. data/lib/aws/core/service_interface.rb +24 -2
  84. data/lib/aws/core/signature/version_3.rb +2 -2
  85. data/lib/aws/core/uri_escape.rb +1 -1
  86. data/lib/aws/core/xml/frame_stack.rb +1 -1
  87. data/lib/aws/core/xml/grammar.rb +3 -4
  88. data/lib/aws/core/xml/sax_handlers/libxml.rb +2 -2
  89. data/lib/aws/core/xml/sax_handlers/nokogiri.rb +3 -3
  90. data/lib/aws/core/xml/sax_handlers/rexml.rb +5 -5
  91. data/lib/aws/core/xml/stub.rb +9 -9
  92. data/lib/aws/data_pipeline.rb +21 -21
  93. data/lib/aws/data_pipeline/client.rb +189 -133
  94. data/lib/aws/data_pipeline/config.rb +1 -1
  95. data/lib/aws/direct_connect.rb +74 -0
  96. data/lib/aws/direct_connect/client.rb +253 -0
  97. data/lib/aws/direct_connect/config.rb +18 -0
  98. data/lib/aws/direct_connect/errors.rb +22 -0
  99. data/lib/aws/direct_connect/request.rb +27 -0
  100. data/lib/aws/dynamo_db.rb +71 -69
  101. data/lib/aws/dynamo_db/attribute_collection.rb +53 -58
  102. data/lib/aws/dynamo_db/batch_get.rb +23 -23
  103. data/lib/aws/dynamo_db/batch_write.rb +43 -43
  104. data/lib/aws/dynamo_db/binary.rb +9 -9
  105. data/lib/aws/dynamo_db/client.rb +494 -509
  106. data/lib/aws/dynamo_db/client_base.rb +91 -0
  107. data/lib/aws/dynamo_db/client_v2.rb +825 -0
  108. data/lib/aws/dynamo_db/config.rb +1 -1
  109. data/lib/aws/dynamo_db/item.rb +10 -10
  110. data/lib/aws/dynamo_db/item_collection.rb +75 -75
  111. data/lib/aws/dynamo_db/table.rb +85 -85
  112. data/lib/aws/dynamo_db/table_collection.rb +13 -13
  113. data/lib/aws/ec2.rb +132 -142
  114. data/lib/aws/ec2/attachment.rb +31 -36
  115. data/lib/aws/ec2/attachment_collection.rb +1 -1
  116. data/lib/aws/ec2/availability_zone.rb +4 -4
  117. data/lib/aws/ec2/client.rb +2272 -2125
  118. data/lib/aws/ec2/config.rb +1 -1
  119. data/lib/aws/ec2/customer_gateway.rb +6 -6
  120. data/lib/aws/ec2/customer_gateway_collection.rb +6 -6
  121. data/lib/aws/ec2/dhcp_options.rb +3 -3
  122. data/lib/aws/ec2/dhcp_options_collection.rb +10 -10
  123. data/lib/aws/ec2/elastic_ip.rb +15 -15
  124. data/lib/aws/ec2/elastic_ip_collection.rb +11 -15
  125. data/lib/aws/ec2/export_task.rb +4 -4
  126. data/lib/aws/ec2/export_task_collection.rb +11 -11
  127. data/lib/aws/ec2/filtered_collection.rb +6 -8
  128. data/lib/aws/ec2/image.rb +46 -40
  129. data/lib/aws/ec2/image_collection.rb +44 -52
  130. data/lib/aws/ec2/instance.rb +64 -62
  131. data/lib/aws/ec2/instance_collection.rb +47 -50
  132. data/lib/aws/ec2/internet_gateway.rb +6 -6
  133. data/lib/aws/ec2/internet_gateway/attachment.rb +13 -13
  134. data/lib/aws/ec2/internet_gateway_collection.rb +3 -3
  135. data/lib/aws/ec2/key_pair.rb +3 -3
  136. data/lib/aws/ec2/key_pair_collection.rb +12 -12
  137. data/lib/aws/ec2/network_acl.rb +39 -39
  138. data/lib/aws/ec2/network_acl/association.rb +2 -2
  139. data/lib/aws/ec2/network_acl/entry.rb +22 -22
  140. data/lib/aws/ec2/network_acl_collection.rb +2 -2
  141. data/lib/aws/ec2/network_interface.rb +13 -4
  142. data/lib/aws/ec2/network_interface/attachment.rb +3 -3
  143. data/lib/aws/ec2/network_interface_collection.rb +5 -5
  144. data/lib/aws/ec2/permission_collection.rb +1 -1
  145. data/lib/aws/ec2/region.rb +6 -6
  146. data/lib/aws/ec2/region_collection.rb +1 -1
  147. data/lib/aws/ec2/reserved_instances_collection.rb +2 -2
  148. data/lib/aws/ec2/reserved_instances_offering_collection.rb +2 -2
  149. data/lib/aws/ec2/resource_tag_collection.rb +5 -5
  150. data/lib/aws/ec2/route_table.rb +14 -14
  151. data/lib/aws/ec2/route_table/association.rb +22 -22
  152. data/lib/aws/ec2/route_table/route.rb +8 -8
  153. data/lib/aws/ec2/route_table_collection.rb +3 -3
  154. data/lib/aws/ec2/security_group.rb +39 -41
  155. data/lib/aws/ec2/security_group_collection.rb +19 -21
  156. data/lib/aws/ec2/snapshot.rb +3 -3
  157. data/lib/aws/ec2/snapshot_collection.rb +11 -12
  158. data/lib/aws/ec2/subnet.rb +2 -2
  159. data/lib/aws/ec2/subnet_collection.rb +17 -17
  160. data/lib/aws/ec2/tag_collection.rb +1 -1
  161. data/lib/aws/ec2/tagged_collection.rb +7 -7
  162. data/lib/aws/ec2/tagged_item.rb +10 -10
  163. data/lib/aws/ec2/volume.rb +16 -16
  164. data/lib/aws/ec2/volume_collection.rb +9 -12
  165. data/lib/aws/ec2/vpc.rb +6 -6
  166. data/lib/aws/ec2/vpc_collection.rb +10 -10
  167. data/lib/aws/ec2/vpn_connection.rb +4 -4
  168. data/lib/aws/ec2/vpn_connection/telemetry.rb +1 -1
  169. data/lib/aws/ec2/vpn_connection_collection.rb +6 -6
  170. data/lib/aws/ec2/vpn_gateway.rb +2 -2
  171. data/lib/aws/ec2/vpn_gateway_collection.rb +5 -5
  172. data/lib/aws/elastic_beanstalk.rb +12 -12
  173. data/lib/aws/elastic_beanstalk/client.rb +376 -368
  174. data/lib/aws/elastic_beanstalk/config.rb +1 -1
  175. data/lib/aws/elastic_transcoder.rb +5 -5
  176. data/lib/aws/elastic_transcoder/client.rb +283 -283
  177. data/lib/aws/elastic_transcoder/config.rb +1 -1
  178. data/lib/aws/elasticache.rb +12 -12
  179. data/lib/aws/elasticache/client.rb +484 -479
  180. data/lib/aws/elasticache/config.rb +1 -1
  181. data/lib/aws/elb.rb +23 -23
  182. data/lib/aws/elb/availability_zone_collection.rb +34 -34
  183. data/lib/aws/elb/backend_server_policy_collection.rb +24 -24
  184. data/lib/aws/elb/client.rb +153 -153
  185. data/lib/aws/elb/config.rb +1 -1
  186. data/lib/aws/elb/errors.rb +1 -1
  187. data/lib/aws/elb/instance_collection.rb +20 -25
  188. data/lib/aws/elb/listener.rb +3 -3
  189. data/lib/aws/elb/listener_collection.rb +8 -8
  190. data/lib/aws/elb/load_balancer.rb +15 -16
  191. data/lib/aws/elb/load_balancer_collection.rb +36 -24
  192. data/lib/aws/elb/load_balancer_policy.rb +1 -1
  193. data/lib/aws/elb/load_balancer_policy_collection.rb +5 -5
  194. data/lib/aws/emr.rb +28 -26
  195. data/lib/aws/emr/client.rb +165 -149
  196. data/lib/aws/emr/config.rb +1 -1
  197. data/lib/aws/emr/instance_group.rb +1 -1
  198. data/lib/aws/emr/instance_group_collection.rb +1 -1
  199. data/lib/aws/emr/job_flow.rb +27 -26
  200. data/lib/aws/emr/job_flow_collection.rb +34 -34
  201. data/lib/aws/errors.rb +7 -7
  202. data/lib/aws/glacier.rb +21 -21
  203. data/lib/aws/glacier/archive_collection.rb +2 -2
  204. data/lib/aws/glacier/client.rb +139 -140
  205. data/lib/aws/glacier/config.rb +1 -1
  206. data/lib/aws/glacier/vault.rb +2 -2
  207. data/lib/aws/glacier/vault_collection.rb +1 -1
  208. data/lib/aws/iam.rb +133 -144
  209. data/lib/aws/iam/access_key.rb +17 -17
  210. data/lib/aws/iam/access_key_collection.rb +22 -22
  211. data/lib/aws/iam/account_alias_collection.rb +2 -2
  212. data/lib/aws/iam/client.rb +429 -420
  213. data/lib/aws/iam/collection.rb +1 -1
  214. data/lib/aws/iam/config.rb +2 -2
  215. data/lib/aws/iam/group.rb +8 -8
  216. data/lib/aws/iam/group_collection.rb +16 -16
  217. data/lib/aws/iam/group_policy_collection.rb +6 -6
  218. data/lib/aws/iam/group_user_collection.rb +3 -3
  219. data/lib/aws/iam/mfa_device.rb +1 -1
  220. data/lib/aws/iam/mfa_device_collection.rb +9 -9
  221. data/lib/aws/iam/policy_collection.rb +4 -4
  222. data/lib/aws/iam/resource.rb +2 -2
  223. data/lib/aws/iam/server_certificate.rb +1 -1
  224. data/lib/aws/iam/server_certificate_collection.rb +15 -15
  225. data/lib/aws/iam/signing_certificate.rb +29 -29
  226. data/lib/aws/iam/signing_certificate_collection.rb +23 -23
  227. data/lib/aws/iam/user.rb +33 -38
  228. data/lib/aws/iam/user_collection.rb +27 -27
  229. data/lib/aws/iam/user_group_collection.rb +3 -3
  230. data/lib/aws/iam/user_policy_collection.rb +6 -6
  231. data/lib/aws/iam/virtual_mfa_device.rb +12 -12
  232. data/lib/aws/iam/virtual_mfa_device_collection.rb +4 -4
  233. data/lib/aws/import_export.rb +22 -21
  234. data/lib/aws/import_export/client.rb +47 -43
  235. data/lib/aws/ops_works.rb +5 -5
  236. data/lib/aws/ops_works/client.rb +484 -438
  237. data/lib/aws/ops_works/config.rb +1 -1
  238. data/lib/aws/rails.rb +34 -34
  239. data/lib/aws/rds.rb +18 -18
  240. data/lib/aws/rds/client.rb +1286 -1277
  241. data/lib/aws/rds/config.rb +1 -1
  242. data/lib/aws/rds/db_instance.rb +15 -4
  243. data/lib/aws/rds/db_snapshot.rb +1 -1
  244. data/lib/aws/record.rb +50 -24
  245. data/lib/aws/record/abstract_base.rb +52 -60
  246. data/lib/aws/record/attributes.rb +79 -79
  247. data/lib/aws/record/conversion.rb +1 -1
  248. data/lib/aws/record/dirty_tracking.rb +69 -67
  249. data/lib/aws/record/errors.rb +21 -21
  250. data/lib/aws/record/exceptions.rb +2 -2
  251. data/lib/aws/record/hash_model.rb +20 -21
  252. data/lib/aws/record/hash_model/attributes.rb +13 -15
  253. data/lib/aws/record/hash_model/finder_methods.rb +46 -46
  254. data/lib/aws/record/hash_model/scope.rb +31 -31
  255. data/lib/aws/record/model.rb +136 -136
  256. data/lib/aws/record/model/attributes.rb +57 -59
  257. data/lib/aws/record/model/finder_methods.rb +67 -67
  258. data/lib/aws/record/model/scope.rb +48 -49
  259. data/lib/aws/record/naming.rb +1 -1
  260. data/lib/aws/record/scope.rb +23 -19
  261. data/lib/aws/record/validations.rb +253 -271
  262. data/lib/aws/record/validator.rb +3 -3
  263. data/lib/aws/record/validators/acceptance.rb +1 -3
  264. data/lib/aws/record/validators/block.rb +1 -3
  265. data/lib/aws/record/validators/confirmation.rb +1 -3
  266. data/lib/aws/record/validators/count.rb +2 -4
  267. data/lib/aws/record/validators/exclusion.rb +2 -4
  268. data/lib/aws/record/validators/format.rb +2 -4
  269. data/lib/aws/record/validators/inclusion.rb +1 -3
  270. data/lib/aws/record/validators/length.rb +5 -7
  271. data/lib/aws/record/validators/method.rb +1 -3
  272. data/lib/aws/record/validators/numericality.rb +6 -8
  273. data/lib/aws/record/validators/presence.rb +1 -3
  274. data/lib/aws/redshift.rb +14 -14
  275. data/lib/aws/redshift/client.rb +596 -592
  276. data/lib/aws/redshift/config.rb +1 -1
  277. data/lib/aws/route_53.rb +30 -30
  278. data/lib/aws/route_53/change_batch.rb +7 -7
  279. data/lib/aws/route_53/client.rb +188 -152
  280. data/lib/aws/route_53/hosted_zone.rb +4 -4
  281. data/lib/aws/route_53/hosted_zone_collection.rb +7 -7
  282. data/lib/aws/route_53/resource_record_set.rb +10 -10
  283. data/lib/aws/route_53/resource_record_set_collection.rb +6 -6
  284. data/lib/aws/s3.rb +79 -79
  285. data/lib/aws/s3/access_control_list.rb +44 -36
  286. data/lib/aws/s3/acl_options.rb +51 -51
  287. data/lib/aws/s3/bucket.rb +146 -146
  288. data/lib/aws/s3/bucket_collection.rb +21 -21
  289. data/lib/aws/s3/bucket_lifecycle_configuration.rb +81 -82
  290. data/lib/aws/s3/bucket_tag_collection.rb +4 -2
  291. data/lib/aws/s3/cipher_io.rb +5 -4
  292. data/lib/aws/s3/client.rb +89 -84
  293. data/lib/aws/s3/client/xml.rb +1 -1
  294. data/lib/aws/s3/config.rb +7 -1
  295. data/lib/aws/s3/cors_rule.rb +2 -0
  296. data/lib/aws/s3/cors_rule_collection.rb +42 -40
  297. data/lib/aws/s3/data_options.rb +16 -11
  298. data/lib/aws/s3/encryption_utils.rb +2 -2
  299. data/lib/aws/s3/errors.rb +7 -7
  300. data/lib/aws/s3/multipart_upload.rb +30 -33
  301. data/lib/aws/s3/multipart_upload_collection.rb +8 -6
  302. data/lib/aws/s3/object_collection.rb +35 -35
  303. data/lib/aws/s3/object_metadata.rb +6 -6
  304. data/lib/aws/s3/object_version.rb +4 -4
  305. data/lib/aws/s3/object_version_collection.rb +15 -15
  306. data/lib/aws/s3/policy.rb +2 -2
  307. data/lib/aws/s3/prefixed_collection.rb +9 -5
  308. data/lib/aws/s3/presigned_post.rb +39 -37
  309. data/lib/aws/s3/request.rb +11 -11
  310. data/lib/aws/s3/s3_object.rb +210 -200
  311. data/lib/aws/s3/tree.rb +25 -27
  312. data/lib/aws/s3/tree/child_collection.rb +3 -3
  313. data/lib/aws/s3/tree/leaf_node.rb +2 -2
  314. data/lib/aws/s3/tree/parent.rb +1 -1
  315. data/lib/aws/s3/website_configuration.rb +13 -13
  316. data/lib/aws/simple_db.rb +83 -83
  317. data/lib/aws/simple_db/attribute.rb +9 -7
  318. data/lib/aws/simple_db/attribute_collection.rb +22 -13
  319. data/lib/aws/simple_db/client.rb +107 -107
  320. data/lib/aws/simple_db/config.rb +7 -1
  321. data/lib/aws/simple_db/consistent_read_option.rb +5 -5
  322. data/lib/aws/simple_db/domain.rb +4 -2
  323. data/lib/aws/simple_db/domain_collection.rb +4 -4
  324. data/lib/aws/simple_db/domain_metadata.rb +5 -5
  325. data/lib/aws/simple_db/errors.rb +9 -9
  326. data/lib/aws/simple_db/item.rb +5 -5
  327. data/lib/aws/simple_db/item_collection.rb +83 -81
  328. data/lib/aws/simple_db/item_data.rb +4 -4
  329. data/lib/aws/simple_db/put_attributes.rb +3 -3
  330. data/lib/aws/simple_email_service.rb +140 -140
  331. data/lib/aws/simple_email_service/client.rb +82 -76
  332. data/lib/aws/simple_email_service/config.rb +1 -2
  333. data/lib/aws/simple_email_service/email_address_collection.rb +3 -3
  334. data/lib/aws/simple_email_service/identity.rb +8 -8
  335. data/lib/aws/simple_email_service/quotas.rb +8 -6
  336. data/lib/aws/simple_workflow.rb +106 -106
  337. data/lib/aws/simple_workflow/activity_task.rb +15 -22
  338. data/lib/aws/simple_workflow/activity_task_collection.rb +15 -15
  339. data/lib/aws/simple_workflow/activity_type.rb +23 -23
  340. data/lib/aws/simple_workflow/activity_type_collection.rb +23 -23
  341. data/lib/aws/simple_workflow/client.rb +1004 -956
  342. data/lib/aws/simple_workflow/config.rb +1 -1
  343. data/lib/aws/simple_workflow/count.rb +5 -5
  344. data/lib/aws/simple_workflow/decision_task.rb +129 -129
  345. data/lib/aws/simple_workflow/decision_task_collection.rb +59 -59
  346. data/lib/aws/simple_workflow/domain.rb +11 -11
  347. data/lib/aws/simple_workflow/domain_collection.rb +26 -26
  348. data/lib/aws/simple_workflow/history_event.rb +32 -32
  349. data/lib/aws/simple_workflow/history_event_collection.rb +3 -3
  350. data/lib/aws/simple_workflow/option_formatters.rb +5 -5
  351. data/lib/aws/simple_workflow/request.rb +1 -1
  352. data/lib/aws/simple_workflow/resource.rb +1 -1
  353. data/lib/aws/simple_workflow/type.rb +8 -8
  354. data/lib/aws/simple_workflow/type_collection.rb +15 -15
  355. data/lib/aws/simple_workflow/workflow_execution.rb +70 -72
  356. data/lib/aws/simple_workflow/workflow_execution_collection.rb +130 -130
  357. data/lib/aws/simple_workflow/workflow_type.rb +27 -25
  358. data/lib/aws/simple_workflow/workflow_type_collection.rb +20 -20
  359. data/lib/aws/sns.rb +25 -25
  360. data/lib/aws/sns/client.rb +55 -55
  361. data/lib/aws/sns/config.rb +1 -1
  362. data/lib/aws/sns/policy.rb +1 -1
  363. data/lib/aws/sns/subscription.rb +7 -7
  364. data/lib/aws/sns/subscription_collection.rb +5 -5
  365. data/lib/aws/sns/topic.rb +49 -49
  366. data/lib/aws/sns/topic_collection.rb +2 -2
  367. data/lib/aws/sns/topic_subscription_collection.rb +5 -5
  368. data/lib/aws/sqs.rb +20 -20
  369. data/lib/aws/sqs/client.rb +78 -78
  370. data/lib/aws/sqs/config.rb +1 -1
  371. data/lib/aws/sqs/errors.rb +12 -12
  372. data/lib/aws/sqs/queue.rb +66 -67
  373. data/lib/aws/sqs/queue_collection.rb +16 -8
  374. data/lib/aws/sqs/received_message.rb +7 -6
  375. data/lib/aws/storage_gateway.rb +21 -21
  376. data/lib/aws/storage_gateway/client.rb +269 -202
  377. data/lib/aws/storage_gateway/config.rb +1 -1
  378. data/lib/aws/sts.rb +10 -8
  379. data/lib/aws/sts/client.rb +35 -35
  380. data/lib/aws/sts/session.rb +3 -3
  381. data/lib/aws/version.rb +1 -2
  382. metadata +23 -21
  383. data/lib/aws/core/autoloader.rb +0 -64
  384. data/lib/net/http/connection_pool.rb +0 -226
  385. data/lib/net/http/connection_pool/connection.rb +0 -189
  386. data/lib/net/http/connection_pool/session.rb +0 -126
@@ -82,11 +82,11 @@ module AWS
82
82
  # Overide this method is subclasses of Resource. This method should
83
83
  # return an array of identifying key/value pairs.
84
84
  #
85
- # # @private
86
- # protected
87
- # def resource_identifiers
88
- # [[:user_name, name]]
89
- # end
85
+ # # @private
86
+ # protected
87
+ # def resource_identifiers
88
+ # [[:user_name, name]]
89
+ # end
90
90
  #
91
91
  # @private
92
92
  protected
@@ -14,7 +14,7 @@
14
14
  module AWS
15
15
  module Core
16
16
 
17
- # = Response
17
+ # # Response
18
18
  #
19
19
  # Each Service has a Client class. There is one method per service
20
20
  # operation defined on the client. These methods all return a {Response}
@@ -23,23 +23,23 @@ module AWS
23
23
  # In addition to the response data, these responses provide metadata
24
24
  # about the HTTP request made and the HTTP response received.
25
25
  #
26
- # == Response Data
26
+ # ## Response Data
27
27
  #
28
28
  # You can access the response data for a client request using the {#data}
29
29
  # method or the {#[]} method. Response data is a hash and {#[]} is
30
30
  # a shortcut for accessing this hash.
31
31
  #
32
- # # make a request to describe one instance
33
- # ec2 = AWS::EC2.new
34
- # response = ec2.client.describe_instances(:instance_ids => ['i-12345678'])
32
+ # # make a request to describe one instance
33
+ # ec2 = AWS::EC2.new
34
+ # response = ec2.client.describe_instances(:instance_ids => ['i-12345678'])
35
35
  #
36
- # # find the instance in the response data (2 ways to get the data)
37
- # instance = response[:reservation_set].first[:instance_set].first
38
- # instance = response.data[:reservation_set].first[:instance_set].first
36
+ # # find the instance in the response data (2 ways to get the data)
37
+ # instance = response[:reservation_set].first[:instance_set].first
38
+ # instance = response.data[:reservation_set].first[:instance_set].first
39
39
  #
40
- # instance[:status] #=> 'running'
40
+ # instance[:status] #=> 'running'
41
41
  #
42
- # == Response Metadata
42
+ # ## Response Metadata
43
43
  #
44
44
  # In addition to the response data, there is additional information
45
45
  # available with the response, including:
@@ -51,10 +51,10 @@ module AWS
51
51
  #
52
52
  # Given the example and response object from above:
53
53
  #
54
- # response.request_type #=> :describe_instances
55
- # response.request_options #=> { :instance_ids => ['i-12345678'] }
56
- # response.http_request #=> #<AWS::Core::Http::Request>
57
- # response.http_response #=> #<AWS::Core::Http::Response>
54
+ # response.request_type #=> :describe_instances
55
+ # response.request_options #=> { :instance_ids => ['i-12345678'] }
56
+ # response.http_request #=> #<AWS::Core::Http::Request>
57
+ # response.http_response #=> #<AWS::Core::Http::Response>
58
58
  #
59
59
  class Response
60
60
 
@@ -63,6 +63,9 @@ module AWS
63
63
  # @return [Hash] Returns the response data as a hash.
64
64
  attr_accessor :data
65
65
 
66
+ # @private
67
+ attr_accessor :config
68
+
66
69
  # @return [Symbol] The name of the client request method that
67
70
  # returned this response.
68
71
  attr_accessor :request_type
@@ -109,7 +112,7 @@ module AWS
109
112
  end
110
113
 
111
114
  # Provides access to the response data. This is a short-cut
112
- # for calling +response.data[key]+.
115
+ # for calling `response.data[key]`.
113
116
  #
114
117
  # @param [Symbol,String] key
115
118
  # @return [Hash,nil]
@@ -122,7 +125,7 @@ module AWS
122
125
  error.nil?
123
126
  end
124
127
 
125
- # @return [Boolean] Returns +true+ if the http request failed due to
128
+ # @return [Boolean] Returns `true` if the http request failed due to
126
129
  # a networking issue.
127
130
  def network_error?
128
131
  http_response.network_error?
@@ -154,7 +157,7 @@ module AWS
154
157
  @http_request.body_stream.rewind if @http_request.body_stream
155
158
  end
156
159
 
157
- # @return [Boolean] Returns +false+ if it is not safe to retry a
160
+ # @return [Boolean] Returns `false` if it is not safe to retry a
158
161
  # request. This happens when the http request body is an IO
159
162
  # object that can not be rewound and re-streamed.
160
163
  def safe_to_retry?
@@ -42,10 +42,10 @@ module AWS
42
42
 
43
43
  # Populates a Http::Request with the following:
44
44
  #
45
- # * HTTP method
46
- # * URI
47
- # * headers
48
- # * body
45
+ # * HTTP method
46
+ # * URI
47
+ # * headers
48
+ # * body
49
49
  #
50
50
  # @param [Http::Request] request
51
51
  #
@@ -27,14 +27,36 @@ module AWS
27
27
  base::Errors.module_eval { include Errors }
28
28
  end
29
29
 
30
+ AWS::Core::MetaUtils.extend(base) do
31
+
32
+ # @private
33
+ def endpoint_prefix prefix = nil, options = {}
34
+ if prefix
35
+ @endpoint_prefix = prefix
36
+ @global_endpoint = !!options[:global]
37
+ end
38
+ @endpoint_prefix
39
+ end
40
+
41
+ # @private
42
+ def global_endpoint?
43
+ @global_endpoint
44
+ end
45
+
46
+ def regions
47
+ RegionCollection.new(:service => self)
48
+ end
49
+
50
+ end
51
+
30
52
  end
31
53
 
32
54
  # Returns a new interface object for this service. You can override
33
55
  # any of the global configuration parameters by passing them in as
34
56
  # hash options. They are merged with AWS.config or merged
35
- # with the provided +:config+ object.
57
+ # with the provided `:config` object.
36
58
  #
37
- # @ec2 = AWS::EC2.new(:max_retries => 2)
59
+ # @ec2 = AWS::EC2.new(:max_retries => 2)
38
60
  #
39
61
  # @see AWS::Cofiguration
40
62
  #
@@ -28,7 +28,7 @@ module AWS
28
28
  headers["x-amz-date"] ||= (headers["date"] ||= Time.now.httpdate)
29
29
  headers["host"] ||= host
30
30
 
31
- headers["x-amz-security-token"] = credentials.session_token if
31
+ headers["x-amz-security-token"] = credentials.session_token if
32
32
  credentials.session_token
33
33
 
34
34
  # compute the authorization
@@ -43,7 +43,7 @@ module AWS
43
43
  protected
44
44
 
45
45
  def signature credentials
46
- Signer.sign(credentials.secret_access_key, string_to_sign)
46
+ Signer.sign(credentials.secret_access_key, string_to_sign)
47
47
  end
48
48
 
49
49
  def string_to_sign
@@ -28,7 +28,7 @@ module AWS
28
28
  module_function :escape
29
29
 
30
30
  # @param [String] value
31
- # @return [String] Returns a URI-escaped path without escaping the
31
+ # @return [String] Returns a URI-escaped path without escaping the
32
32
  # separators.
33
33
  def escape_path value
34
34
  escaped = ""
@@ -36,7 +36,7 @@ module AWS
36
36
  sax_parse(xml)
37
37
  @frame.value
38
38
  end
39
-
39
+
40
40
  # Increase the frame stack level by one.
41
41
  # @param [String] element_name The name of the xml opening tag.
42
42
  # @param [Hash] attributes A hash of xml element attributes.
@@ -129,7 +129,7 @@ module AWS
129
129
  allow_methods = %w(
130
130
  rename attribute_name boolean integer long float list force string
131
131
  ignore collect_values symbol_value timestamp map_entry map blob
132
- position
132
+ enum position
133
133
  )
134
134
  unless allow_methods.include?(method.to_s)
135
135
  raise "#{method} cannot be used in configuration"
@@ -151,9 +151,7 @@ module AWS
151
151
  Inflection.ruby_name(value.to_s).to_sym
152
152
  end
153
153
 
154
- ##
155
- ## customization methods
156
- ##
154
+ # customization methods
157
155
 
158
156
  def element element_name, &block
159
157
 
@@ -286,6 +284,7 @@ module AWS
286
284
  end
287
285
  alias_method :==, :eql?
288
286
 
287
+ def enum *args; end
289
288
  def position *args; end
290
289
  def http_trait *args; end
291
290
  alias_method :http_header, :http_trait
@@ -18,7 +18,7 @@ module AWS
18
18
  module XML
19
19
  module SaxHandlers
20
20
  class LibXML
21
-
21
+
22
22
  include FrameStack
23
23
  include ::LibXML::XML::SaxParser::Callbacks
24
24
 
@@ -29,7 +29,7 @@ module AWS
29
29
  end
30
30
 
31
31
  def on_start_element_ns element_name, attributes, *ignore
32
- start_element(element_name, attributes)
32
+ start_element(element_name, attributes)
33
33
  end
34
34
 
35
35
  def on_end_element_ns *ignore
@@ -18,7 +18,7 @@ module AWS
18
18
  module XML
19
19
  module SaxHandlers
20
20
  class Nokogiri
21
-
21
+
22
22
  include FrameStack
23
23
 
24
24
  def sax_parse xml
@@ -32,11 +32,11 @@ module AWS
32
32
 
33
33
  def start_element_namespace element_name, attributes = [], *ignore
34
34
 
35
- attributes = attributes.map.inject({}) do |hash,attr|
35
+ attributes = attributes.map.inject({}) do |hash,attr|
36
36
  hash.merge(attr.localname => attr.value)
37
37
  end
38
38
 
39
- start_element(element_name, attributes)
39
+ start_element(element_name, attributes)
40
40
 
41
41
  end
42
42
 
@@ -19,23 +19,23 @@ module AWS
19
19
  module XML
20
20
  module SaxHandlers
21
21
  class REXML
22
-
22
+
23
23
  include FrameStack
24
24
  include ::REXML::StreamListener
25
-
25
+
26
26
  def sax_parse xml
27
27
  source = ::REXML::Source.new(xml)
28
28
  ::REXML::Parsers::StreamParser.new(source, self).parse
29
29
  end
30
-
30
+
31
31
  def tag_start name, attrs
32
32
  start_element(name, attrs)
33
33
  end
34
-
34
+
35
35
  def tag_end name
36
36
  end_element
37
37
  end
38
-
38
+
39
39
  end
40
40
  end
41
41
  end
@@ -37,9 +37,9 @@ module AWS
37
37
  attr_reader :rules
38
38
 
39
39
  # Returns a hash with stubbed values as if it had parsed
40
- # an empty xml document.
41
- # @return [Hash]
42
- def simulate
40
+ # an empty xml document.
41
+ # @return [Hash]
42
+ def simulate
43
43
  if rules[:children]
44
44
  data = stub_data_for(rules)
45
45
  apply_empty_indexes(rules, data)
@@ -50,9 +50,9 @@ module AWS
50
50
  end
51
51
 
52
52
  # Returns a hash with stubbed values as if it had parsed
53
- # an empty xml document.
53
+ # an empty xml document.
54
54
  # @param [Hash] rules An XML::Parser rule set.
55
- # @return [Hash]
55
+ # @return [Hash]
56
56
  def self.simulate rules
57
57
  stub = Stub.new(rules)
58
58
  stub.simulate
@@ -74,7 +74,7 @@ module AWS
74
74
  data = data[wrapper]
75
75
  end
76
76
 
77
- ruby_name = child_rules[:rename] ||
77
+ ruby_name = child_rules[:rename] ||
78
78
  Inflection.ruby_name(name.to_s).to_sym
79
79
 
80
80
  if child_rules[:list]
@@ -85,7 +85,7 @@ module AWS
85
85
  data[ruby_name] = stub_data_for(child_rules)
86
86
  else
87
87
  data[ruby_name] = case child_rules[:type]
88
- when :integer then 0
88
+ when :integer then 0
89
89
  when :float then 0.0
90
90
  when :time then Time.now
91
91
  when :datetime then Date.parse(Time.now.to_s)
@@ -105,9 +105,9 @@ module AWS
105
105
 
106
106
  protected
107
107
  def apply_empty_indexes rules, data
108
-
108
+
109
109
  return unless rules[:children]
110
-
110
+
111
111
  rules[:children].each_pair do |name,child_rules|
112
112
  if index = child_rules[:index]
113
113
  data[index[:name]] = {}
@@ -19,41 +19,41 @@ module AWS
19
19
  # This class is the starting point for working with AWS Data Pipeline.
20
20
  #
21
21
  # To use AWS Data Pipeline you must first
22
- # {sign up here}[http://aws.amazon.com/datapipeline/].
22
+ # [sign up here](http://aws.amazon.com/datapipeline/).
23
23
  #
24
24
  # For more information about AWS Data Pipeline:
25
25
  #
26
- # * {AWS Data Pipeline}[http://aws.amazon.com/datapipeline/]
27
- # * {AWS Data Pipeline Documentation}[http://aws.amazon.com/documentation/datapipeline/]
26
+ # * [AWS Data Pipeline](http://aws.amazon.com/datapipeline/)
27
+ # * [AWS Data Pipeline Documentation](http://aws.amazon.com/documentation/datapipeline/)
28
28
  #
29
- # = Credentials
29
+ # # Credentials
30
30
  #
31
31
  # You can setup default credentials for all AWS services via
32
32
  # AWS.config:
33
33
  #
34
- # AWS.config(
35
- # :access_key_id => 'YOUR_ACCESS_KEY_ID',
36
- # :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
34
+ # AWS.config(
35
+ # :access_key_id => 'YOUR_ACCESS_KEY_ID',
36
+ # :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
37
37
  #
38
38
  # Or you can set them directly on the AWS::DataPipeline interface:
39
39
  #
40
- # datapipeline = AWS::DataPipeline.new(
41
- # :access_key_id => 'YOUR_ACCESS_KEY_ID',
42
- # :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
40
+ # datapipeline = AWS::DataPipeline.new(
41
+ # :access_key_id => 'YOUR_ACCESS_KEY_ID',
42
+ # :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
43
43
  #
44
- # = Using the Client
44
+ # # Using the Client
45
45
  #
46
46
  # AWS::DataPipeline does not provide higher level abstractions for AWS Data Pipeline
47
47
  # this time. You can still access all of the API methods using
48
48
  # {AWS::DataPipeline::Client}. Here is how you access the client and make
49
49
  # a simple request:
50
50
  #
51
- # data_pipeline = AWS::DataPipeline.new
51
+ # data_pipeline = AWS::DataPipeline.new
52
52
  #
53
- # resp = data_pipeline.client.describe_pipelines
54
- # resp[:pipeline_description_list].each do |pipeline|
55
- # puts pipeline[:pipeline_id]
56
- # end
53
+ # resp = data_pipeline.client.describe_pipelines
54
+ # resp[:pipeline_description_list].each do |pipeline|
55
+ # puts pipeline[:pipeline_id]
56
+ # end
57
57
  #
58
58
  # See {Client} for documentation on all of the supported operations.
59
59
  #
@@ -61,13 +61,13 @@ module AWS
61
61
  # @return [Client] the low-level DataPipeline client object
62
62
  class DataPipeline
63
63
 
64
- AWS.register_autoloads(self, 'aws/data_pipeline') do
65
- autoload :Client, 'client'
66
- autoload :Errors, 'errors'
67
- autoload :Request, 'request'
68
- end
64
+ autoload :Client, 'aws/data_pipeline/client'
65
+ autoload :Errors, 'aws/data_pipeline/errors'
66
+ autoload :Request, 'aws/data_pipeline/request'
69
67
 
70
68
  include Core::ServiceInterface
71
69
 
70
+ endpoint_prefix 'datapipeline'
71
+
72
72
  end
73
73
  end
@@ -25,18 +25,18 @@ module AWS
25
25
  # @!method activate_pipeline(options = {})
26
26
  # Calls the ActivatePipeline API operation.
27
27
  # @param [Hash] options
28
- # * +:pipeline_id+ - *required* - (String) The identifier of the
28
+ # * `:pipeline_id` - *required* - (String) The identifier of the
29
29
  # pipeline to activate.
30
30
  # @return [Core::Response]
31
31
 
32
32
  # @!method create_pipeline(options = {})
33
33
  # Calls the CreatePipeline API operation.
34
34
  # @param [Hash] options
35
- # * +:name+ - *required* - (String) The name of the new pipeline. You
35
+ # * `:name` - *required* - (String) The name of the new pipeline. You
36
36
  # can use the same name for multiple pipelines associated with your
37
37
  # AWS account, because AWS Data Pipeline assigns each new pipeline a
38
38
  # unique pipeline identifier.
39
- # * +:unique_id+ - *required* - (String) A unique identifier that you
39
+ # * `:unique_id` - *required* - (String) A unique identifier that you
40
40
  # specify. This identifier is not the same as the pipeline identifier
41
41
  # assigned by AWS Data Pipeline. You are responsible for defining the
42
42
  # format and ensuring the uniqueness of this identifier. You use this
@@ -48,30 +48,32 @@ module AWS
48
48
  # exists with the same name and unique identifier, a new pipeline
49
49
  # will not be created. Instead, you'll receive the pipeline
50
50
  # identifier from the previous attempt. The uniqueness of the name
51
- # and unique identifier combination is scoped to the AWS account.
52
- # * +:description+ - (String) The description of the new pipeline.
51
+ # and unique identifier combination is scoped to the AWS account or
52
+ # IAM user credentials.
53
+ # * `:description` - (String) The description of the new pipeline.
53
54
  # @return [Core::Response]
54
55
  # The #data method of the response object returns
55
56
  # a hash with the following structure:
56
- # * +:pipeline_id+ - (String)
57
+ # * `:pipeline_id` - (String)
57
58
 
58
59
  # @!method delete_pipeline(options = {})
59
60
  # Calls the DeletePipeline API operation.
60
61
  # @param [Hash] options
61
- # * +:pipeline_id+ - *required* - (String) The identifier of the
62
+ # * `:pipeline_id` - *required* - (String) The identifier of the
62
63
  # pipeline to be deleted.
63
64
  # @return [Core::Response]
64
65
 
65
66
  # @!method describe_objects(options = {})
66
67
  # Calls the DescribeObjects API operation.
67
68
  # @param [Hash] options
68
- # * +:pipeline_id+ - *required* - (String) Identifier of the pipeline
69
+ # * `:pipeline_id` - *required* - (String) Identifier of the pipeline
69
70
  # that contains the object definitions.
70
- # * +:object_ids+ - *required* - (Array<String>) Identifiers of the
71
+ # * `:object_ids` - *required* - (Array<String>) Identifiers of the
71
72
  # pipeline objects that contain the definitions to be described. You
72
73
  # can pass as many as 25 identifiers in a single call to
73
74
  # DescribeObjects
74
- # * +:marker+ - (String) The starting point for the results to be
75
+ # * `:evaluate_expressions` - (Boolean)
76
+ # * `:marker` - (String) The starting point for the results to be
75
77
  # returned. The first time you call DescribeObjects, this value
76
78
  # should be empty. As long as the action returns HasMoreResults as
77
79
  # True, you can call DescribeObjects again and pass the marker value
@@ -79,67 +81,69 @@ module AWS
79
81
  # @return [Core::Response]
80
82
  # The #data method of the response object returns
81
83
  # a hash with the following structure:
82
- # * +:pipeline_objects+ - (Array<Hash>)
83
- # * +:id+ - (String)
84
- # * +:name+ - (String)
85
- # * +:fields+ - (Array<Hash>)
86
- # * +:key+ - (String)
87
- # * +:string_value+ - (String)
88
- # * +:ref_value+ - (String)
89
- # * +:marker+ - (String)
90
- # * +:has_more_results+ - (Boolean)
84
+ # * `:pipeline_objects` - (Array<Hash>)
85
+ # * `:id` - (String)
86
+ # * `:name` - (String)
87
+ # * `:fields` - (Array<Hash>)
88
+ # * `:key` - (String)
89
+ # * `:string_value` - (String)
90
+ # * `:ref_value` - (String)
91
+ # * `:marker` - (String)
92
+ # * `:has_more_results` - (Boolean)
91
93
 
92
94
  # @!method describe_pipelines(options = {})
93
95
  # Calls the DescribePipelines API operation.
94
96
  # @param [Hash] options
95
- # * +:pipeline_ids+ - *required* - (Array<String>) Identifiers of the
97
+ # * `:pipeline_ids` - *required* - (Array<String>) Identifiers of the
96
98
  # pipelines to describe. You can pass as many as 25 identifiers in a
97
99
  # single call to DescribePipelines. You can obtain pipeline
98
100
  # identifiers by calling ListPipelines.
99
101
  # @return [Core::Response]
100
102
  # The #data method of the response object returns
101
103
  # a hash with the following structure:
102
- # * +:pipeline_description_list+ - (Array<Hash>)
103
- # * +:pipeline_id+ - (String)
104
- # * +:name+ - (String)
105
- # * +:fields+ - (Array<Hash>)
106
- # * +:key+ - (String)
107
- # * +:string_value+ - (String)
108
- # * +:ref_value+ - (String)
109
- # * +:description+ - (String)
104
+ # * `:pipeline_description_list` - (Array<Hash>)
105
+ # * `:pipeline_id` - (String)
106
+ # * `:name` - (String)
107
+ # * `:fields` - (Array<Hash>)
108
+ # * `:key` - (String)
109
+ # * `:string_value` - (String)
110
+ # * `:ref_value` - (String)
111
+ # * `:description` - (String)
110
112
 
111
113
  # @!method evaluate_expression(options = {})
112
114
  # Calls the EvaluateExpression API operation.
113
115
  # @param [Hash] options
114
- # * +:pipeline_id+ - *required* - (String)
115
- # * +:object_id+ - *required* - (String)
116
- # * +:expression+ - *required* - (String)
116
+ # * `:pipeline_id` - *required* - (String) The identifier of the
117
+ # pipeline.
118
+ # * `:object_id` - *required* - (String) The identifier of the object.
119
+ # * `:expression` - *required* - (String) The expression to evaluate.
117
120
  # @return [Core::Response]
118
121
  # The #data method of the response object returns
119
122
  # a hash with the following structure:
120
- # * +:evaluated_expression+ - (String)
123
+ # * `:evaluated_expression` - (String)
121
124
 
122
125
  # @!method get_pipeline_definition(options = {})
123
126
  # Calls the GetPipelineDefinition API operation.
124
127
  # @param [Hash] options
125
- # * +:pipeline_id+ - *required* - (String) The identifier of the
128
+ # * `:pipeline_id` - *required* - (String) The identifier of the
126
129
  # pipeline.
127
- # * +:version+ - (String)
130
+ # * `:version` - (String) The version of the pipeline definition to
131
+ # retrieve.
128
132
  # @return [Core::Response]
129
133
  # The #data method of the response object returns
130
134
  # a hash with the following structure:
131
- # * +:pipeline_objects+ - (Array<Hash>)
132
- # * +:id+ - (String)
133
- # * +:name+ - (String)
134
- # * +:fields+ - (Array<Hash>)
135
- # * +:key+ - (String)
136
- # * +:string_value+ - (String)
137
- # * +:ref_value+ - (String)
135
+ # * `:pipeline_objects` - (Array<Hash>)
136
+ # * `:id` - (String)
137
+ # * `:name` - (String)
138
+ # * `:fields` - (Array<Hash>)
139
+ # * `:key` - (String)
140
+ # * `:string_value` - (String)
141
+ # * `:ref_value` - (String)
138
142
 
139
143
  # @!method list_pipelines(options = {})
140
144
  # Calls the ListPipelines API operation.
141
145
  # @param [Hash] options
142
- # * +:marker+ - (String) The starting point for the results to be
146
+ # * `:marker` - (String) The starting point for the results to be
143
147
  # returned. The first time you call ListPipelines, this value should
144
148
  # be empty. As long as the action returns HasMoreResults as True, you
145
149
  # can call ListPipelines again and pass the marker value from the
@@ -147,159 +151,211 @@ module AWS
147
151
  # @return [Core::Response]
148
152
  # The #data method of the response object returns
149
153
  # a hash with the following structure:
150
- # * +:pipeline_id_list+ - (Array<Hash>)
151
- # * +:id+ - (String)
152
- # * +:name+ - (String)
153
- # * +:marker+ - (String)
154
- # * +:has_more_results+ - (Boolean)
154
+ # * `:pipeline_id_list` - (Array<Hash>)
155
+ # * `:id` - (String)
156
+ # * `:name` - (String)
157
+ # * `:marker` - (String)
158
+ # * `:has_more_results` - (Boolean)
155
159
 
156
160
  # @!method poll_for_task(options = {})
157
161
  # Calls the PollForTask API operation.
158
162
  # @param [Hash] options
159
- # * +:worker_group+ - *required* - (String) Indicates the type of task
160
- # the worker is configured to accept and process. The worker group is
161
- # set as a field on objects in the pipeline when they are created.
162
- # You can only specify a single value for workerGroup in the call to
163
- # PollForTask. There are no wildcard values permitted in workerGroup,
164
- # the string must be an exact match.
165
- # * +:hostname+ - (String) The public DNS name of the calling worker
166
- # client.
167
- # * +:instance_identity+ - (Hash) Identity information for the Amazon
168
- # EC2 instance that is hosting the worker client.
169
- # * +:document+ - (String) A description of an Amazon EC2 instance
163
+ # * `:worker_group` - *required* - (String) Indicates the type of task
164
+ # the task runner is configured to accept and process. The worker
165
+ # group is set as a field on objects in the pipeline when they are
166
+ # created. You can only specify a single value for workerGroup in the
167
+ # call to PollForTask. There are no wildcard values permitted in
168
+ # workerGroup, the string must be an exact, case-sensitive, match.
169
+ # * `:hostname` - (String) The public DNS name of the calling task
170
+ # runner.
171
+ # * `:instance_identity` - (Hash) Identity information for the Amazon
172
+ # EC2 instance that is hosting the task runner. You can get this
173
+ # value by calling the URI,
174
+ # http://169.254.169.254/latest/meta-data/instance-id, from the EC2
175
+ # instance. For more information, go to Instance Metadata in the
176
+ # Amazon Elastic Compute Cloud User Guide. Passing in this value
177
+ # proves that your task runner is running on an EC2 instance, and
178
+ # ensures the proper AWS Data Pipeline service charges are applied to
179
+ # your pipeline.
180
+ # * `:document` - (String) A description of an Amazon EC2 instance
170
181
  # that is generated when the instance is launched and exposed to
171
182
  # the instance via the instance meta-data service in the form of a
172
183
  # JSON representation of an object.
173
- # * +:signature+ - (String) A signature which can be used to verify
184
+ # * `:signature` - (String) A signature which can be used to verify
174
185
  # the accuracy and authenticity of the information provided in the
175
186
  # instance identity document.
176
187
  # @return [Core::Response]
177
188
  # The #data method of the response object returns
178
189
  # a hash with the following structure:
179
- # * +:task_object+ - (Hash)
180
- # * +:task_id+ - (String)
181
- # * +:pipeline_id+ - (String)
182
- # * +:attempt_id+ - (String)
183
- # * +:objects+ - (Hash<String,Hash>)
184
- # * +:id+ - (String)
185
- # * +:name+ - (String)
186
- # * +:fields+ - (Array<Hash>)
187
- # * +:key+ - (String)
188
- # * +:string_value+ - (String)
189
- # * +:ref_value+ - (String)
190
+ # * `:task_object` - (Hash)
191
+ # * `:task_id` - (String)
192
+ # * `:pipeline_id` - (String)
193
+ # * `:attempt_id` - (String)
194
+ # * `:objects` - (Hash<String,Hash>)
195
+ # * `:id` - (String)
196
+ # * `:name` - (String)
197
+ # * `:fields` - (Array<Hash>)
198
+ # * `:key` - (String)
199
+ # * `:string_value` - (String)
200
+ # * `:ref_value` - (String)
190
201
 
191
202
  # @!method put_pipeline_definition(options = {})
192
203
  # Calls the PutPipelineDefinition API operation.
193
204
  # @param [Hash] options
194
- # * +:pipeline_id+ - *required* - (String) The identifier of the
205
+ # * `:pipeline_id` - *required* - (String) The identifier of the
195
206
  # pipeline to be configured.
196
- # * +:pipeline_objects+ - *required* - (Array<Hash>) The objects that
207
+ # * `:pipeline_objects` - *required* - (Array<Hash>) The objects that
197
208
  # define the pipeline. These will overwrite the existing pipeline
198
209
  # definition.
199
- # * +:id+ - *required* - (String) Identifier of the object.
200
- # * +:name+ - *required* - (String) Name of the object.
201
- # * +:fields+ - *required* - (Array<Hash>) Key-value pairs that
210
+ # * `:id` - *required* - (String) Identifier of the object.
211
+ # * `:name` - *required* - (String) Name of the object.
212
+ # * `:fields` - *required* - (Array<Hash>) Key-value pairs that
202
213
  # define the properties of the object.
203
- # * +:key+ - *required* - (String) The field identifier.
204
- # * +:string_value+ - (String) The field value, expressed as a
214
+ # * `:key` - *required* - (String) The field identifier.
215
+ # * `:string_value` - (String) The field value, expressed as a
205
216
  # String.
206
- # * +:ref_value+ - (String) The field value, expressed as the
217
+ # * `:ref_value` - (String) The field value, expressed as the
207
218
  # identifier of another object.
208
219
  # @return [Core::Response]
209
220
  # The #data method of the response object returns
210
221
  # a hash with the following structure:
211
- # * +:validation_errors+ - (Array<Hash>)
212
- # * +:id+ - (String)
213
- # * +:errors+ - (Array<String>)
214
- # * +:errored+ - (Boolean)
222
+ # * `:validation_errors` - (Array<Hash>)
223
+ # * `:id` - (String)
224
+ # * `:errors` - (Array<String>)
225
+ # * `:errored` - (Boolean)
215
226
 
216
227
  # @!method query_objects(options = {})
217
228
  # Calls the QueryObjects API operation.
218
229
  # @param [Hash] options
219
- # * +:pipeline_id+ - *required* - (String) Identifier of the pipeline
230
+ # * `:pipeline_id` - *required* - (String) Identifier of the pipeline
220
231
  # to be queried for object names.
221
- # * +:query+ - (Hash) Query that defines the objects to be returned.
232
+ # * `:query` - (Hash) Query that defines the objects to be returned.
222
233
  # The Query object can contain a maximum of ten selectors. The
223
234
  # conditions in the query are limited to top-level String fields in
224
- # the object. These filters can be applied to both logical, physical,
225
- # and physical attempt objects.
226
- # * +:selectors+ - (Array<Hash>) List of selectors that define the
235
+ # the object. These filters can be applied to components, instances,
236
+ # and attempts.
237
+ # * `:selectors` - (Array<Hash>) List of selectors that define the
227
238
  # query. An object must satisfy all of the selectors to match the
228
239
  # query.
229
- # * +:field_name+ - (String) The name of the field that the
240
+ # * `:field_name` - (String) The name of the field that the
230
241
  # operator will be applied to. The field name is the "key"
231
242
  # portion of the field definition in the pipeline definition
232
- # syntax that is used by the AWS Data Pipeline API.
233
- # * +:operator+ - (Hash)
234
- # * +:type+ - (String) The logical operation to be performed:
243
+ # syntax that is used by the AWS Data Pipeline API. If the field
244
+ # is not set on the object, the condition fails.
245
+ # * `:operator` - (Hash)
246
+ # * `:type` - (String) The logical operation to be performed:
235
247
  # equal (EQ), equal reference (REF_EQ), less than or equal
236
248
  # (LE), greater than or equal (GE), or between (BETWEEN). Equal
237
249
  # reference (REF_EQ) can be used only with reference fields.
238
250
  # The other comparison types can be used only with String
239
- # fields.
240
- # * +:values+ - (Array<String>) The value that the actual field
251
+ # fields. The comparison types you can use apply only to
252
+ # certain object fields, as detailed below. The comparison
253
+ # operators EQ and REF_EQ act on the following fields: name
254
+ # @sphere parent @componentParent @instanceParent @status
255
+ # @scheduledStartTime @scheduledEndTime @actualStartTime
256
+ # @actualEndTime The comparison operators GE, LE, and BETWEEN
257
+ # act on the following fields: @scheduledStartTime
258
+ # @scheduledEndTime @actualStartTime @actualEndTime Note that
259
+ # fields beginning with the at sign (@) are read-only and set
260
+ # by the web service. When you name fields, you should choose
261
+ # names containing only alpha-numeric values, as symbols may be
262
+ # reserved by AWS Data Pipeline. A best practice for
263
+ # user-defined fields that you add to a pipeline is to prefix
264
+ # their name with the string "my". Valid values include:
265
+ # * `EQ`
266
+ # * `REF_EQ`
267
+ # * `LE`
268
+ # * `GE`
269
+ # * `BETWEEN`
270
+ # * `:values` - (Array<String>) The value that the actual field
241
271
  # value will be compared with.
242
- # * +:sphere+ - *required* - (String) Specifies whether the query
243
- # applies to logical objects or physical objects. Allowable values:
244
- # LO (logical object), PO (physical object), POAttempt (physical
245
- # object attempt).
246
- # * +:marker+ - (String) The starting point for the results to be
272
+ # * `:sphere` - *required* - (String) Specifies whether the query
273
+ # applies to components or instances. Allowable values: COMPONENT,
274
+ # INSTANCE, ATTEMPT.
275
+ # * `:marker` - (String) The starting point for the results to be
247
276
  # returned. The first time you call QueryObjects, this value should
248
277
  # be empty. As long as the action returns HasMoreResults as True, you
249
278
  # can call QueryObjects again and pass the marker value from the
250
279
  # response to retrieve the next set of results.
251
- # * +:limit+ - (Integer) Specifies the maximum number of object names
280
+ # * `:limit` - (Integer) Specifies the maximum number of object names
252
281
  # that QueryObjects will return in a single call. The default value
253
282
  # is 100.
254
283
  # @return [Core::Response]
255
284
  # The #data method of the response object returns
256
285
  # a hash with the following structure:
257
- # * +:ids+ - (Array<String>)
258
- # * +:marker+ - (String)
259
- # * +:has_more_results+ - (Boolean)
286
+ # * `:ids` - (Array<String>)
287
+ # * `:marker` - (String)
288
+ # * `:has_more_results` - (Boolean)
260
289
 
261
290
  # @!method report_task_progress(options = {})
262
291
  # Calls the ReportTaskProgress API operation.
263
292
  # @param [Hash] options
264
- # * +:task_id+ - *required* - (String) Identifier of the task assigned
265
- # to the worker. This value is provided in the TaskObject that the
266
- # service returns with the response for the PollForTask action.
293
+ # * `:task_id` - *required* - (String) Identifier of the task assigned
294
+ # to the task runner. This value is provided in the TaskObject that
295
+ # the service returns with the response for the PollForTask action.
296
+ # @return [Core::Response]
297
+ # The #data method of the response object returns
298
+ # a hash with the following structure:
299
+ # * `:canceled` - (Boolean)
300
+
301
+ # @!method report_task_runner_heartbeat(options = {})
302
+ # Calls the ReportTaskRunnerHeartbeat API operation.
303
+ # @param [Hash] options
304
+ # * `:taskrunner_id` - *required* - (String) The identifier of the task
305
+ # runner. This value should be unique across your AWS account. In the
306
+ # case of AWS Data Pipeline Task Runner launched on a resource
307
+ # managed by AWS Data Pipeline, the web service provides a unique
308
+ # identifier when it launches the application. If you have written a
309
+ # custom task runner, you should assign a unique identifier for the
310
+ # task runner.
311
+ # * `:worker_group` - (String) Indicates the type of task the task
312
+ # runner is configured to accept and process. The worker group is set
313
+ # as a field on objects in the pipeline when they are created. You
314
+ # can only specify a single value for workerGroup in the call to
315
+ # ReportTaskRunnerHeartbeat. There are no wildcard values permitted
316
+ # in workerGroup, the string must be an exact, case-sensitive, match.
317
+ # * `:hostname` - (String) The public DNS name of the calling task
318
+ # runner.
267
319
  # @return [Core::Response]
268
320
  # The #data method of the response object returns
269
321
  # a hash with the following structure:
270
- # * +:canceled+ - (Boolean)
322
+ # * `:terminate` - (Boolean)
271
323
 
272
324
  # @!method set_status(options = {})
273
325
  # Calls the SetStatus API operation.
274
326
  # @param [Hash] options
275
- # * +:pipeline_id+ - *required* - (String) Identifies the pipeline that
327
+ # * `:pipeline_id` - *required* - (String) Identifies the pipeline that
276
328
  # contains the objects.
277
- # * +:object_ids+ - *required* - (Array<String>) Identifies an array of
329
+ # * `:object_ids` - *required* - (Array<String>) Identifies an array of
278
330
  # objects. The corresponding objects can be either physical or
279
- # logical objects, but not a mix of both types.
280
- # * +:status+ - *required* - (String) Specifies the status to be set on
281
- # all the objects in objectIds.member.N. For logical objects, this
282
- # can be either pause or resume. For physical objects, this can be
283
- # either cancel or rerun.
331
+ # components, but not a mix of both types.
332
+ # * `:status` - *required* - (String) Specifies the status to be set on
333
+ # all the objects in objectIds. For components, this can be either
334
+ # PAUSE or RESUME. For instances, this can be either CANCEL, RERUN,
335
+ # or MARK_FINISHED.
284
336
  # @return [Core::Response]
285
337
 
286
338
  # @!method set_task_status(options = {})
287
339
  # Calls the SetTaskStatus API operation.
288
340
  # @param [Hash] options
289
- # * +:task_id+ - *required* - (String) Identifies the task assigned to
290
- # the worker. This value is set in the TaskObject that is returned by
291
- # the PollForTask action.
292
- # * +:task_status+ - *required* - (String) If FINISHED, the task was
293
- # Status successfully completed.
294
- # * +:error_code+ - (Integer) If an error occurred during the task,
341
+ # * `:task_id` - *required* - (String) Identifies the task assigned to
342
+ # the task runner. This value is set in the TaskObject that is
343
+ # returned by the PollForTask action.
344
+ # * `:task_status` - *required* - (String) If FINISHED, the task
345
+ # successfully completed. If FAILED the task ended unsuccessfully.
346
+ # The FALSE value is used by preconditions. Valid values include:
347
+ # * `FINISHED`
348
+ # * `FAILED`
349
+ # * `FALSE`
350
+ # * `:error_code` - (Integer) If an error occurred during the task,
295
351
  # specifies a numerical value that represents the error. This value
296
352
  # is set on the physical attempt object. It is used to display error
297
353
  # information to the user. The web service does not parse this value.
298
- # * +:error_message+ - (String) If an error occurred during the task,
354
+ # * `:error_message` - (String) If an error occurred during the task,
299
355
  # specifies a text description of the error. This value is set on the
300
356
  # physical attempt object. It is used to display error information to
301
357
  # the user. The web service does not parse this value.
302
- # * +:error_stack_trace+ - (String) If an error occurred during the
358
+ # * `:error_stack_trace` - (String) If an error occurred during the
303
359
  # task, specifies the stack trace associated with the error. This
304
360
  # value is set on the physical attempt object. It is used to display
305
361
  # error information to the user. The web service does not parse this
@@ -309,26 +365,26 @@ module AWS
309
365
  # @!method validate_pipeline_definition(options = {})
310
366
  # Calls the ValidatePipelineDefinition API operation.
311
367
  # @param [Hash] options
312
- # * +:pipeline_id+ - *required* - (String) Identifies the pipeline
368
+ # * `:pipeline_id` - *required* - (String) Identifies the pipeline
313
369
  # whose definition is to be validated.
314
- # * +:pipeline_objects+ - *required* - (Array<Hash>) A list of objects
370
+ # * `:pipeline_objects` - *required* - (Array<Hash>) A list of objects
315
371
  # that define the pipeline changes to validate against the pipeline.
316
- # * +:id+ - *required* - (String) Identifier of the object.
317
- # * +:name+ - *required* - (String) Name of the object.
318
- # * +:fields+ - *required* - (Array<Hash>) Key-value pairs that
372
+ # * `:id` - *required* - (String) Identifier of the object.
373
+ # * `:name` - *required* - (String) Name of the object.
374
+ # * `:fields` - *required* - (Array<Hash>) Key-value pairs that
319
375
  # define the properties of the object.
320
- # * +:key+ - *required* - (String) The field identifier.
321
- # * +:string_value+ - (String) The field value, expressed as a
376
+ # * `:key` - *required* - (String) The field identifier.
377
+ # * `:string_value` - (String) The field value, expressed as a
322
378
  # String.
323
- # * +:ref_value+ - (String) The field value, expressed as the
379
+ # * `:ref_value` - (String) The field value, expressed as the
324
380
  # identifier of another object.
325
381
  # @return [Core::Response]
326
382
  # The #data method of the response object returns
327
383
  # a hash with the following structure:
328
- # * +:validation_errors+ - (Array<Hash>)
329
- # * +:id+ - (String)
330
- # * +:errors+ - (Array<String>)
331
- # * +:errored+ - (Boolean)
384
+ # * `:validation_errors` - (Array<Hash>)
385
+ # * `:id` - (String)
386
+ # * `:errors` - (Array<String>)
387
+ # * `:errored` - (Boolean)
332
388
 
333
389
  # end client methods #
334
390