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
@@ -13,6 +13,6 @@
13
13
 
14
14
  AWS::Core::Configuration.module_eval do
15
15
 
16
- add_service 'CloudSearch', 'cloud_search', 'cloudsearch.us-east-1.amazonaws.com'
16
+ add_service 'CloudSearch', 'cloud_search', 'cloudsearch.%s.amazonaws.com'
17
17
 
18
18
  end
@@ -19,41 +19,41 @@ module AWS
19
19
  # This class is the starting point for working with Amazon CloudWatch.
20
20
  #
21
21
  # To use Amazon CloudWatch you must first
22
- # {sign up here}[http://aws.amazon.com/cloudwatch/].
22
+ # [sign up here](http://aws.amazon.com/cloudwatch/).
23
23
  #
24
24
  # For more information about Amazon CloudWatch:
25
25
  #
26
- # * {Amazon CloudWatch}[http://aws.amazon.com/cloudwatch/]
27
- # * {Amazon CloudWatch Documentation}[http://aws.amazon.com/documentation/cloudwatch/]
26
+ # * [Amazon CloudWatch](http://aws.amazon.com/cloudwatch/)
27
+ # * [Amazon CloudWatch Documentation](http://aws.amazon.com/documentation/cloudwatch/)
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::Route53 interface:
39
39
  #
40
- # cw = AWS::CloudWatch.new(
41
- # :access_key_id => 'YOUR_ACCESS_KEY_ID',
42
- # :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
40
+ # cw = AWS::CloudWatch.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::CloudWatch does not provide higher level abstractions for CloudWatch at
47
47
  # this time. You can still access all of the API methods using
48
48
  # {AWS::CloudWatch::Client}. Here is how you access the client and make
49
49
  # a simple request:
50
50
  #
51
- # cw = AWS::CloudWatch.new
51
+ # cw = AWS::CloudWatch.new
52
52
  #
53
- # resp = cw.client.describe_alarms
54
- # resp[:metric_alarms].each do |alarm|
55
- # puts alarm[:alarm_name]
56
- # end
53
+ # resp = cw.client.describe_alarms
54
+ # resp[:metric_alarms].each do |alarm|
55
+ # puts alarm[:alarm_name]
56
+ # end
57
57
  #
58
58
  # See {Client} for documentation on all of the supported operations.
59
59
  #
@@ -61,35 +61,35 @@ module AWS
61
61
  # @return [Client] the low-level CloudWatch client object
62
62
  class CloudWatch
63
63
 
64
- AWS.register_autoloads(self, 'aws/cloud_watch') do
65
- autoload :Alarm, 'alarm'
66
- autoload :AlarmCollection, 'alarm_collection'
67
- autoload :AlarmHistoryItem, 'alarm_history_item'
68
- autoload :AlarmHistoryItemCollection, 'alarm_history_item_collection'
69
- autoload :Client, 'client'
70
- autoload :Errors, 'errors'
71
- autoload :Metric, 'metric'
72
- autoload :MetricCollection, 'metric_collection'
73
- autoload :MetricAlarmCollection, 'metric_alarm_collection'
74
- autoload :MetricStatistics, 'metric_statistics'
75
- autoload :Request, 'request'
76
- end
64
+ autoload :Alarm, 'aws/cloud_watch/alarm'
65
+ autoload :AlarmCollection, 'aws/cloud_watch/alarm_collection'
66
+ autoload :AlarmHistoryItem, 'aws/cloud_watch/alarm_history_item'
67
+ autoload :AlarmHistoryItemCollection, 'aws/cloud_watch/alarm_history_item_collection'
68
+ autoload :Client, 'aws/cloud_watch/client'
69
+ autoload :Errors, 'aws/cloud_watch/errors'
70
+ autoload :Metric, 'aws/cloud_watch/metric'
71
+ autoload :MetricCollection, 'aws/cloud_watch/metric_collection'
72
+ autoload :MetricAlarmCollection, 'aws/cloud_watch/metric_alarm_collection'
73
+ autoload :MetricStatistics, 'aws/cloud_watch/metric_statistics'
74
+ autoload :Request, 'aws/cloud_watch/request'
77
75
 
78
76
  include Core::ServiceInterface
79
77
 
78
+ endpoint_prefix 'monitoring'
79
+
80
80
  # Puts data for a metric. The metric is created if it does not already
81
81
  # exist.
82
82
  #
83
- # cw.put_metric_data(
84
- # :namespace => 'test/cli',
85
- # :metric_data => [
86
- # { :metric_name => 'sample', :value => 1 },
87
- # { :metric_name => 'sample', :value => 2 },
88
- # { :metric_name => 'sample', :value => 3 },
89
- # { :metric_name => 'sample', :value => 4 },
90
- # { :metric_name => 'sample', :value => 5 },
91
- # ]
92
- # )
83
+ # cw.put_metric_data(
84
+ # :namespace => 'test/cli',
85
+ # :metric_data => [
86
+ # { :metric_name => 'sample', :value => 1 },
87
+ # { :metric_name => 'sample', :value => 2 },
88
+ # { :metric_name => 'sample', :value => 3 },
89
+ # { :metric_name => 'sample', :value => 4 },
90
+ # { :metric_name => 'sample', :value => 5 },
91
+ # ]
92
+ # )
93
93
  #
94
94
  # @param [Hash] options
95
95
  # @see Client#put_metric_data
@@ -20,11 +20,11 @@ module AWS
20
20
  #
21
21
  # @attr_reader [Array<Hash>] dimensions
22
22
  #
23
- # @attr_reader [Boolean] enabled Indicates whether actions
23
+ # @attr_reader [Boolean] enabled Indicates whether actions
24
24
  # should be executed during any changes to the alarm's state.
