aws-sdk-core 2.0.0.rc14 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. checksums.yaml +4 -4
  2. data/apis/AutoScaling.api.json +1943 -0
  3. data/apis/CloudFormation.api.json +785 -0
  4. data/apis/CloudFront.api.json +2581 -0
  5. data/apis/CloudSearch.api.json +1955 -0
  6. data/apis/CloudSearchDomain.api.json +349 -0
  7. data/apis/CloudTrail.api.json +559 -0
  8. data/apis/CloudWatch.api.json +917 -0
  9. data/apis/CloudWatchLogs.api.json +816 -0
  10. data/apis/CognitoIdentity.api.json +631 -0
  11. data/apis/CognitoSync.api.json +721 -0
  12. data/apis/DataPipeline.api.json +940 -0
  13. data/apis/DirectConnect.api.json +833 -0
  14. data/apis/DynamoDB.api.json +1210 -0
  15. data/apis/{dynamodb-2012-08-10.paginators.json → DynamoDB.paginators.json} +0 -1
  16. data/apis/EC2.api.json +9914 -0
  17. data/apis/{ec2-2014-06-15.resources.json → EC2.resources.json} +16 -0
  18. data/apis/EMR.api.json +1339 -0
  19. data/apis/ElastiCache.api.json +3410 -0
  20. data/apis/ElasticBeanstalk.api.json +1543 -0
  21. data/apis/ElasticLoadBalancing.api.json +2131 -0
  22. data/apis/ElasticTranscoder.api.json +1647 -0
  23. data/apis/Glacier.api.json +1456 -0
  24. data/apis/{glacier-2012-06-01.resources.json → Glacier.resources.json} +5 -9
  25. data/apis/IAM.api.json +4033 -0
  26. data/apis/{iam-2010-05-08.resources.json → IAM.resources.json} +1 -1
  27. data/apis/ImportExport.api.json +515 -0
  28. data/apis/Kinesis.api.json +706 -0
  29. data/apis/{kinesis-2013-12-02.paginators.json → Kinesis.paginators.json} +0 -6
  30. data/apis/OpsWorks.api.json +2555 -0
  31. data/apis/OpsWorks.resources.json +181 -0
  32. data/apis/RDS.api.json +4473 -0
  33. data/apis/Redshift.api.json +4482 -0
  34. data/apis/Route53.api.json +1935 -0
  35. data/apis/Route53Domains.api.json +1129 -0
  36. data/apis/{s3-2006-03-01.api.json → S3.api.json} +336 -942
  37. data/apis/{s3-2006-03-01.paginators.json → S3.paginators.json} +1 -1
  38. data/apis/{s3-2006-03-01.resources.json → S3.resources.json} +13 -2
  39. data/apis/SES.api.json +644 -0
  40. data/apis/SNS.api.json +1760 -0
  41. data/apis/SQS.api.json +1113 -0
  42. data/apis/{sqs-2012-11-05.resources.json → SQS.resources.json} +0 -10
  43. data/apis/STS.api.json +594 -0
  44. data/apis/SWF.api.json +2656 -0
  45. data/apis/SimpleDB.api.json +954 -0
  46. data/apis/StorageGateway.api.json +2311 -0
  47. data/apis/Support.api.json +869 -0
  48. data/bin/aws.rb +19 -0
  49. data/lib/aws-sdk-core/api/docstrings.rb +35 -0
  50. data/lib/aws-sdk-core/api/documenter.rb +241 -0
  51. data/lib/{aws/api/documentor.rb → aws-sdk-core/api/operation_documenter.rb} +9 -5
  52. data/lib/{aws/api/doc_example.rb → aws-sdk-core/api/operation_example.rb} +8 -7
  53. data/lib/{aws → aws-sdk-core}/api/service_customizations.rb +3 -1
  54. data/lib/aws-sdk-core/autoscaling.rb +5 -0
  55. data/lib/aws-sdk-core/client.rb +121 -0
  56. data/lib/aws-sdk-core/cloudformation.rb +5 -0
  57. data/lib/aws-sdk-core/cloudfront.rb +6 -0
  58. data/lib/aws-sdk-core/cloudsearch.rb +5 -0
  59. data/lib/aws-sdk-core/cloudsearchdomain.rb +4 -0
  60. data/lib/aws-sdk-core/cloudtrail.rb +5 -0
  61. data/lib/aws-sdk-core/cloudwatch.rb +5 -0
  62. data/lib/aws-sdk-core/cloudwatchlogs.rb +5 -0
  63. data/lib/aws-sdk-core/cognitoidentity.rb +4 -0
  64. data/lib/aws-sdk-core/cognitosync.rb +4 -0
  65. data/lib/{aws → aws-sdk-core}/credential_provider_chain.rb +4 -1
  66. data/lib/aws-sdk-core/datapipeline.rb +5 -0
  67. data/lib/aws-sdk-core/directconnect.rb +5 -0
  68. data/lib/aws-sdk-core/dynamodb/attribute_value.rb +87 -0
  69. data/lib/aws-sdk-core/dynamodb.rb +12 -0
  70. data/lib/aws-sdk-core/ec2.rb +7 -0
  71. data/lib/aws-sdk-core/elasticache.rb +5 -0
  72. data/lib/aws-sdk-core/elasticbeanstalk.rb +5 -0
  73. data/lib/aws-sdk-core/elasticloadbalancing.rb +5 -0
  74. data/lib/aws-sdk-core/elastictranscoder.rb +5 -0
  75. data/lib/{aws → aws-sdk-core}/empty_structure.rb +4 -3
  76. data/lib/aws-sdk-core/emr.rb +5 -0
  77. data/lib/{aws → aws-sdk-core}/endpoint_provider.rb +1 -0
  78. data/lib/{aws → aws-sdk-core}/errors.rb +18 -7
  79. data/lib/aws-sdk-core/glacier.rb +7 -0
  80. data/lib/aws-sdk-core/iam.rb +6 -0
  81. data/lib/aws-sdk-core/importexport.rb +5 -0
  82. data/lib/{aws → aws-sdk-core}/instance_profile_credentials.rb +1 -1
  83. data/lib/aws-sdk-core/kinesis.rb +5 -0
  84. data/lib/aws-sdk-core/opsworks.rb +6 -0
  85. data/lib/{aws → aws-sdk-core}/pageable_response.rb +1 -1
  86. data/lib/aws-sdk-core/plugins/csd_conditional_signing.rb +37 -0
  87. data/lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb +179 -0
  88. data/lib/{aws → aws-sdk-core}/plugins/global_configuration.rb +13 -3
  89. data/lib/{aws → aws-sdk-core}/plugins/protocols/json_rpc.rb +9 -7
  90. data/lib/{aws → aws-sdk-core}/plugins/regional_endpoint.rb +1 -1
  91. data/lib/{aws → aws-sdk-core}/plugins/request_signer.rb +13 -6
  92. data/lib/aws-sdk-core/plugins/response_paging.rb +25 -0
  93. data/lib/aws-sdk-core/plugins/s3_url_encoded_keys.rb +92 -0
  94. data/lib/{aws → aws-sdk-core}/plugins/user_agent.rb +1 -2
  95. data/lib/{aws → aws-sdk-core}/query/handler.rb +4 -5
  96. data/lib/aws-sdk-core/rds.rb +6 -0
  97. data/lib/aws-sdk-core/redshift.rb +6 -0
  98. data/lib/aws-sdk-core/route53.rb +5 -0
  99. data/lib/aws-sdk-core/route53domains.rb +4 -0
  100. data/lib/aws-sdk-core/s3/presigner.rb +64 -0
  101. data/lib/aws-sdk-core/s3.rb +13 -0
  102. data/lib/aws-sdk-core/service.rb +4 -0
  103. data/lib/aws-sdk-core/ses.rb +6 -0
  104. data/lib/{aws → aws-sdk-core}/signers/v4.rb +6 -5
  105. data/lib/aws-sdk-core/simpledb.rb +5 -0
  106. data/lib/aws-sdk-core/sns.rb +6 -0
  107. data/lib/aws-sdk-core/sqs.rb +6 -0
  108. data/lib/aws-sdk-core/storagegateway.rb +5 -0
  109. data/lib/{aws → aws-sdk-core}/structure.rb +49 -2
  110. data/lib/aws-sdk-core/sts.rb +4 -0
  111. data/lib/aws-sdk-core/support.rb +5 -0
  112. data/lib/aws-sdk-core/swf.rb +5 -0
  113. data/lib/aws-sdk-core/version.rb +3 -0
  114. data/lib/aws-sdk-core/waiters/errors.rb +30 -0
  115. data/lib/aws-sdk-core/waiters/null_provider.rb +12 -0
  116. data/lib/aws-sdk-core/waiters/provider.rb +54 -0
  117. data/lib/aws-sdk-core/waiters/waiter.rb +194 -0
  118. data/lib/{aws → aws-sdk-core}/xml/builder.rb +1 -0
  119. data/lib/aws-sdk-core/xml/default_list.rb +10 -0
  120. data/lib/{aws → aws-sdk-core}/xml/parser.rb +6 -1
  121. data/lib/aws-sdk-core.rb +288 -1
  122. data/lib/seahorse/client/base.rb +45 -20
  123. data/lib/seahorse/client/handler_list.rb +17 -3
  124. data/lib/seahorse/client/http/request.rb +0 -8
  125. data/lib/seahorse/client/param_converter.rb +2 -2
  126. data/lib/seahorse/client/plugins/restful_bindings.rb +1 -1
  127. data/lib/seahorse/client/request.rb +1 -1
  128. data/lib/seahorse/client/response.rb +0 -2
  129. data/lib/seahorse/client/xml/builder.rb +0 -1
  130. data/lib/seahorse/model/shape_map.rb +1 -0
  131. data/lib/seahorse/model/shapes.rb +11 -2
  132. data/lib/seahorse.rb +2 -3
  133. metadata +214 -187
  134. data/LICENSE.txt +0 -12
  135. data/README.md +0 -272
  136. data/apis/autoscaling-2011-01-01.api.json +0 -3063
  137. data/apis/cloudformation-2010-05-15.api.json +0 -1306
  138. data/apis/cloudfront-2014-01-31.api.json +0 -3478
  139. data/apis/cloudfront-2014-01-31.paginators.json +0 -32
  140. data/apis/cloudfront-2014-05-31.api.json +0 -3540
  141. data/apis/cloudfront-2014-05-31.waiters.json +0 -29
  142. data/apis/cloudsearch-2011-02-01.api.json +0 -2093
  143. data/apis/cloudsearch-2011-02-01.paginators.json +0 -13
  144. data/apis/cloudsearch-2013-01-01.api.json +0 -2655
  145. data/apis/cloudsearchdomain-2013-01-01.api.json +0 -508
  146. data/apis/cloudtrail-2013-11-01.api.json +0 -773
  147. data/apis/cognito-identity-2014-06-30.api.json +0 -884
  148. data/apis/cognito-sync-2014-06-30.api.json +0 -1029
  149. data/apis/datapipeline-2012-10-29.api.json +0 -1432
  150. data/apis/directconnect-2012-10-25.api.json +0 -1174
  151. data/apis/dynamodb-2011-12-05.api.json +0 -1208
  152. data/apis/dynamodb-2011-12-05.paginators.json +0 -26
  153. data/apis/dynamodb-2011-12-05.waiters.json +0 -27
  154. data/apis/dynamodb-2012-08-10.api.json +0 -1857
  155. data/apis/ec2-2014-06-15.api.json +0 -11670
  156. data/apis/elasticache-2014-03-24.api.json +0 -4789
  157. data/apis/elasticache-2014-07-15.api.json +0 -4826
  158. data/apis/elasticache-2014-07-15.paginators.json +0 -76
  159. data/apis/elasticbeanstalk-2010-12-01.api.json +0 -2442
  160. data/apis/elasticloadbalancing-2012-06-01.api.json +0 -2605
  161. data/apis/elasticmapreduce-2009-03-31.api.json +0 -2282
  162. data/apis/elastictranscoder-2012-09-25.api.json +0 -2478
  163. data/apis/email-2010-12-01.api.json +0 -954
  164. data/apis/glacier-2012-06-01.api.json +0 -2012
  165. data/apis/iam-2010-05-08.api.json +0 -5322
  166. data/apis/importexport-2010-06-01.api.json +0 -687
  167. data/apis/kinesis-2013-12-02.api.json +0 -769
  168. data/apis/logs-2014-03-28.api.json +0 -942
  169. data/apis/manifest.json +0 -259
  170. data/apis/monitoring-2010-08-01.api.json +0 -1338
  171. data/apis/opsworks-2013-02-18.api.json +0 -4348
  172. data/apis/rds-2013-01-10.api.json +0 -6074
  173. data/apis/rds-2013-01-10.paginators.json +0 -97
  174. data/apis/rds-2013-02-12.api.json +0 -6392
  175. data/apis/rds-2013-09-09.api.json +0 -6564
  176. data/apis/rds-2013-09-09.paginators.json +0 -110
  177. data/apis/redshift-2012-12-01.api.json +0 -6318
  178. data/apis/route53-2013-04-01.api.json +0 -2493
  179. data/apis/route53domains-2014-05-15.api.json +0 -1622
  180. data/apis/sdb-2009-04-15.api.json +0 -1178
  181. data/apis/sns-2010-03-31.api.json +0 -2275
  182. data/apis/sqs-2012-11-05.api.json +0 -1438
  183. data/apis/storagegateway-2013-06-30.api.json +0 -3153
  184. data/apis/sts-2011-06-15.api.json +0 -786
  185. data/apis/support-2013-04-15.api.json +0 -1379
  186. data/apis/swf-2012-01-25.api.json +0 -4463
  187. data/lib/aws/api/manifest.rb +0 -29
  188. data/lib/aws/api/manifest_builder.rb +0 -57
  189. data/lib/aws/api/minifier.rb +0 -42
  190. data/lib/aws/plugins/response_paging.rb +0 -20
  191. data/lib/aws/response_handler.rb +0 -38
  192. data/lib/aws/service.rb +0 -26
  193. data/lib/aws/service_builder.rb +0 -56
  194. data/lib/aws/version.rb +0 -3
  195. data/lib/aws.rb +0 -227
  196. data/lib/seahorse/client/plugins/api.rb +0 -11
  197. /data/apis/{autoscaling-2011-01-01.paginators.json → AutoScaling.paginators.json} +0 -0
  198. /data/apis/{cloudformation-2010-05-15.paginators.json → CloudFormation.paginators.json} +0 -0
  199. /data/apis/{cloudfront-2014-05-31.paginators.json → CloudFront.paginators.json} +0 -0
  200. /data/apis/{cloudfront-2014-01-31.waiters.json → CloudFront.waiters.json} +0 -0
  201. /data/apis/{cloudsearch-2013-01-01.paginators.json → CloudSearch.paginators.json} +0 -0
  202. /data/apis/{cloudtrail-2013-11-01.paginators.json → CloudTrail.paginators.json} +0 -0
  203. /data/apis/{monitoring-2010-08-01.paginators.json → CloudWatch.paginators.json} +0 -0
  204. /data/apis/{logs-2014-03-28.paginators.json → CloudWatchLogs.paginators.json} +0 -0
  205. /data/apis/{datapipeline-2012-10-29.paginators.json → DataPipeline.paginators.json} +0 -0
  206. /data/apis/{directconnect-2012-10-25.paginators.json → DirectConnect.paginators.json} +0 -0
  207. /data/apis/{dynamodb-2012-08-10.waiters.json → DynamoDB.waiters.json} +0 -0
  208. /data/apis/{ec2-2014-06-15.paginators.json → EC2.paginators.json} +0 -0
  209. /data/apis/{ec2-2014-06-15.waiters.json → EC2.waiters.json} +0 -0
  210. /data/apis/{elasticmapreduce-2009-03-31.paginators.json → EMR.paginators.json} +0 -0
  211. /data/apis/{elasticache-2014-03-24.paginators.json → ElastiCache.paginators.json} +0 -0
  212. /data/apis/{elasticbeanstalk-2010-12-01.paginators.json → ElasticBeanstalk.paginators.json} +0 -0
  213. /data/apis/{elasticloadbalancing-2012-06-01.paginators.json → ElasticLoadBalancing.paginators.json} +0 -0
  214. /data/apis/{elastictranscoder-2012-09-25.paginators.json → ElasticTranscoder.paginators.json} +0 -0
  215. /data/apis/{glacier-2012-06-01.paginators.json → Glacier.paginators.json} +0 -0
  216. /data/apis/{glacier-2012-06-01.waiters.json → Glacier.waiters.json} +0 -0
  217. /data/apis/{iam-2010-05-08.paginators.json → IAM.paginators.json} +0 -0
  218. /data/apis/{importexport-2010-06-01.paginators.json → ImportExport.paginators.json} +0 -0
  219. /data/apis/{opsworks-2013-02-18.paginators.json → OpsWorks.paginators.json} +0 -0
  220. /data/apis/{rds-2013-02-12.paginators.json → RDS.paginators.json} +0 -0
  221. /data/apis/{rds-2013-09-09.waiters.json → RDS.waiters.json} +0 -0
  222. /data/apis/{redshift-2012-12-01.paginators.json → Redshift.paginators.json} +0 -0
  223. /data/apis/{redshift-2012-12-01.waiters.json → Redshift.waiters.json} +0 -0
  224. /data/apis/{route53-2013-04-01.paginators.json → Route53.paginators.json} +0 -0
  225. /data/apis/{s3-2006-03-01.waiters.json → S3.waiters.json} +0 -0
  226. /data/apis/{email-2010-12-01.paginators.json → SES.paginators.json} +0 -0
  227. /data/apis/{email-2010-12-01.waiters.json → SES.waiters.json} +0 -0
  228. /data/apis/{sns-2010-03-31.paginators.json → SNS.paginators.json} +0 -0
  229. /data/apis/{sns-2010-03-31.resources.json → SNS.resources.json} +0 -0
  230. /data/apis/{sqs-2012-11-05.paginators.json → SQS.paginators.json} +0 -0
  231. /data/apis/{swf-2012-01-25.paginators.json → SWF.paginators.json} +0 -0
  232. /data/apis/{sdb-2009-04-15.paginators.json → SimpleDB.paginators.json} +0 -0
  233. /data/apis/{storagegateway-2013-06-30.paginators.json → StorageGateway.paginators.json} +0 -0
  234. /data/apis/{support-2013-04-15.paginators.json → Support.paginators.json} +0 -0
  235. /data/lib/{aws → aws-sdk-core}/api/customizer.rb +0 -0
  236. /data/lib/{aws → aws-sdk-core}/credentials.rb +0 -0
  237. /data/lib/{aws → aws-sdk-core}/json/builder.rb +0 -0
  238. /data/lib/{aws → aws-sdk-core}/json/error_handler.rb +0 -0
  239. /data/lib/{aws → aws-sdk-core}/json/parser.rb +0 -0
  240. /data/lib/{aws → aws-sdk-core}/json/rest_handler.rb +0 -0
  241. /data/lib/{aws → aws-sdk-core}/json/rpc_body_handler.rb +0 -0
  242. /data/lib/{aws → aws-sdk-core}/json/rpc_headers_handler.rb +0 -0
  243. /data/lib/{aws → aws-sdk-core}/json/simple_body_handler.rb +0 -0
  244. /data/lib/{aws → aws-sdk-core}/paging/null_pager.rb +0 -0
  245. /data/lib/{aws → aws-sdk-core}/paging/null_provider.rb +0 -0
  246. /data/lib/{aws → aws-sdk-core}/paging/pager.rb +0 -0
  247. /data/lib/{aws → aws-sdk-core}/paging/provider.rb +0 -0
  248. /data/lib/{aws → aws-sdk-core}/plugins/dynamodb_extended_retries.rb +0 -0
  249. /data/lib/{aws → aws-sdk-core}/plugins/ec2_copy_encrypted_snapshot.rb +0 -0
  250. /data/lib/{aws → aws-sdk-core}/plugins/glacier_account_id.rb +0 -0
  251. /data/lib/{aws → aws-sdk-core}/plugins/glacier_api_version.rb +0 -0
  252. /data/lib/{aws → aws-sdk-core}/plugins/glacier_checksums.rb +0 -0
  253. /data/lib/{aws → aws-sdk-core}/plugins/protocols/ec2.rb +0 -0
  254. /data/lib/{aws → aws-sdk-core}/plugins/protocols/query.rb +0 -0
  255. /data/lib/{aws → aws-sdk-core}/plugins/protocols/rest_json.rb +0 -0
  256. /data/lib/{aws → aws-sdk-core}/plugins/protocols/rest_xml.rb +0 -0
  257. /data/lib/{aws → aws-sdk-core}/plugins/retry_errors.rb +0 -0
  258. /data/lib/{aws → aws-sdk-core}/plugins/route_53_id_fix.rb +0 -0
  259. /data/lib/{aws → aws-sdk-core}/plugins/s3_bucket_dns.rb +0 -0
  260. /data/lib/{aws → aws-sdk-core}/plugins/s3_complete_multipart_upload_fix.rb +0 -0
  261. /data/lib/{aws → aws-sdk-core}/plugins/s3_expect_100_continue.rb +0 -0
  262. /data/lib/{aws → aws-sdk-core}/plugins/s3_get_bucket_location_fix.rb +0 -0
  263. /data/lib/{aws → aws-sdk-core}/plugins/s3_location_constraint.rb +0 -0
  264. /data/lib/{aws → aws-sdk-core}/plugins/s3_md5s.rb +0 -0
  265. /data/lib/{aws → aws-sdk-core}/plugins/s3_redirects.rb +0 -0
  266. /data/lib/{aws → aws-sdk-core}/plugins/s3_sse_cpk.rb +0 -0
  267. /data/lib/{aws → aws-sdk-core}/plugins/sqs_queue_urls.rb +0 -0
  268. /data/lib/{aws → aws-sdk-core}/plugins/swf_read_timeouts.rb +0 -0
  269. /data/lib/{aws → aws-sdk-core}/query/ec2_param_builder.rb +0 -0
  270. /data/lib/{aws → aws-sdk-core}/query/param.rb +0 -0
  271. /data/lib/{aws → aws-sdk-core}/query/param_builder.rb +0 -0
  272. /data/lib/{aws → aws-sdk-core}/query/param_list.rb +0 -0
  273. /data/lib/{aws → aws-sdk-core}/rest_body_handler.rb +0 -0
  274. /data/lib/{aws → aws-sdk-core}/shared_credentials.rb +0 -0
  275. /data/lib/{aws → aws-sdk-core}/signers/base.rb +0 -0
  276. /data/lib/{aws → aws-sdk-core}/signers/handler.rb +0 -0
  277. /data/lib/{aws → aws-sdk-core}/signers/s3.rb +0 -0
  278. /data/lib/{aws → aws-sdk-core}/signers/v2.rb +0 -0
  279. /data/lib/{aws → aws-sdk-core}/signers/v3.rb +0 -0
  280. /data/lib/{aws → aws-sdk-core}/tree_hash.rb +0 -0
  281. /data/lib/{aws → aws-sdk-core}/xml/error_handler.rb +0 -0
  282. /data/lib/{aws → aws-sdk-core}/xml/rest_handler.rb +0 -0