25
25
  #
26
- # @attr_reader [Array<String>] alarm_actions The list of actions to execute
27
- # when this alarm transitions into an ALARM state from any other
26
+ # @attr_reader [Array<String>] alarm_actions The list of actions to execute
27
+ # when this alarm transitions into an ALARM state from any other
28
28
  # state.
29
29
  #
30
30
  # @attr_reader [String] arn The Amazon Resource Name (ARN) of the alarm.
@@ -34,11 +34,11 @@ module AWS
34
34
  #
35
35
  # @attr_reader [String] description The description for the alarm.
36
36
  #
37
- # @attr_reader [String] comparison_operator The arithmetic operation to
38
- # use when comparing the specified Statistic and Threshold. The
37
+ # @attr_reader [String] comparison_operator The arithmetic operation to
38
+ # use when comparing the specified Statistic and Threshold. The
39
39
  # specified Statistic value is used as the first operand.
40
40
  #
41
- # @attr_reader [Integer] evaluation_periods The number of periods over
41
+ # @attr_reader [Integer] evaluation_periods The number of periods over
42
42
  # which data is compared to the specified threshold.
43
43
  #
44
44
  # @attr_reader [Array<Hash>] insufficient_data_actions The list of
@@ -48,7 +48,7 @@ module AWS
48
48
  # @attr_reader [Array<Hash>] ok_actions The list of actions to execute
49
49
  # when this alarm transitions into an OK state.
50
50
  #
51
- # @attr_reader [Integer] period The period in seconds over which the
51
+ # @attr_reader [Integer] period The period in seconds over which the
52
52
  # statistic is applied.
53
53
  #
54
54
  # @attr_reader [String] state_reason A human-readable explanation for
@@ -102,7 +102,7 @@ module AWS
102
102
 
103
103
  attribute :alarm_configuration_updated_timestamp
104
104
 
105
- alias_method :configuration_updated_timestamp,
105
+ alias_method :configuration_updated_timestamp,
106
106
  :alarm_configuration_updated_timestamp
107
107
 
108
108
  attribute :alarm_description
@@ -152,50 +152,63 @@ module AWS
152
152
  # Updates the metric alarm.
153
153
  #
154
154
  # @option options [String,required] :comparison_operator The arithmetic
155
- # operation to use when comparing the specified Statistic and
156
- # Threshold. The specified Statistic value is used as the first
155
+ # operation to use when comparing the specified Statistic and
156
+ # Threshold. The specified Statistic value is used as the first
157
157
  # operand. Valid values include:
158
- # * 'GreaterThanOrEqualToThreshold'
159
- # * 'GreaterThanThreshold'
160
- # * 'LessThanThreshold'
161
- # * 'LessThanOrEqualToThreshold'
162
- # @option options [Integer,required] :evaluation_periods The number
158
+ #
159
+ # * 'GreaterThanOrEqualToThreshold'
160
+ # * 'GreaterThanThreshold'
161
+ # * 'LessThanThreshold'
162
+ # * 'LessThanOrEqualToThreshold'
163
+ #
164
+ # @option options [Integer,required] :evaluation_periods The number
163
165
  # of periods over which data is compared to the specified threshold.
164
- # @option options [Integer,required] :period The period in seconds
166
+ #
167
+ # @option options [Integer,required] :period The period in seconds
165
168
  # over which the specified statistic is applied.
166
- # @option options [String,required] :statistic The statistic to apply
169
+ #
170
+ # @option options [String,required] :statistic The statistic to apply
167
171
  # to the alarm's associated metric. Valid values include:
168
- # * 'SampleCount'
169
- # * 'Average'
170
- # * 'Sum'
171
- # * 'Minimum'
172
- # * 'Maximum'
172
+ #
173
+ # * 'SampleCount'
174
+ # * 'Average'
175
+ # * 'Sum'
176
+ # * 'Minimum'
177
+ # * 'Maximum'
178
+ #
173
179
  # @option options [Number,required] :threshold The value against which
174
180
  # the specified statistic is compared.
181
+ #
175
182
  # @option options [Array<String>] :insufficient_data_actions
176
- # The list of actions to execute when this alarm transitions into an
177
- # INSUFFICIENT_DATA state from any other state. Each action is
178
- # specified as an Amazon Resource Number (ARN). Currently the only
179
- # action supported is publishing to an Amazon SNS topic or an
183
+ # The list of actions to execute when this alarm transitions into an
184
+ # INSUFFICIENT_DATA state from any other state. Each action is
185
+ # specified as an Amazon Resource Number (ARN). Currently the only
186
+ # action supported is publishing to an Amazon SNS topic or an
180
187
  # Amazon Auto Scaling policy.
188
+ #
181
189
  # @option options [Array<String>] :ok_actions The list of actions to
182
190
  # execute when this alarm transitions into an OK state from any
183
191
  # other state. Each action is specified as an Amazon Resource
184
192
  # Number (ARN). Currently the only action supported is publishing to
185
193
  # an Amazon SNS topic or an Amazon Auto Scaling policy.
186
- # @option options [Boolean] :actions_enabled Indicates whether or not
187
- # actions should be executed during any changes to the alarm's
194
+ #
195
+ # @option options [Boolean] :actions_enabled Indicates whether or not
196
+ # actions should be executed during any changes to the alarm's
188
197
  # state.
189
- # @option options [Array<String>] :alarm_actions The list of actions
190
- # to execute when this alarm transitions into an ALARM state from
191
- # any other state. Each action is specified as an Amazon Resource
192
- # Number (ARN). Currently the only action supported is publishing
198
+ #
199
+ # @option options [Array<String>] :alarm_actions The list of actions
200
+ # to execute when this alarm transitions into an ALARM state from
201
+ # any other state. Each action is specified as an Amazon Resource
202
+ # Number (ARN). Currently the only action supported is publishing
193
203
  # to an Amazon SNS topic or an Amazon Auto Scaling policy.
194
204
  # Maximum of 5 alarm actions.
195
- # @option options [String] :alarm_description The description for
205
+ #
206
+ # @option options [String] :alarm_description The description for
196
207
  # the alarm.
197
- # @option options [String] :unit The unit for the alarm's associated
208
+ #
209
+ # @option options [String] :unit The unit for the alarm's associated
198
210
  # metric.
211
+ #
199
212
  # @return [nil]
200
213
  def update options = {}
201
214
  options[:alarm_name] = alarm_name
@@ -238,16 +251,21 @@ module AWS
238
251
  alias_method :histories, :history_items
239
252
 
240
253
  # Temporarily sets the state of current alarm.
241
- # @param [String] reason The reason that this alarm is set to this
254
+ # @param [String] reason The reason that this alarm is set to this
242
255
  # specific state (in human-readable text format).
256
+ #
243
257
  # @param [String] value Valid values include:
258
+ #
244
259
  # * 'OK'
245
260
  # * 'ALARM'
246
261
  # * 'INSUFFICIENT_DATA'
262
+ #
247
263
  # @param [Hash] options
248
- # @option options [String] :state_reason_data The reason that this
249
- # alarm is set to this specific state (in machine-readable JSON
264
+ # @option options [String] :state_reason_data The reason that this
265
+ #
266
+ # alarm is set to this specific state (in machine-readable JSON
250
267
  # format)
268
+ #
251
269
  # @return [nil]
252
270
  def set_state reason, value, options = {}
253
271
  options[:alarm_name] = alarm_name
@@ -14,33 +14,33 @@
14
14
  module AWS
15
15
  class CloudWatch
16
16
 
17
- # = AlarmCollection
18
- #
17
+ # # AlarmCollection
18
+ #
19
19
  # Represents alarms for an AWS account.
20
20
  #
21
- # == Getting an alarm by name
21
+ # ## Getting an alarm by name
22
22
  #
23
23
  # If you know the name of the alarm, you can get a reference using
24
24
  # the {#[]} method.
25
25
  #
26
- # cw = AWS::CloudWatch.new
27
- # alarm = cw.alarms['alarm-name']
26
+ # cw = AWS::CloudWatch.new
27
+ # alarm = cw.alarms['alarm-name']
28
28
  #
29
- # == Enumerating Alarms
29
+ # ## Enumerating Alarms
30
30
  #
31
31
  # You can enumerate all alarms using each (or any of the
32
32
  # methods defined in {Core::Collection}).
33
33
  #
34
- # cw.alarms.each do |alarm|
35
- # puts alarm.name
36
- # end
34
+ # cw.alarms.each do |alarm|
35
+ # puts alarm.name
36
+ # end
37
37
  #
38
- # == Filtering Alarms
38
+ # ## Filtering Alarms
39
39
  #
40
40
  # Use one of the filtering methods to reduce the number of alarms
41
41
  # returned.
42
42
  #
43
- # cw.alarms.with_name_prefix('some-prefix-').each {|alarm| ... }
43
+ # cw.alarms.with_name_prefix('some-prefix-').each {|alarm| ... }
44
44
  #
45
45
  class AlarmCollection
46
46
 
@@ -59,16 +59,16 @@ module AWS
59
59
 
60
60
  # Creates an alarm and associates it with the specified metric.
61
61
  #
62
- # @param [String] alarm_name The descriptive name for the alarm.
62
+ # @param [String] alarm_name The descriptive name for the alarm.
63
63
  # This name must be unique within the user's AWS account.
64
64
  # @param [Hash] options
65
- # @option options [String,required] :namespace The namespace for the
65
+ # @option options [String,required] :namespace The namespace for the
66
66
  # alarm's associated metric.
67
- # @option options [String,required] :metric_name The name for the
67
+ # @option options [String,required] :metric_name The name for the
68
68
  # alarm's associated metric.
69
- # @option options [Array<Hash>] :dimensions The dimensions for the
69
+ # @option options [Array<Hash>] :dimensions The dimensions for the
70
70
  # alarm's associated metric. Each dimension must specify a
71
- # +:name+ and a +:value+.
71
+ # `:name` and a `:value`.
72
72
  # @option (see Alarm#update)
73
73
  # @return [Alarm]
74
74
  def create alarm_name, options = {}
@@ -79,7 +79,7 @@ module AWS
79
79
 
80
80
  # Delete one or more alarms by name.
81
81
  #
82
- # cloud_watch.alarms.delete('alarm1', 'alarm2')
82
+ # cloud_watch.alarms.delete('alarm1', 'alarm2')
83
83
  #
84
84
  # @param [String,Array<String>] alarm_names
85
85
  # @return [nil]
@@ -136,7 +136,7 @@ module AWS
136
136
 
137
137
  alarm = Alarm.new_from(
138
138
  :describe_alarms,
139
- details,
139
+ details,
140
140
  details[:alarm_name],
141
141
  :config => config)
142
142
 
@@ -63,14 +63,14 @@ module AWS
63
63
  protected
64
64
 
65
65
  def _each_item next_token, limit, options = {}, &block
66
-
66
+
67
67
  options = @filters.merge(options)
68
68
  options[:max_records] = limit if limit
69
69
  options[:next_token] = next_token if next_token
70
70
 
71
71
  resp = client.describe_alarm_history(options)