data/README.md DELETED
@@ -1,272 +0,0 @@
1
- # AWS SDK Core [![Build Status](https://travis-ci.org/aws/aws-sdk-core-ruby.png?branch=master)](https://travis-ci.org/aws/aws-sdk-core-ruby) [![Code Climate](https://codeclimate.com/github/aws/aws-sdk-core-ruby.png)](https://codeclimate.com/github/aws/aws-sdk-core-ruby) [![Coverage Status](https://coveralls.io/repos/aws/aws-sdk-core-ruby/badge.png?branch=master)](https://coveralls.io/r/aws/aws-sdk-core-ruby?branch=master)
2
-
3
- This library is in a developer preview period.
4
-
5
- We are working on version 2 of the official AWS SDK for Ruby. This library
6
- is the first part of our v2 strategy. AWS SDK Core is an updated set of
7
- service clients. Our goal is to make them more flexible and extensible
8
- than the clients in version 1 of the Ruby SDK.
9
-
10
- For version 1.0 of the Ruby SDK, see [aws/aws-sdk-ruby](http://github.com/aws/aws-sdk-ruby).
11
-
12
- #### 2.0.0.rc14 Upgrading Notes
13
-
14
- RC14 simplifies the API versioning strategy. This may require small changes for
15
- users that use the API version locking options. Also, there are minor changes
16
- when configuring raw endpoints.
17
-
18
- * Versioned client classes removed, e.g. `Aws::S3::Client::V20060301.new` should
19
- be replaced with `Aws::S3::Client.new` The `:api_version` constructor option
20
- is no longer accepted.
21
-
22
- * Aws helper methods for client construction deprecated; For example,
23
- calling `Aws.s3` will generate a deprecation warning. Call `Aws::S3::Client.new`
24
- instead. Top-level helpers will be removed as of v2.0.0 final.
25
-
26
- * When configuring an `:endpoint` directly, you must now specify the
27
- HTTP scheme, e.g. "http://localhost:3000", instead of "localhost:3000".
28
- Please note, this should only be done for testing. Normally you only
29
- need to configure a `:region`.
30
-
31
- #### 2.0.0.rc11 Upgrading Notes
32
-
33
- RC 11 requires a few minor updates. These should be the final public-facing
34
- changes before 2.0.0 final.
35
-
36
- * The prefered constructor for services is now using the client
37
- class, example:
38
-
39
- # deprecated, will be removed for 2.0.0 final
40
- Aws::S3.new
41
-
42
- # preferred
43
- Aws::S3::Client.new
44
-
45
- * The `:raw_json` option for JSON protocol based services has been
46
- renamed to `:simple_json`
47
-
48
- * The short name for Aws::SimpleDB has been renamed from `sdb` to
49
- `simpledb`.
50
-
51
- ## Links of Interest
52
-
53
- * [Documentation](http://docs.amazonwebservices.com/sdkforruby/api/frames.html)
54
- * [Release Notes](http://aws.amazon.com/releasenotes/SDK/Ruby/Core)
55
- * [Issues](http://github.com/aws/aws-sdk-core-ruby/issues)
56
- * [Forums](https://forums.aws.amazon.com/forum.jspa?forumID=125)
57
- * [License](http://aws.amazon.com/apache2.0/)
58
-
59
- ## Installation
60
-
61
- You can install the AWS SDK Core from rubygems:
62
-
63
- gem install aws-sdk-core --pre
64
-
65
- If you are using Bundler, we recommend that you express a major version
66
- dependency (this library uses [semantic versioning](http://semver.org/)):
67
-
68
- gem 'aws-sdk-core', '~> 2.0'
69
-
70
- Until the final release becomes available on Rubygems, leave off the version
71
- dependency in your Gemfile so Bundler can find it.
72
-
73
- **Note:** AWS SDK Core requires Ruby 1.9.3+.
74
-
75
- ## Configuration
76
-
77
- To use the Ruby SDK, you must configure a region and your AWS account
78
- access credentials.
79
-
80
- ### Region
81
-
82
- You can export a default region to ENV:
83
-
84
- ```
85
- export AWS_REGION='us-west-2'
86
- ```
87
-
88
- Or you can configure a region in code:
89
-
90
- ```ruby
91
- # default region
92
- Aws.config[:region] = 'us-west-2'
93
-
94
- # per-service :region
95
- s3 = Aws::S3::Client.new(region:'us-east-1')
96
- ```
97
-
98
- ### Credentials
99
-
100
- Please take care to never commit credentials to source control. We
101
- strongly recommended loading credentials from an external source. By default,
102
- the Ruby SDK will attempt to load credentials from the following
103
- sources:
104
-
105
- * `ENV['AWS_ACCESS_KEY_ID']` and `ENV['AWS_SECRET_ACCESS_KEY']`
106
- * The shared credentials ini file at `HOME/.aws/credentials`
107
- * From an instance profile when running on EC2
108
-
109
- Alternatively, you can specify your credentials directly using one of the
110
- following credential classes:
111
-
112
- * `Aws::Credentials`
113
- * `Aws::SharedCredentials`
114
- * `Aws::InstanceProfileCredentials`
115
-
116
- ```ruby
117
- # default credentials
118
- Aws.config[:credentials] = Aws::SharedCredentials.new(profile_name:'myprofile')
119
-
120
- # per-service :credentials
121
- s3 = Aws::S3::Client.new(credentials: Aws::SharedCredentials.new(profile_name:'myprofile')
122
- ```
123
-
124
- ## Basic Usage
125
-
126
- To make a request, you need to construct a service client.
127
-
128
- ```ruby
129
- s3 = Aws::S3::Client.new
130
- ```
131
-
132
- Each client provides one method per API operation. Refer to the
133
- [API documentation](http://docs.amazonwebservices.com/sdkforruby/api/frames.html)
134
- for a complete list of available methods.
135
-
136
- ```ruby
137
- # get a list of buckets in Amazon S3
138
- resp = s3.list_buckets
139
- puts resp.buckets.map(&:name)
140
- ```
141
-
142
- API methods accept a request params as a hash, and return structured responses.
143
-
144
- ```ruby
145
- resp = s3.list_objects(bucket: 'aws-sdk-core', max_keys: 2)
146
- resp.contents.each do |object|
147
- puts "#{object.key} => #{object.etag}"
148
- end
149
- ```
150
-
151
- ## Paging Responses
152
-
153
- Many AWS operations limit the number of results returned with each response.
154
- A simple paging interface is provided that works with every AWS request.
155
-
156
- ```ruby
157
- # yields once per response, even works with non-paged requests
158
- s3.list_objects(bucket:'aws-sdk').each do |resp|
159
- puts resp.contents.map(&:key)
160
- end
161
- ```
162
-
163
- If you prefer to control paging yourself, all returned responses have the
164
- same helper methods:
165
-
166
- ```ruby
167
- # make a request that returns a truncated response
168
- resp = s3.list_objects(bucket:'aws-sdk')
169
-
170
- resp.last_page? #=> false
171
- resp.next_page? #=> true
172
- resp = resp.next_page # send a request for the next response page
173
- resp = resp.next_page until resp.last_page?
174
- ```
175
-
176
- ## Interactive Console
177
-
178
- AWS SDK Core ships with a REPL that acts as an interactive console. You
179
- can access the REPL by running `aws.rb` from the command line.
180
-
181
- ```ruby
182
- $ aws.rb
183
- Aws> ec2.describe_instances.reservations.first.instances.first
184
- <struct
185
- instance_id="i-1234567",
186
- image_id="ami-7654321",
187
- state=<struct code=16, name="running">,
188
- ...>
189
- ```
190
-
191
- Call `#service_classes` to get a list of available service helpers and
192
- the class they construct.
193
-
194
- ```ruby
195
- Aws> service_clients
196
- {:autoscaling=>Aws::AutoScaling::Client,
197
- :cloudformation=>Aws::CloudFormation::Client,
198
- :cloudfront=>Aws::CloudFront::Client,
199
- :cloudsearch=>Aws::CloudSearch::Client,
200
- ...
201
- :swf=>Aws::SWF::Client}
202
- ```
203
-
204
- ## Versioning
205
-
206
- This project uses [semantic versioning](http://semver.org/). When the project
207
- leaves the developer preview state, we will continue by versioning from
208
- `2.0`. Until then, all versions will be suffixed by a release candidate
209
- version.
210
-
211
- ## Supported Services
212
-
213
- | Service Name | Service Class | API Versions |
214
- | ----------------------------------- | ------------------------- | ------------------------------ |
215
- | Amazon CloudFront | CloudFront | 2014-05-31 |
216
- | Amazon CloudSearch | CloudSearch | 2013-01-01 |
217
- | Amazon CloudSearch Domain | CloudSearchDomain | 2013-01-01 |
218
- | Amazon CloudWatch | CloudWatch | 2010-08-01 |
219
- | Amazon CloudWatch Logs | CloudWatchLogs | 2014-03-28 |
220
- | Amazon Cognito Identity | CognitoIdentity | 2014-06-30 |
221
- | Amazon Cognito Sync | CognitoSync | 2014-06-30 |
222
- | Amazon DynamoDB | DynamoDB | 2012-08-10 |
223
- | Amazon Elastic Compute Cloud | EC2 | 2014-06-15 |
224
- | Amazon Elastic MapReduce | EMR | 2009-03-31 |
225
- | Amazon Elastic Transcoder | ElasticTranscoder | 2012-09-25 |
226
- | Amazon ElastiCache | ElastiCache | 2014-07-15 |
227
- | Amazon Glacier | Glacier | 2012-06-01 |
228
- | Amazon Kinesis | Kinesis | 2013-12-02 |
229
- | Amazon Redshift | Redshift | 2012-12-01 |
230
- | Amazon Relational Database Service | RDS | 2013-09-09 |
231
- | Amazon Route 53 | Route53 | 2013-04-01 |
232
- | Amazon Route 53 Domains | Route53Domains | 2014-05-15 |
233
- | Amazon Simple Email Service | SES | 2010-12-01 |
234
- | Amazon Simple Notification Service | SNS | 2010-03-31 |
235
- | Amazon Simple Queue Service | SQS | 2012-11-05 |
236
- | Amazon Simple Storage Service | S3 | 2006-03-01 |
237
- | Amazon Simple Workflow Service | SWF | 2012-01-25 |
238
- | Amazon SimpleDB | SimpleDB | 2009-04-15 |
239
- | Auto Scaling | AutoScaling | 2011-01-01 |
240
- | AWS CloudFormation | CloudFormation | 2010-05-15 |
241
- | AWS CloudTrail | CloudTrail | 2013-11-01 |
242
- | AWS Data Pipeline | DataPipeline | 2012-10-29 |
243
- | AWS Direct Connect | DirectConnect | 2012-10-25 |
244
- | AWS Elastic Beanstalk | ElasticBeanstalk | 2010-12-01 |
245
- | AWS Identity and Access Management | IAM | 2010-05-08 |
246
- | AWS Import/Export | ImportExport | 2010-06-01 |
247
- | AWS OpsWorks | OpsWorks | 2013-02-18 |
248
- | AWS Security Token Service | STS | 2011-06-15 |
249
- | AWS Storage Gateway | StorageGateway | 2013-06-30 |
250
- | AWS Support | Support | 2013-04-15 |
251
- | Elastic Load Balancing | ElasticLoadBalancing | 2012-06-01 |
252
-
253
- ## License
254
-
255
- This library is distributed under the
256
- [apache license, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
257
-
258
- ```no-highlight
259
- copyright 2013. amazon web services, inc. all rights reserved.
260
-
261
- licensed under the apache license, version 2.0 (the "license");
262
- you may not use this file except in compliance with the license.
263
- you may obtain a copy of the license at
264
-
265
- http://www.apache.org/licenses/license-2.0
266
-
267
- unless required by applicable law or agreed to in writing, software
268
- distributed under the license is distributed on an "as is" basis,
269
- without warranties or conditions of any kind, either express or implied.
270
- see the license for the specific language governing permissions and
271
- limitations under the license.
272
- ```