72
72
  resp.data[:alarm_history_items].each do |details|
73
-
73
+
74
74
  yield(AlarmHistoryItem.new(details))
75
75
 
76
76
  end
@@ -30,212 +30,426 @@ module AWS
30
30
  # @!method delete_alarms(options = {})
31
31
  # Calls the DeleteAlarms API operation.
32
32
  # @param [Hash] options
33
- # * +:alarm_names+ - *required* - (Array<String>)
33
+ # * `:alarm_names` - *required* - (Array<String>) A list of alarms to
34
+ # be deleted.
34
35
  # @return [Core::Response]
35
36
 
36
37
  # @!method describe_alarm_history(options = {})
37
38
  # Calls the DescribeAlarmHistory API operation.
38
39
  # @param [Hash] options
39
- # * +:alarm_name+ - (String)
40
- # * +:history_item_type+ - (String)
41
- # * +:start_date+ - (String<ISO8601 datetime>)
42
- # * +:end_date+ - (String<ISO8601 datetime>)
43
- # * +:max_records+ - (Integer)
44
- # * +:next_token+ - (String)
40
+ # * `:alarm_name` - (String) The name of the alarm.
41
+ # * `:history_item_type` - (String) The type of alarm histories to
42
+ # retrieve. Valid values include:
43
+ # * `ConfigurationUpdate`
44
+ # * `StateUpdate`
45
+ # * `Action`
46
+ # * `:start_date` - (String<ISO8601 datetime>) The starting date to
47
+ # retrieve alarm history.
48
+ # * `:end_date` - (String<ISO8601 datetime>) The ending date to
49
+ # retrieve alarm history.
50
+ # * `:max_records` - (Integer) The maximum number of alarm history
51
+ # records to retrieve.
52
+ # * `:next_token` - (String) The token returned by a previous call to
53
+ # indicate that there is more data available.
45
54
  # @return [Core::Response]
46
55
  # The #data method of the response object returns
47
56
  # a hash with the following structure:
48
- # * +:alarm_history_items+ - (Array<Hash>)
49
- # * +:alarm_name+ - (String)
50
- # * +:timestamp+ - (Time)
51
- # * +:history_item_type+ - (String)
52
- # * +:history_summary+ - (String)
53
- # * +:history_data+ - (String)
54
- # * +:next_token+ - (String)
57
+ # * `:alarm_history_items` - (Array<Hash>)
58
+ # * `:alarm_name` - (String)
59
+ # * `:timestamp` - (Time)
60
+ # * `:history_item_type` - (String)
61
+ # * `:history_summary` - (String)
62
+ # * `:history_data` - (String)
63
+ # * `:next_token` - (String)
55
64
 
56
65
  # @!method describe_alarms(options = {})
57
66
  # Calls the DescribeAlarms API operation.
58
67
  # @param [Hash] options
59
- # * +:alarm_names+ - (Array<String>)
60
- # * +:alarm_name_prefix+ - (String)
61
- # * +:state_value+ - (String)
62
- # * +:action_prefix+ - (String)
63
- # * +:max_records+ - (Integer)
64
- # * +:next_token+ - (String)
68
+ # * `:alarm_names` - (Array<String>) A list of alarm names to retrieve
69
+ # information for.
70
+ # * `:alarm_name_prefix` - (String) The alarm name prefix. AlarmNames
71
+ # cannot be specified if this parameter is specified.
72
+ # * `:state_value` - (String) The state value to be used in matching
73
+ # alarms. Valid values include:
74
+ # * `OK`
75
+ # * `ALARM`
76
+ # * `INSUFFICIENT_DATA`
77
+ # * `:action_prefix` - (String) The action name prefix.
78
+ # * `:max_records` - (Integer) The maximum number of alarm descriptions
79
+ # to retrieve.
80
+ # * `:next_token` - (String) The token returned by a previous call to
81
+ # indicate that there is more data available.
65
82
  # @return [Core::Response]
66
83
  # The #data method of the response object returns
67
84
  # a hash with the following structure:
68
- # * +:metric_alarms+ - (Array<Hash>)
69
- # * +:alarm_name+ - (String)
70
- # * +:alarm_arn+ - (String)
71
- # * +:alarm_description+ - (String)
72
- # * +:alarm_configuration_updated_timestamp+ - (Time)
73
- # * +:actions_enabled+ - (Boolean)
74
- # * +:ok_actions+ - (Array<String>)
75
- # * +:alarm_actions+ - (Array<String>)
76
- # * +:insufficient_data_actions+ - (Array<String>)
77
- # * +:state_value+ - (String)
78
- # * +:state_reason+ - (String)
79
- # * +:state_reason_data+ - (String)
80
- # * +:state_updated_timestamp+ - (Time)
81
- # * +:metric_name+ - (String)
82
- # * +:namespace+ - (String)
83
- # * +:statistic+ - (String)
84
- # * +:dimensions+ - (Array<Hash>)
85
- # * +:name+ - (String)
86
- # * +:value+ - (String)
87
- # * +:period+ - (Integer)
88
- # * +:unit+ - (String)
89
- # * +:evaluation_periods+ - (Integer)
90
- # * +:threshold+ - (Numeric)
91
- # * +:comparison_operator+ - (String)
92
- # * +:next_token+ - (String)
85
+ # * `:metric_alarms` - (Array<Hash>)
86
+ # * `:alarm_name` - (String)
87
+ # * `:alarm_arn` - (String)
88
+ # * `:alarm_description` - (String)
89
+ # * `:alarm_configuration_updated_timestamp` - (Time)
90
+ # * `:actions_enabled` - (Boolean)
91
+ # * `:ok_actions` - (Array<String>)
92
+ # * `:alarm_actions` - (Array<String>)
93
+ # * `:insufficient_data_actions` - (Array<String>)
94
+ # * `:state_value` - (String)
95
+ # * `:state_reason` - (String)
96
+ # * `:state_reason_data` - (String)
97
+ # * `:state_updated_timestamp` - (Time)
98
+ # * `:metric_name` - (String)
99
+ # * `:namespace` - (String)
100
+ # * `:statistic` - (String)
101
+ # * `:dimensions` - (Array<Hash>)
102
+ # * `:name` - (String)
103
+ # * `:value` - (String)
104
+ # * `:period` - (Integer)
105
+ # * `:unit` - (String)
106
+ # * `:evaluation_periods` - (Integer)
107
+ # * `:threshold` - (Numeric)
108
+ # * `:comparison_operator` - (String)
109
+ # * `:next_token` - (String)
93
110
 
94
111
  # @!method describe_alarms_for_metric(options = {})
95
112
  # Calls the DescribeAlarmsForMetric API operation.
96
113
  # @param [Hash] options
97
- # * +:metric_name+ - *required* - (String)
98
- # * +:namespace+ - *required* - (String)
99
- # * +:statistic+ - (String)
100
- # * +:dimensions+ - (Array<Hash>)
101
- # * +:name+ - *required* - (String)
102
- # * +:value+ - *required* - (String)
103
- # * +:period+ - (Integer)
104
- # * +:unit+ - (String)
114
+ # * `:metric_name` - *required* - (String) The name of the metric.
115
+ # * `:namespace` - *required* - (String) The namespace of the metric.
116
+ # * `:statistic` - (String) The statistic for the metric. Valid values
117
+ # include:
118
+ # * `SampleCount`
119
+ # * `Average`
120
+ # * `Sum`
121
+ # * `Minimum`
122
+ # * `Maximum`
123
+ # * `:dimensions` - (Array<Hash>) The list of dimensions associated
124
+ # with the metric.
125
+ # * `:name` - *required* - (String) The name of the dimension.
126
+ # * `:value` - *required* - (String) The value representing the
127
+ # dimension measurement
128
+ # * `:period` - (Integer) The period in seconds over which the
129
+ # statistic is applied.
130
+ # * `:unit` - (String) The unit for the metric. Valid values include:
131
+ # * `Seconds`
132
+ # * `Microseconds`
133
+ # * `Milliseconds`
134
+ # * `Bytes`
135
+ # * `Kilobytes`
136
+ # * `Megabytes`
137
+ # * `Gigabytes`
138
+ # * `Terabytes`
139
+ # * `Bits`
140
+ # * `Kilobits`
141
+ # * `Megabits`
142
+ # * `Gigabits`
143
+ # * `Terabits`
144
+ # * `Percent`
145
+ # * `Count`
146
+ # * `Bytes/Second`
147
+ # * `Kilobytes/Second`
148
+ # * `Megabytes/Second`
149
+ # * `Gigabytes/Second`
150
+ # * `Terabytes/Second`
151
+ # * `Bits/Second`
152
+ # * `Kilobits/Second`
153
+ # * `Megabits/Second`
154
+ # * `Gigabits/Second`
155
+ # * `Terabits/Second`
156
+ # * `Count/Second`
157
+ # * `None`
105
158
  # @return [Core::Response]
106
159
  # The #data method of the response object returns
107
160
  # a hash with the following structure:
108
- # * +:metric_alarms+ - (Array<Hash>)
109
- # * +:alarm_name+ - (String)
110
- # * +:alarm_arn+ - (String)
111
- # * +:alarm_description+ - (String)
112
- # * +:alarm_configuration_updated_timestamp+ - (Time)
113
- # * +:actions_enabled+ - (Boolean)
114
- # * +:ok_actions+ - (Array<String>)
115
- # * +:alarm_actions+ - (Array<String>)
116
- # * +:insufficient_data_actions+ - (Array<String>)
117
- # * +:state_value+ - (String)
118
- # * +:state_reason+ - (String)
119
- # * +:state_reason_data+ - (String)
120
- # * +:state_updated_timestamp+ - (Time)
121
- # * +:metric_name+ - (String)
122
- # * +:namespace+ - (String)
123
- # * +:statistic+ - (String)
124
- # * +:dimensions+ - (Array<Hash>)
125
- # * +:name+ - (String)
126
- # * +:value+ - (String)
127
- # * +:period+ - (Integer)
128
- # * +:unit+ - (String)
129
- # * +:evaluation_periods+ - (Integer)
130
- # * +:threshold+ - (Numeric)
131
- # * +:comparison_operator+ - (String)
161
+ # * `:metric_alarms` - (Array<Hash>)
162
+ # * `:alarm_name` - (String)
163
+ # * `:alarm_arn` - (String)
164
+ # * `:alarm_description` - (String)
165
+ # * `:alarm_configuration_updated_timestamp` - (Time)
166
+ # * `:actions_enabled` - (Boolean)
167
+ # * `:ok_actions` - (Array<String>)
168
+ # * `:alarm_actions` - (Array<String>)
169
+ # * `:insufficient_data_actions` - (Array<String>)
170
+ # * `:state_value` - (String)
171
+ # * `:state_reason` - (String)
172
+ # * `:state_reason_data` - (String)
173
+ # * `:state_updated_timestamp` - (Time)
174
+ # * `:metric_name` - (String)
175
+ # * `:namespace` - (String)
176
+ # * `:statistic` - (String)
177
+ # * `:dimensions` - (Array<Hash>)
178
+ # * `:name` - (String)
179
+ # * `:value` - (String)
180
+ # * `:period` - (Integer)
181
+ # * `:unit` - (String)
182
+ # * `:evaluation_periods` - (Integer)
183
+ # * `:threshold` - (Numeric)
184
+ # * `:comparison_operator` - (String)
132
185
 
133
186
  # @!method disable_alarm_actions(options = {})
134
187
  # Calls the DisableAlarmActions API operation.
135
188
  # @param [Hash] options
136
- # * +:alarm_names+ - *required* - (Array<String>)
189
+ # * `:alarm_names` - *required* - (Array<String>) The names of the
190
+ # alarms to disable actions for.
137
191
  # @return [Core::Response]
138
192
 
139
193
  # @!method enable_alarm_actions(options = {})
140
194
  # Calls the EnableAlarmActions API operation.
141
195
  # @param [Hash] options
142
- # * +:alarm_names+ - *required* - (Array<String>)
196
+ # * `:alarm_names` - *required* - (Array<String>) The names of the
197
+ # alarms to enable actions for.
143
198
  # @return [Core::Response]
144
199
 
145
200
  # @!method get_metric_statistics(options = {})
146
201
  # Calls the GetMetricStatistics API operation.
147
202
  # @param [Hash] options
148
- # * +:namespace+ - *required* - (String)
149
- # * +:metric_name+ - *required* - (String)
150
- # * +:dimensions+ - (Array<Hash>)
151
- # * +:name+ - *required* - (String)
152
- # * +:value+ - *required* - (String)
153
- # * +:start_time+ - *required* - (String<ISO8601 datetime>)
154
- # * +:end_time+ - *required* - (String<ISO8601 datetime>)
155
- # * +:period+ - *required* - (Integer)
156
- # * +:statistics+ - *required* - (Array<String>)
157
- # * +:unit+ - (String)
203
+ # * `:namespace` - *required* - (String) The namespace of the metric.
204
+ # * `:metric_name` - *required* - (String) The name of the metric.
205
+ # * `:dimensions` - (Array<Hash>) A list of dimensions describing
206
+ # qualities of the metric.
207
+ # * `:name` - *required* - (String) The name of the dimension.
208
+ # * `:value` - *required* - (String) The value representing the
209
+ # dimension measurement
210
+ # * `:start_time` - *required* - (String<ISO8601 datetime>) The time
211
+ # stamp to use for determining the first datapoint to return. The
212
+ # value specified is inclusive; results include datapoints with the
213
+ # time stamp specified. The specified start time is rounded down to
214
+ # the nearest value. Datapoints are returned for start times up to
215
+ # two weeks in the past. Specified start times that are more than two
216
+ # weeks in the past will not return datapoints for metrics that are
217
+ # older than two weeks.
218
+ # * `:end_time` - *required* - (String<ISO8601 datetime>) The time
219
+ # stamp to use for determining the last datapoint to return. The
220
+ # value specified is exclusive; results will include datapoints up to
221
+ # the time stamp specified.
222
+ # * `:period` - *required* - (Integer) The granularity, in seconds, of
223
+ # the returned datapoints. Period must be at least 60 seconds and
224
+ # must be a multiple of 60. The default value is 60.
225
+ # * `:statistics` - *required* - (Array<String>) The metric statistics
226
+ # to return.
227
+ # * `:unit` - (String) The unit for the metric. Valid values include:
228
+ # * `Seconds`
229
+ # * `Microseconds`
230
+ # * `Milliseconds`
231
+ # * `Bytes`
232
+ # * `Kilobytes`
233
+ # * `Megabytes`
234
+ # * `Gigabytes`
235
+ # * `Terabytes`
236
+ # * `Bits`
237
+ # * `Kilobits`
238
+ # * `Megabits`
239
+ # * `Gigabits`
240
+ # * `Terabits`
241
+ # * `Percent`
242
+ # * `Count`
243
+ # * `Bytes/Second`
244
+ # * `Kilobytes/Second`
245
+ # * `Megabytes/Second`
246
+ # * `Gigabytes/Second`
247
+ # * `Terabytes/Second`
248
+ # * `Bits/Second`
249
+ # * `Kilobits/Second`
250
+ # * `Megabits/Second`
251
+ # * `Gigabits/Second`
252
+ # * `Terabits/Second`
253
+ # * `Count/Second`
254
+ # * `None`
158
255
  # @return [Core::Response]
159
256
  # The #data method of the response object returns
160
257
  # a hash with the following structure:
161
- # * +:label+ - (String)
162
- # * +:datapoints+ - (Array<Hash>)
163
- # * +:timestamp+ - (Time)
164
- # * +:sample_count+ - (Numeric)
165
- # * +:average+ - (Numeric)
166
- # * +:sum+ - (Numeric)
167
- # * +:minimum+ - (Numeric)
168
- # * +:maximum+ - (Numeric)
169
- # * +:unit+ - (String)
258
+ # * `:label` - (String)
259
+ # * `:datapoints` - (Array<Hash>)
260
+ # * `:timestamp` - (Time)
261
+ # * `:sample_count` - (Numeric)
262
+ # * `:average` - (Numeric)
263
+ # * `:sum` - (Numeric)
264
+ # * `:minimum` - (Numeric)
265
+ # * `:maximum` - (Numeric)
266
+ # * `:unit` - (String)
170
267
 
171
268
  # @!method list_metrics(options = {})
172
269
  # Calls the ListMetrics API operation.
173
270
  # @param [Hash] options
174
- # * +:namespace+ - (String)
175
- # * +:metric_name+ - (String)
176
- # * +:dimensions+ - (Array<Hash>)
177
- # * +:name+ - *required* - (String)
178
- # * +:value+ - (String)
179
- # * +:next_token+ - (String)
271
+ # * `:namespace` - (String) The namespace to filter against.
272
+ # * `:metric_name` - (String) The name of the metric to filter against.
273
+ # * `:dimensions` - (Array<Hash>) A list of dimensions to filter
274
+ # against.
275
+ # * `:name` - *required* - (String) The dimension name to be matched.
276
+ # * `:value` - (String) The value of the dimension to be matched.
277
+ # Specifying a Name without specifying a Value returns all values
278
+ # associated with that Name.
279
+ # * `:next_token` - (String) The token returned by a previous call to
280
+ # indicate that there is more data available.
180
281
  # @return [Core::Response]
181
282
  # The #data method of the response object returns
182
283
  # a hash with the following structure:
183
- # * +:metrics+ - (Array<Hash>)
184
- # * +:namespace+ - (String)
185
- # * +:metric_name+ - (String)
186
- # * +:dimensions+ - (Array<Hash>)
187
- # * +:name+ - (String)
188
- # * +:value+ - (String)
189
- # * +:next_token+ - (String)
284
+ # * `:metrics` - (Array<Hash>)
285
+ # * `:namespace` - (String)
286
+ # * `:metric_name` - (String)
287
+ # * `:dimensions` - (Array<Hash>)
288
+ # * `:name` - (String)
289
+ # * `:value` - (String)
290
+ # * `:next_token` - (String)
190
291
 
191
292
  # @!method put_metric_alarm(options = {})
192
293
  # Calls the PutMetricAlarm API operation.
193
294
  # @param [Hash] options
194
- # * +:alarm_name+ - *required* - (String)
195
- # * +:alarm_description+ - (String)
196
- # * +:actions_enabled+ - (Boolean)
197
- # * +:ok_actions+ - (Array<String>)
198
- # * +:alarm_actions+ - (Array<String>)
199
- # * +:insufficient_data_actions+ - (Array<String>)
200
- # * +:metric_name+ - *required* - (String)
201
- # * +:namespace+ - *required* - (String)
202
- # * +:statistic+ - *required* - (String)
203
- # * +:dimensions+ - (Array<Hash>)
204
- # * +:name+ - *required* - (String)
205
- # * +:value+ - *required* - (String)
206
- # * +:period+ - *required* - (Integer)
207
- # * +:unit+ - (String)
208
- # * +:evaluation_periods+ - *required* - (Integer)
209
- # * +:threshold+ - *required* - (Float)
210
- # * +:comparison_operator+ - *required* - (String)
295
+ # * `:alarm_name` - *required* - (String) The descriptive name for the
296
+ # alarm. This name must be unique within the user's AWS account
297
+ # * `:alarm_description` - (String) The description for the alarm.
298
+ # * `:actions_enabled` - (Boolean) Indicates whether or not actions
299
+ # should be executed during any changes to the alarm's state.
300
+ # * `:ok_actions` - (Array<String>) The list of actions to execute when
301
+ # this alarm transitions into an OK state from any other state. Each
302
+ # action is specified as an Amazon Resource Number (ARN). Currently
303
+ # the only action supported is publishing to an Amazon SNS topic or
304
+ # an Amazon Auto Scaling policy.
305
+ # * `:alarm_actions` - (Array<String>) The list of actions to execute
306
+ # when this alarm transitions into an ALARM state from any other
307
+ # state. Each action is specified as an Amazon Resource Number (ARN).
308
+ # Currently the only action supported is publishing to an Amazon SNS
309
+ # topic or an Amazon Auto Scaling policy.
310
+ # * `:insufficient_data_actions` - (Array<String>) The list of actions
311
+ # to execute when this alarm transitions into an INSUFFICIENT_DATA
312
+ # state from any other state. Each action is specified as an Amazon
313
+ # Resource Number (ARN). Currently the only action supported is
314
+ # publishing to an Amazon SNS topic or an Amazon Auto Scaling policy.
315
+ # * `:metric_name` - *required* - (String) The name for the alarm's
316
+ # associated metric.
317
+ # * `:namespace` - *required* - (String) The namespace for the alarm's
318
+ # associated metric.
319
+ # * `:statistic` - *required* - (String) The statistic to apply to the
320
+ # alarm's associated metric. Valid values include:
321
+ # * `SampleCount`
322
+ # * `Average`
323
+ # * `Sum`
324
+ # * `Minimum`
325
+ # * `Maximum`
326
+ # * `:dimensions` - (Array<Hash>) The dimensions for the alarm's
327
+ # associated metric.
328
+ # * `:name` - *required* - (String) The name of the dimension.
329
+ # * `:value` - *required* - (String) The value representing the
330
+ # dimension measurement
331
+ # * `:period` - *required* - (Integer) The period in seconds over which
332
+ # the specified statistic is applied.
333
+ # * `:unit` - (String) The unit for the alarm's associated metric.
334
+ # Valid values include:
335
+ # * `Seconds`
336
+ # * `Microseconds`
337
+ # * `Milliseconds`
338
+ # * `Bytes`
339
+ # * `Kilobytes`
340
+ # * `Megabytes`
341
+ # * `Gigabytes`
342
+ # * `Terabytes`
343
+ # * `Bits`
344
+ # * `Kilobits`
345
+ # * `Megabits`
346
+ # * `Gigabits`
347
+ # * `Terabits`
348
+ # * `Percent`
349
+ # * `Count`
350
+ # * `Bytes/Second`
351
+ # * `Kilobytes/Second`
352
+ # * `Megabytes/Second`
353
+ # * `Gigabytes/Second`
354
+ # * `Terabytes/Second`
355
+ # * `Bits/Second`
356
+ # * `Kilobits/Second`
357
+ # * `Megabits/Second`
358
+ # * `Gigabits/Second`
359
+ # * `Terabits/Second`
360
+ # * `Count/Second`
361
+ # * `None`
362
+ # * `:evaluation_periods` - *required* - (Integer) The number of
363
+ # periods over which data is compared to the specified threshold.
364
+ # * `:threshold` - *required* - (Float) The value against which the
365
+ # specified statistic is compared.
366
+ # * `:comparison_operator` - *required* - (String) The arithmetic
367
+ # operation to use when comparing the specified Statistic and
368
+ # Threshold. The specified Statistic value is used as the first
369
+ # operand. Valid values include:
370
+ # * `GreaterThanOrEqualToThreshold`
371
+ # * `GreaterThanThreshold`
372
+ # * `LessThanThreshold`
373
+ # * `LessThanOrEqualToThreshold`
211
374
  # @return [Core::Response]
212
375
 
213
376
  # @!method put_metric_data(options = {})
214
377
  # Calls the PutMetricData API operation.
215
378
  # @param [Hash] options
216
- # * +:namespace+ - *required* - (String)
217
- # * +:metric_data+ - *required* - (Array<Hash>)
218
- # * +:metric_name+ - *required* - (String)
219
- # * +:dimensions+ - (Array<Hash>)
220
- # * +:name+ - *required* - (String)
221
- # * +:value+ - *required* - (String)
222
- # * +:timestamp+ - (String<ISO8601 datetime>)
223
- # * +:value+ - (Float)
224
- # * +:statistic_values+ - (Hash)
225
- # * +:sample_count+ - *required* - (Float)
226
- # * +:sum+ - *required* - (Float)
227
- # * +:minimum+ - *required* - (Float)
228
- # * +:maximum+ - *required* - (Float)
229
- # * +:unit+ - (String)
379
+ # * `:namespace` - *required* - (String) The namespace for the metric
380
+ # data.
381
+ # * `:metric_data` - *required* - (Array<Hash>) A list of data
382
+ # describing the metric.
383
+ # * `:metric_name` - *required* - (String) The name of the metric.
384
+ # * `:dimensions` - (Array<Hash>) A list of dimensions associated
385
+ # with the metric.
386
+ # * `:name` - *required* - (String) The name of the dimension.
387
+ # * `:value` - *required* - (String) The value representing the
388
+ # dimension measurement
389
+ # * `:timestamp` - (String<ISO8601 datetime>) The time stamp used for
390
+ # the metric. If not specified, the default value is set to the
391
+ # time the metric data was received.
392
+ # * `:value` - (Float) The value for the metric. Although the Value
393
+ # parameter accepts numbers of type Double, Amazon CloudWatch
394
+ # truncates values with very large exponents. Values with base-10
395
+ # exponents greater than 126 (1 x 10^126) are truncated. Likewise,
396
+ # values with base-10 exponents less than -130 (1 x 10^-130) are
397
+ # also truncated.
398
+ # * `:statistic_values` - (Hash) A set of statistical values
399
+ # describing the metric.
400
+ # * `:sample_count` - *required* - (Float) The number of samples
401
+ # used for the statistic set.
402
+ # * `:sum` - *required* - (Float) The sum of values for the sample
403
+ # set.
404
+ # * `:minimum` - *required* - (Float) The minimum value of the
405
+ # sample set.
406
+ # * `:maximum` - *required* - (Float) The maximum value of the
407
+ # sample set.
408
+ # * `:unit` - (String) The unit of the metric. Valid values include:
409
+ # * `Seconds`
410
+ # * `Microseconds`
411
+ # * `Milliseconds`
412
+ # * `Bytes`
413
+ # * `Kilobytes`
414
+ # * `Megabytes`
415
+ # * `Gigabytes`
416
+ # * `Terabytes`
417
+ # * `Bits`
418
+ # * `Kilobits`
419
+ # * `Megabits`
420
+ # * `Gigabits`
421
+ # * `Terabits`
422
+ # * `Percent`
423
+ # * `Count`
424
+ # * `Bytes/Second`
425
+ # * `Kilobytes/Second`
426
+ # * `Megabytes/Second`
427
+ # * `Gigabytes/Second`
428
+ # * `Terabytes/Second`
429
+ # * `Bits/Second`
430
+ # * `Kilobits/Second`
431
+ # * `Megabits/Second`
432
+ # * `Gigabits/Second`
433
+ # * `Terabits/Second`
434
+ # * `Count/Second`
435
+ # * `None`
230
436
  # @return [Core::Response]
231
437
 
232
438
  # @!method set_alarm_state(options = {})
233
439
  # Calls the SetAlarmState API operation.
234
440
  # @param [Hash] options
235
- # * +:alarm_name+ - *required* - (String)
236
- # * +:state_value+ - *required* - (String)
237
- # * +:state_reason+ - *required* - (String)
238
- # * +:state_reason_data+ - (String)
441
+ # * `:alarm_name` - *required* - (String) The descriptive name for the
442
+ # alarm. This name must be unique within the user's AWS account. The
443
+ # maximum length is 255 characters.
444
+ # * `:state_value` - *required* - (String) The value of the state.
445
+ # Valid values include:
446
+ # * `OK`
447
+ # * `ALARM`
448
+ # * `INSUFFICIENT_DATA`
449
+ # * `:state_reason` - *required* - (String) The reason that this alarm
450
+ # is set to this specific state (in human-readable text format)
451
+ # * `:state_reason_data` - (String) The reason that this alarm is set
452
+ # to this specific state (in machine-readable JSON format)
239
453
  # @return [Core::Response]
240
454
 
241
455
  # end client methods #