aws-sdk 1.32.0 → 1.67.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (549) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aws-sdk.rb +1 -15
  3. metadata +16 -589
  4. data/.yardopts +0 -7
  5. data/LICENSE.txt +0 -12
  6. data/README.md +0 -291
  7. data/bin/aws-rb +0 -169
  8. data/ca-bundle.crt +0 -3554
  9. data/endpoints.json +0 -1506
  10. data/lib/aws.rb +0 -14
  11. data/lib/aws/api_config/AutoScaling-2011-01-01.yml +0 -869
  12. data/lib/aws/api_config/CloudFormation-2010-05-15.yml +0 -358
  13. data/lib/aws/api_config/CloudFront-2013-05-12.yml +0 -2448
  14. data/lib/aws/api_config/CloudFront-2013-08-26.yml +0 -2599
  15. data/lib/aws/api_config/CloudFront-2013-09-27.yml +0 -2765
  16. data/lib/aws/api_config/CloudFront-2013-11-11.yml +0 -2886
  17. data/lib/aws/api_config/CloudSearch-2011-02-01.yml +0 -681
  18. data/lib/aws/api_config/CloudTrail-2013-11-01.yml +0 -159
  19. data/lib/aws/api_config/CloudWatch-2010-08-01.yml +0 -433
  20. data/lib/aws/api_config/DataPipeline-2012-10-29.yml +0 -422
  21. data/lib/aws/api_config/DirectConnect-2012-10-25.yml +0 -735
  22. data/lib/aws/api_config/DynamoDB-2011-12-05.yml +0 -1168
  23. data/lib/aws/api_config/DynamoDB-2012-08-10.yml +0 -2005
  24. data/lib/aws/api_config/EC2-2013-08-15.yml +0 -4708
  25. data/lib/aws/api_config/EC2-2013-10-01.yml +0 -4726
  26. data/lib/aws/api_config/EC2-2013-10-15.yml +0 -4726
  27. data/lib/aws/api_config/ELB-2012-06-01.yml +0 -632
  28. data/lib/aws/api_config/EMR-2009-03-31.yml +0 -953
  29. data/lib/aws/api_config/ElastiCache-2013-06-15.yml +0 -1188
  30. data/lib/aws/api_config/ElasticBeanstalk-2010-12-01.yml +0 -847
  31. data/lib/aws/api_config/ElasticTranscoder-2012-09-25.yml +0 -2285
  32. data/lib/aws/api_config/Glacier-2012-06-01.yml +0 -649
  33. data/lib/aws/api_config/IAM-2010-05-08.yml +0 -1297
  34. data/lib/aws/api_config/ImportExport-2010-06-01.yml +0 -109
  35. data/lib/aws/api_config/Kinesis-2013-12-02.yml +0 -201
  36. data/lib/aws/api_config/OpsWorks-2013-02-18.yml +0 -1825
  37. data/lib/aws/api_config/RDS-2013-05-15.yml +0 -2464
  38. data/lib/aws/api_config/RDS-2013-09-09.yml +0 -2641
  39. data/lib/aws/api_config/Redshift-2012-12-01.yml +0 -2137
  40. data/lib/aws/api_config/Route53-2012-12-12.yml +0 -547
  41. data/lib/aws/api_config/SNS-2010-03-31.yml +0 -433
  42. data/lib/aws/api_config/SQS-2012-11-05.yml +0 -319
  43. data/lib/aws/api_config/STS-2011-06-15.yml +0 -147
  44. data/lib/aws/api_config/SimpleDB-2009-04-15.yml +0 -306
  45. data/lib/aws/api_config/SimpleEmailService-2010-12-01.yml +0 -346
  46. data/lib/aws/api_config/SimpleWorkflow-2012-01-25.yml +0 -2388
  47. data/lib/aws/api_config/StorageGateway-2012-06-30.yml +0 -748
  48. data/lib/aws/api_config/StorageGateway-2013-06-30.yml +0 -1025
  49. data/lib/aws/api_config/Support-2013-04-15.yml +0 -426
  50. data/lib/aws/auto_scaling.rb +0 -163
  51. data/lib/aws/auto_scaling/activity.rb +0 -102
  52. data/lib/aws/auto_scaling/activity_collection.rb +0 -81
  53. data/lib/aws/auto_scaling/client.rb +0 -48
  54. data/lib/aws/auto_scaling/config.rb +0 -18
  55. data/lib/aws/auto_scaling/errors.rb +0 -22
  56. data/lib/aws/auto_scaling/group.rb +0 -421
  57. data/lib/aws/auto_scaling/group_collection.rb +0 -96
  58. data/lib/aws/auto_scaling/group_options.rb +0 -155
  59. data/lib/aws/auto_scaling/instance.rb +0 -192
  60. data/lib/aws/auto_scaling/instance_collection.rb +0 -63
  61. data/lib/aws/auto_scaling/launch_configuration.rb +0 -162
  62. data/lib/aws/auto_scaling/launch_configuration_collection.rb +0 -160
  63. data/lib/aws/auto_scaling/notification_configuration.rb +0 -89
  64. data/lib/aws/auto_scaling/notification_configuration_collection.rb +0 -183
  65. data/lib/aws/auto_scaling/scaling_policy.rb +0 -142
  66. data/lib/aws/auto_scaling/scaling_policy_collection.rb +0 -72
  67. data/lib/aws/auto_scaling/scaling_policy_options.rb +0 -65
  68. data/lib/aws/auto_scaling/scheduled_action.rb +0 -141
  69. data/lib/aws/auto_scaling/scheduled_action_collection.rb +0 -202
  70. data/lib/aws/auto_scaling/tag.rb +0 -59
  71. data/lib/aws/auto_scaling/tag_collection.rb +0 -114
  72. data/lib/aws/cloud_formation.rb +0 -272
  73. data/lib/aws/cloud_formation/client.rb +0 -48
  74. data/lib/aws/cloud_formation/config.rb +0 -18
  75. data/lib/aws/cloud_formation/errors.rb +0 -22
  76. data/lib/aws/cloud_formation/stack.rb +0 -266
  77. data/lib/aws/cloud_formation/stack_collection.rb +0 -232
  78. data/lib/aws/cloud_formation/stack_event.rb +0 -73
  79. data/lib/aws/cloud_formation/stack_event_collection.rb +0 -47
  80. data/lib/aws/cloud_formation/stack_options.rb +0 -72
  81. data/lib/aws/cloud_formation/stack_output.rb +0 -53
  82. data/lib/aws/cloud_formation/stack_resource.rb +0 -117
  83. data/lib/aws/cloud_formation/stack_resource_collection.rb +0 -83
  84. data/lib/aws/cloud_formation/stack_resource_summary_collection.rb +0 -64
  85. data/lib/aws/cloud_formation/stack_summary_collection.rb +0 -123
  86. data/lib/aws/cloud_front.rb +0 -72
  87. data/lib/aws/cloud_front/client.rb +0 -45
  88. data/lib/aws/cloud_front/config.rb +0 -18
  89. data/lib/aws/cloud_front/errors.rb +0 -22
  90. data/lib/aws/cloud_search.rb +0 -73
  91. data/lib/aws/cloud_search/client.rb +0 -36
  92. data/lib/aws/cloud_search/config.rb +0 -18
  93. data/lib/aws/cloud_search/errors.rb +0 -22
  94. data/lib/aws/cloud_trail.rb +0 -72
  95. data/lib/aws/cloud_trail/client.rb +0 -35
  96. data/lib/aws/cloud_trail/config.rb +0 -18
  97. data/lib/aws/cloud_trail/errors.rb +0 -22
  98. data/lib/aws/cloud_watch.rb +0 -118
  99. data/lib/aws/cloud_watch/alarm.rb +0 -290
  100. data/lib/aws/cloud_watch/alarm_collection.rb +0 -153
  101. data/lib/aws/cloud_watch/alarm_history_item.rb +0 -50
  102. data/lib/aws/cloud_watch/alarm_history_item_collection.rb +0 -84
  103. data/lib/aws/cloud_watch/client.rb +0 -40
  104. data/lib/aws/cloud_watch/config.rb +0 -18
  105. data/lib/aws/cloud_watch/errors.rb +0 -22
  106. data/lib/aws/cloud_watch/metric.rb +0 -135
  107. data/lib/aws/cloud_watch/metric_alarm_collection.rb +0 -160
  108. data/lib/aws/cloud_watch/metric_collection.rb +0 -129
  109. data/lib/aws/cloud_watch/metric_statistics.rb +0 -69
  110. data/lib/aws/core.rb +0 -701
  111. data/lib/aws/core/async_handle.rb +0 -90
  112. data/lib/aws/core/cacheable.rb +0 -77
  113. data/lib/aws/core/client.rb +0 -778
  114. data/lib/aws/core/collection.rb +0 -263
  115. data/lib/aws/core/collection/simple.rb +0 -82
  116. data/lib/aws/core/collection/with_limit_and_next_token.rb +0 -71
  117. data/lib/aws/core/collection/with_next_token.rb +0 -97
  118. data/lib/aws/core/configuration.rb +0 -541
  119. data/lib/aws/core/credential_providers.rb +0 -506
  120. data/lib/aws/core/data.rb +0 -247
  121. data/lib/aws/core/deprecations.rb +0 -84
  122. data/lib/aws/core/endpoints.rb +0 -37
  123. data/lib/aws/core/http/connection_pool.rb +0 -349
  124. data/lib/aws/core/http/curb_handler.rb +0 -148
  125. data/lib/aws/core/http/handler.rb +0 -89
  126. data/lib/aws/core/http/net_http_handler.rb +0 -147
  127. data/lib/aws/core/http/patch.rb +0 -102
  128. data/lib/aws/core/http/request.rb +0 -249
  129. data/lib/aws/core/http/response.rb +0 -81
  130. data/lib/aws/core/indifferent_hash.rb +0 -88
  131. data/lib/aws/core/inflection.rb +0 -56
  132. data/lib/aws/core/json_client.rb +0 -47
  133. data/lib/aws/core/json_parser.rb +0 -76
  134. data/lib/aws/core/json_request_builder.rb +0 -35
  135. data/lib/aws/core/json_response_parser.rb +0 -79
  136. data/lib/aws/core/lazy_error_classes.rb +0 -90
  137. data/lib/aws/core/log_formatter.rb +0 -428
  138. data/lib/aws/core/managed_file.rb +0 -32
  139. data/lib/aws/core/meta_utils.rb +0 -45
  140. data/lib/aws/core/model.rb +0 -57
  141. data/lib/aws/core/naming.rb +0 -30
  142. data/lib/aws/core/option_grammar.rb +0 -738
  143. data/lib/aws/core/options/json_serializer.rb +0 -82
  144. data/lib/aws/core/options/validator.rb +0 -155
  145. data/lib/aws/core/options/xml_serializer.rb +0 -118
  146. data/lib/aws/core/page_result.rb +0 -75
  147. data/lib/aws/core/policy.rb +0 -942
  148. data/lib/aws/core/query_client.rb +0 -41
  149. data/lib/aws/core/query_error_parser.rb +0 -24
  150. data/lib/aws/core/query_request_builder.rb +0 -47
  151. data/lib/aws/core/query_response_parser.rb +0 -35
  152. data/lib/aws/core/region.rb +0 -85
  153. data/lib/aws/core/region_collection.rb +0 -80
  154. data/lib/aws/core/resource.rb +0 -413
  155. data/lib/aws/core/resource_cache.rb +0 -40
  156. data/lib/aws/core/response.rb +0 -211
  157. data/lib/aws/core/response_cache.rb +0 -50
  158. data/lib/aws/core/rest_error_parser.rb +0 -24
  159. data/lib/aws/core/rest_json_client.rb +0 -40
  160. data/lib/aws/core/rest_request_builder.rb +0 -154
  161. data/lib/aws/core/rest_response_parser.rb +0 -66
  162. data/lib/aws/core/rest_xml_client.rb +0 -47
  163. data/lib/aws/core/service_interface.rb +0 -83
  164. data/lib/aws/core/signers/base.rb +0 -46
  165. data/lib/aws/core/signers/cloud_front.rb +0 -56
  166. data/lib/aws/core/signers/s3.rb +0 -159
  167. data/lib/aws/core/signers/version_2.rb +0 -72
  168. data/lib/aws/core/signers/version_3.rb +0 -86
  169. data/lib/aws/core/signers/version_3_https.rb +0 -61
  170. data/lib/aws/core/signers/version_4.rb +0 -228
  171. data/lib/aws/core/signers/version_4/chunk_signed_stream.rb +0 -191
  172. data/lib/aws/core/uri_escape.rb +0 -44
  173. data/lib/aws/core/xml/frame.rb +0 -244
  174. data/lib/aws/core/xml/frame_stack.rb +0 -85
  175. data/lib/aws/core/xml/grammar.rb +0 -306
  176. data/lib/aws/core/xml/parser.rb +0 -70
  177. data/lib/aws/core/xml/root_frame.rb +0 -65
  178. data/lib/aws/core/xml/sax_handlers/libxml.rb +0 -47
  179. data/lib/aws/core/xml/sax_handlers/nokogiri.rb +0 -56
  180. data/lib/aws/core/xml/sax_handlers/ox.rb +0 -41
  181. data/lib/aws/core/xml/sax_handlers/rexml.rb +0 -47
  182. data/lib/aws/core/xml/stub.rb +0 -123
  183. data/lib/aws/data_pipeline.rb +0 -72
  184. data/lib/aws/data_pipeline/client.rb +0 -36
  185. data/lib/aws/data_pipeline/config.rb +0 -18
  186. data/lib/aws/data_pipeline/errors.rb +0 -20
  187. data/lib/aws/direct_connect.rb +0 -73
  188. data/lib/aws/direct_connect/client.rb +0 -36
  189. data/lib/aws/direct_connect/config.rb +0 -18
  190. data/lib/aws/direct_connect/errors.rb +0 -22
  191. data/lib/aws/dynamo_db.rb +0 -214
  192. data/lib/aws/dynamo_db/attribute_collection.rb +0 -456
  193. data/lib/aws/dynamo_db/batch_get.rb +0 -213
  194. data/lib/aws/dynamo_db/batch_write.rb +0 -252
  195. data/lib/aws/dynamo_db/binary.rb +0 -35
  196. data/lib/aws/dynamo_db/client.rb +0 -129
  197. data/lib/aws/dynamo_db/client/v20111205.rb +0 -1266
  198. data/lib/aws/dynamo_db/client/v20120810.rb +0 -1409
  199. data/lib/aws/dynamo_db/client_v2.rb +0 -44
  200. data/lib/aws/dynamo_db/config.rb +0 -24
  201. data/lib/aws/dynamo_db/errors.rb +0 -20
  202. data/lib/aws/dynamo_db/expectations.rb +0 -40
  203. data/lib/aws/dynamo_db/item.rb +0 -133
  204. data/lib/aws/dynamo_db/item_collection.rb +0 -856
  205. data/lib/aws/dynamo_db/item_data.rb +0 -31
  206. data/lib/aws/dynamo_db/keys.rb +0 -41
  207. data/lib/aws/dynamo_db/primary_key_element.rb +0 -48
  208. data/lib/aws/dynamo_db/resource.rb +0 -33
  209. data/lib/aws/dynamo_db/table.rb +0 -496
  210. data/lib/aws/dynamo_db/table_collection.rb +0 -165
  211. data/lib/aws/dynamo_db/types.rb +0 -111
  212. data/lib/aws/ec2.rb +0 -428
  213. data/lib/aws/ec2/attachment.rb +0 -135
  214. data/lib/aws/ec2/attachment_collection.rb +0 -54
  215. data/lib/aws/ec2/availability_zone.rb +0 -86
  216. data/lib/aws/ec2/availability_zone_collection.rb +0 -43
  217. data/lib/aws/ec2/block_device_mappings.rb +0 -53
  218. data/lib/aws/ec2/client.rb +0 -101
  219. data/lib/aws/ec2/collection.rb +0 -36
  220. data/lib/aws/ec2/config.rb +0 -30
  221. data/lib/aws/ec2/customer_gateway.rb +0 -90
  222. data/lib/aws/ec2/customer_gateway_collection.rb +0 -73
  223. data/lib/aws/ec2/dhcp_options.rb +0 -106
  224. data/lib/aws/ec2/dhcp_options_collection.rb +0 -87
  225. data/lib/aws/ec2/elastic_ip.rb +0 -209
  226. data/lib/aws/ec2/elastic_ip_collection.rb +0 -93
  227. data/lib/aws/ec2/errors.rb +0 -32
  228. data/lib/aws/ec2/export_task.rb +0 -120
  229. data/lib/aws/ec2/export_task_collection.rb +0 -67
  230. data/lib/aws/ec2/filtered_collection.rb +0 -87
  231. data/lib/aws/ec2/has_permissions.rb +0 -44
  232. data/lib/aws/ec2/image.rb +0 -270
  233. data/lib/aws/ec2/image_collection.rb +0 -220
  234. data/lib/aws/ec2/instance.rb +0 -803
  235. data/lib/aws/ec2/instance_collection.rb +0 -391
  236. data/lib/aws/ec2/internet_gateway.rb +0 -122
  237. data/lib/aws/ec2/internet_gateway/attachment.rb +0 -78
  238. data/lib/aws/ec2/internet_gateway_collection.rb +0 -54
  239. data/lib/aws/ec2/key_pair.rb +0 -82
  240. data/lib/aws/ec2/key_pair_collection.rb +0 -99
  241. data/lib/aws/ec2/network_acl.rb +0 -256
  242. data/lib/aws/ec2/network_acl/association.rb +0 -56
  243. data/lib/aws/ec2/network_acl/entry.rb +0 -147
  244. data/lib/aws/ec2/network_acl_collection.rb +0 -64
  245. data/lib/aws/ec2/network_interface.rb +0 -237
  246. data/lib/aws/ec2/network_interface/attachment.rb +0 -100
  247. data/lib/aws/ec2/network_interface_collection.rb +0 -103
  248. data/lib/aws/ec2/permission_collection.rb +0 -174
  249. data/lib/aws/ec2/region.rb +0 -106
  250. data/lib/aws/ec2/region_collection.rb +0 -51
  251. data/lib/aws/ec2/reserved_instances.rb +0 -56
  252. data/lib/aws/ec2/reserved_instances_collection.rb +0 -40
  253. data/lib/aws/ec2/reserved_instances_offering.rb +0 -60
  254. data/lib/aws/ec2/reserved_instances_offering_collection.rb +0 -45
  255. data/lib/aws/ec2/resource.rb +0 -161
  256. data/lib/aws/ec2/resource_tag_collection.rb +0 -211
  257. data/lib/aws/ec2/route_table.rb +0 -205
  258. data/lib/aws/ec2/route_table/association.rb +0 -119
  259. data/lib/aws/ec2/route_table/route.rb +0 -119
  260. data/lib/aws/ec2/route_table_collection.rb +0 -72
  261. data/lib/aws/ec2/security_group.rb +0 -482
  262. data/lib/aws/ec2/security_group/ip_permission.rb +0 -135
  263. data/lib/aws/ec2/security_group/ip_permission_collection.rb +0 -82
  264. data/lib/aws/ec2/security_group_collection.rb +0 -133
  265. data/lib/aws/ec2/snapshot.rb +0 -143
  266. data/lib/aws/ec2/snapshot_collection.rb +0 -131
  267. data/lib/aws/ec2/subnet.rb +0 -161
  268. data/lib/aws/ec2/subnet_collection.rb +0 -115
  269. data/lib/aws/ec2/tag.rb +0 -81
  270. data/lib/aws/ec2/tag_collection.rb +0 -107
  271. data/lib/aws/ec2/tagged_collection.rb +0 -53
  272. data/lib/aws/ec2/tagged_item.rb +0 -85
  273. data/lib/aws/ec2/volume.rb +0 -174
  274. data/lib/aws/ec2/volume_collection.rb +0 -98
  275. data/lib/aws/ec2/vpc.rb +0 -166
  276. data/lib/aws/ec2/vpc_collection.rb +0 -70
  277. data/lib/aws/ec2/vpn_connection.rb +0 -99
  278. data/lib/aws/ec2/vpn_connection/telemetry.rb +0 -49
  279. data/lib/aws/ec2/vpn_connection_collection.rb +0 -96
  280. data/lib/aws/ec2/vpn_gateway.rb +0 -123
  281. data/lib/aws/ec2/vpn_gateway/attachment.rb +0 -45
  282. data/lib/aws/ec2/vpn_gateway_collection.rb +0 -77
  283. data/lib/aws/elastic_beanstalk.rb +0 -49
  284. data/lib/aws/elastic_beanstalk/client.rb +0 -36
  285. data/lib/aws/elastic_beanstalk/config.rb +0 -18
  286. data/lib/aws/elastic_beanstalk/errors.rb +0 -22
  287. data/lib/aws/elastic_transcoder.rb +0 -29
  288. data/lib/aws/elastic_transcoder/client.rb +0 -48
  289. data/lib/aws/elastic_transcoder/config.rb +0 -18
  290. data/lib/aws/elastic_transcoder/errors.rb +0 -23
  291. data/lib/aws/elasticache.rb +0 -49
  292. data/lib/aws/elasticache/client.rb +0 -35
  293. data/lib/aws/elasticache/config.rb +0 -18
  294. data/lib/aws/elasticache/errors.rb +0 -22
  295. data/lib/aws/elb.rb +0 -66
  296. data/lib/aws/elb/availability_zone_collection.rb +0 -138
  297. data/lib/aws/elb/backend_server_policy_collection.rb +0 -139
  298. data/lib/aws/elb/client.rb +0 -35
  299. data/lib/aws/elb/config.rb +0 -18
  300. data/lib/aws/elb/errors.rb +0 -26
  301. data/lib/aws/elb/instance_collection.rb +0 -168
  302. data/lib/aws/elb/listener.rb +0 -190
  303. data/lib/aws/elb/listener_collection.rb +0 -113
  304. data/lib/aws/elb/listener_opts.rb +0 -45
  305. data/lib/aws/elb/load_balancer.rb +0 -280
  306. data/lib/aws/elb/load_balancer_collection.rb +0 -146
  307. data/lib/aws/elb/load_balancer_policy.rb +0 -93
  308. data/lib/aws/elb/load_balancer_policy_collection.rb +0 -208
  309. data/lib/aws/emr.rb +0 -87
  310. data/lib/aws/emr/client.rb +0 -35
  311. data/lib/aws/emr/config.rb +0 -18
  312. data/lib/aws/emr/errors.rb +0 -22
  313. data/lib/aws/emr/instance_group.rb +0 -138
  314. data/lib/aws/emr/instance_group_collection.rb +0 -82
  315. data/lib/aws/emr/job_flow.rb +0 -307
  316. data/lib/aws/emr/job_flow_collection.rb +0 -185
  317. data/lib/aws/errors.rb +0 -162
  318. data/lib/aws/glacier.rb +0 -79
  319. data/lib/aws/glacier/archive.rb +0 -56
  320. data/lib/aws/glacier/archive_collection.rb +0 -146
  321. data/lib/aws/glacier/client.rb +0 -49
  322. data/lib/aws/glacier/config.rb +0 -19
  323. data/lib/aws/glacier/errors.rb +0 -22
  324. data/lib/aws/glacier/resource.rb +0 -30
  325. data/lib/aws/glacier/vault.rb +0 -145
  326. data/lib/aws/glacier/vault_collection.rb +0 -75
  327. data/lib/aws/glacier/vault_notification_configuration.rb +0 -29
  328. data/lib/aws/iam.rb +0 -408
  329. data/lib/aws/iam/access_key.rb +0 -185
  330. data/lib/aws/iam/access_key_collection.rb +0 -128
  331. data/lib/aws/iam/account_alias_collection.rb +0 -79
  332. data/lib/aws/iam/client.rb +0 -49
  333. data/lib/aws/iam/collection.rb +0 -83
  334. data/lib/aws/iam/config.rb +0 -18
  335. data/lib/aws/iam/errors.rb +0 -22
  336. data/lib/aws/iam/group.rb +0 -111
  337. data/lib/aws/iam/group_collection.rb +0 -132
  338. data/lib/aws/iam/group_policy_collection.rb +0 -47
  339. data/lib/aws/iam/group_user_collection.rb +0 -84
  340. data/lib/aws/iam/login_profile.rb +0 -99
  341. data/lib/aws/iam/mfa_device.rb +0 -52
  342. data/lib/aws/iam/mfa_device_collection.rb +0 -127
  343. data/lib/aws/iam/policy.rb +0 -46
  344. data/lib/aws/iam/policy_collection.rb +0 -188
  345. data/lib/aws/iam/resource.rb +0 -62
  346. data/lib/aws/iam/server_certificate.rb +0 -141
  347. data/lib/aws/iam/server_certificate_collection.rb +0 -138
  348. data/lib/aws/iam/signing_certificate.rb +0 -174
  349. data/lib/aws/iam/signing_certificate_collection.rb +0 -131
  350. data/lib/aws/iam/user.rb +0 -200
  351. data/lib/aws/iam/user_collection.rb +0 -133
  352. data/lib/aws/iam/user_group_collection.rb +0 -98
  353. data/lib/aws/iam/user_policy.rb +0 -90
  354. data/lib/aws/iam/user_policy_collection.rb +0 -45
  355. data/lib/aws/iam/virtual_mfa_device.rb +0 -139
  356. data/lib/aws/iam/virtual_mfa_device_collection.rb +0 -73
  357. data/lib/aws/import_export.rb +0 -73
  358. data/lib/aws/import_export/client.rb +0 -35
  359. data/lib/aws/import_export/config.rb +0 -19
  360. data/lib/aws/import_export/errors.rb +0 -22
  361. data/lib/aws/kinesis.rb +0 -53
  362. data/lib/aws/kinesis/client.rb +0 -35
  363. data/lib/aws/kinesis/config.rb +0 -18
  364. data/lib/aws/kinesis/errors.rb +0 -20
  365. data/lib/aws/ops_works.rb +0 -29
  366. data/lib/aws/ops_works/client.rb +0 -35
  367. data/lib/aws/ops_works/config.rb +0 -18
  368. data/lib/aws/ops_works/errors.rb +0 -20
  369. data/lib/aws/rails.rb +0 -195
  370. data/lib/aws/rds.rb +0 -70
  371. data/lib/aws/rds/client.rb +0 -42
  372. data/lib/aws/rds/config.rb +0 -18
  373. data/lib/aws/rds/db_instance.rb +0 -216
  374. data/lib/aws/rds/db_instance_collection.rb +0 -75
  375. data/lib/aws/rds/db_snapshot.rb +0 -163
  376. data/lib/aws/rds/db_snapshot_collection.rb +0 -89
  377. data/lib/aws/rds/errors.rb +0 -22
  378. data/lib/aws/record.rb +0 -139
  379. data/lib/aws/record/abstract_base.rb +0 -690
  380. data/lib/aws/record/attributes.rb +0 -388
  381. data/lib/aws/record/conversion.rb +0 -38
  382. data/lib/aws/record/dirty_tracking.rb +0 -287
  383. data/lib/aws/record/errors.rb +0 -143
  384. data/lib/aws/record/exceptions.rb +0 -51
  385. data/lib/aws/record/hash_model.rb +0 -204
  386. data/lib/aws/record/hash_model/attributes.rb +0 -195
  387. data/lib/aws/record/hash_model/finder_methods.rb +0 -172
  388. data/lib/aws/record/hash_model/scope.rb +0 -108
  389. data/lib/aws/record/model.rb +0 -453
  390. data/lib/aws/record/model/attributes.rb +0 -377
  391. data/lib/aws/record/model/finder_methods.rb +0 -232
  392. data/lib/aws/record/model/scope.rb +0 -212
  393. data/lib/aws/record/naming.rb +0 -31
  394. data/lib/aws/record/scope.rb +0 -203
  395. data/lib/aws/record/validations.rb +0 -694
  396. data/lib/aws/record/validator.rb +0 -246
  397. data/lib/aws/record/validators/acceptance.rb +0 -49
  398. data/lib/aws/record/validators/block.rb +0 -36
  399. data/lib/aws/record/validators/confirmation.rb +0 -41
  400. data/lib/aws/record/validators/count.rb +0 -106
  401. data/lib/aws/record/validators/exclusion.rb +0 -41
  402. data/lib/aws/record/validators/format.rb +0 -55
  403. data/lib/aws/record/validators/inclusion.rb +0 -54
  404. data/lib/aws/record/validators/length.rb +0 -105
  405. data/lib/aws/record/validators/method.rb +0 -31
  406. data/lib/aws/record/validators/numericality.rb +0 -136
  407. data/lib/aws/record/validators/presence.rb +0 -43
  408. data/lib/aws/redshift.rb +0 -51
  409. data/lib/aws/redshift/client.rb +0 -35
  410. data/lib/aws/redshift/config.rb +0 -18
  411. data/lib/aws/redshift/errors.rb +0 -22
  412. data/lib/aws/route_53.rb +0 -86
  413. data/lib/aws/route_53/change_batch.rb +0 -161
  414. data/lib/aws/route_53/change_info.rb +0 -72
  415. data/lib/aws/route_53/client.rb +0 -35
  416. data/lib/aws/route_53/config.rb +0 -18
  417. data/lib/aws/route_53/errors.rb +0 -22
  418. data/lib/aws/route_53/hosted_zone.rb +0 -111
  419. data/lib/aws/route_53/hosted_zone_collection.rb +0 -100
  420. data/lib/aws/route_53/resource_record_set.rb +0 -251
  421. data/lib/aws/route_53/resource_record_set_collection.rb +0 -110
  422. data/lib/aws/s3.rb +0 -156
  423. data/lib/aws/s3/access_control_list.rb +0 -265
  424. data/lib/aws/s3/acl_object.rb +0 -264
  425. data/lib/aws/s3/acl_options.rb +0 -204
  426. data/lib/aws/s3/bucket.rb +0 -742
  427. data/lib/aws/s3/bucket_collection.rb +0 -162
  428. data/lib/aws/s3/bucket_lifecycle_configuration.rb +0 -457
  429. data/lib/aws/s3/bucket_tag_collection.rb +0 -111
  430. data/lib/aws/s3/bucket_version_collection.rb +0 -79
  431. data/lib/aws/s3/cipher_io.rb +0 -120
  432. data/lib/aws/s3/client.rb +0 -1919
  433. data/lib/aws/s3/client/xml.rb +0 -259
  434. data/lib/aws/s3/config.rb +0 -48
  435. data/lib/aws/s3/cors_rule.rb +0 -108
  436. data/lib/aws/s3/cors_rule_collection.rb +0 -194
  437. data/lib/aws/s3/data_options.rb +0 -191
  438. data/lib/aws/s3/encryption_utils.rb +0 -146
  439. data/lib/aws/s3/errors.rb +0 -94
  440. data/lib/aws/s3/multipart_upload.rb +0 -351
  441. data/lib/aws/s3/multipart_upload_collection.rb +0 -76
  442. data/lib/aws/s3/object_collection.rb +0 -353
  443. data/lib/aws/s3/object_metadata.rb +0 -103
  444. data/lib/aws/s3/object_upload_collection.rb +0 -77
  445. data/lib/aws/s3/object_version.rb +0 -154
  446. data/lib/aws/s3/object_version_collection.rb +0 -89
  447. data/lib/aws/s3/paginated_collection.rb +0 -75
  448. data/lib/aws/s3/policy.rb +0 -74
  449. data/lib/aws/s3/prefix_and_delimiter_collection.rb +0 -47
  450. data/lib/aws/s3/prefixed_collection.rb +0 -85
  451. data/lib/aws/s3/presign_v4.rb +0 -127
  452. data/lib/aws/s3/presigned_post.rb +0 -554
  453. data/lib/aws/s3/request.rb +0 -62
  454. data/lib/aws/s3/s3_object.rb +0 -1781
  455. data/lib/aws/s3/tree.rb +0 -116
  456. data/lib/aws/s3/tree/branch_node.rb +0 -68
  457. data/lib/aws/s3/tree/child_collection.rb +0 -104
  458. data/lib/aws/s3/tree/leaf_node.rb +0 -94
  459. data/lib/aws/s3/tree/node.rb +0 -22
  460. data/lib/aws/s3/tree/parent.rb +0 -87
  461. data/lib/aws/s3/uploaded_part.rb +0 -82
  462. data/lib/aws/s3/uploaded_part_collection.rb +0 -84
  463. data/lib/aws/s3/website_configuration.rb +0 -102
  464. data/lib/aws/simple_db.rb +0 -218
  465. data/lib/aws/simple_db/attribute.rb +0 -156
  466. data/lib/aws/simple_db/attribute_collection.rb +0 -240
  467. data/lib/aws/simple_db/client.rb +0 -67
  468. data/lib/aws/simple_db/config.rb +0 -20
  469. data/lib/aws/simple_db/consistent_read_option.rb +0 -42
  470. data/lib/aws/simple_db/delete_attributes.rb +0 -62
  471. data/lib/aws/simple_db/domain.rb +0 -123
  472. data/lib/aws/simple_db/domain_collection.rb +0 -86
  473. data/lib/aws/simple_db/domain_metadata.rb +0 -110
  474. data/lib/aws/simple_db/errors.rb +0 -55
  475. data/lib/aws/simple_db/expect_condition_option.rb +0 -45
  476. data/lib/aws/simple_db/item.rb +0 -93
  477. data/lib/aws/simple_db/item_collection.rb +0 -654
  478. data/lib/aws/simple_db/item_data.rb +0 -73
  479. data/lib/aws/simple_db/put_attributes.rb +0 -60
  480. data/lib/aws/simple_email_service.rb +0 -430
  481. data/lib/aws/simple_email_service/client.rb +0 -37
  482. data/lib/aws/simple_email_service/config.rb +0 -18
  483. data/lib/aws/simple_email_service/email_address_collection.rb +0 -69
  484. data/lib/aws/simple_email_service/errors.rb +0 -22
  485. data/lib/aws/simple_email_service/identity.rb +0 -209
  486. data/lib/aws/simple_email_service/identity_collection.rb +0 -81
  487. data/lib/aws/simple_email_service/quotas.rb +0 -66
  488. data/lib/aws/simple_workflow.rb +0 -227
  489. data/lib/aws/simple_workflow/activity_task.rb +0 -178
  490. data/lib/aws/simple_workflow/activity_task_collection.rb +0 -123
  491. data/lib/aws/simple_workflow/activity_type.rb +0 -131
  492. data/lib/aws/simple_workflow/activity_type_collection.rb +0 -93
  493. data/lib/aws/simple_workflow/client.rb +0 -69
  494. data/lib/aws/simple_workflow/config.rb +0 -18
  495. data/lib/aws/simple_workflow/count.rb +0 -49
  496. data/lib/aws/simple_workflow/decision_task.rb +0 -603
  497. data/lib/aws/simple_workflow/decision_task_collection.rb +0 -225
  498. data/lib/aws/simple_workflow/domain.rb +0 -122
  499. data/lib/aws/simple_workflow/domain_collection.rb +0 -169
  500. data/lib/aws/simple_workflow/errors.rb +0 -20
  501. data/lib/aws/simple_workflow/history_event.rb +0 -276
  502. data/lib/aws/simple_workflow/history_event_collection.rb +0 -76
  503. data/lib/aws/simple_workflow/option_formatters.rb +0 -82
  504. data/lib/aws/simple_workflow/resource.rb +0 -94
  505. data/lib/aws/simple_workflow/type.rb +0 -89
  506. data/lib/aws/simple_workflow/type_collection.rb +0 -140
  507. data/lib/aws/simple_workflow/workflow_execution.rb +0 -384
  508. data/lib/aws/simple_workflow/workflow_execution_collection.rb +0 -617
  509. data/lib/aws/simple_workflow/workflow_type.rb +0 -179
  510. data/lib/aws/simple_workflow/workflow_type_collection.rb +0 -91
  511. data/lib/aws/sns.rb +0 -76
  512. data/lib/aws/sns/client.rb +0 -35
  513. data/lib/aws/sns/config.rb +0 -18
  514. data/lib/aws/sns/errors.rb +0 -22
  515. data/lib/aws/sns/has_delivery_policy.rb +0 -68
  516. data/lib/aws/sns/message.rb +0 -194
  517. data/lib/aws/sns/originators/from_auto_scaling.rb +0 -68
  518. data/lib/aws/sns/policy.rb +0 -47
  519. data/lib/aws/sns/subscription.rb +0 -165
  520. data/lib/aws/sns/subscription_collection.rb +0 -78
  521. data/lib/aws/sns/topic.rb +0 -403
  522. data/lib/aws/sns/topic_collection.rb +0 -62
  523. data/lib/aws/sns/topic_subscription_collection.rb +0 -54
  524. data/lib/aws/sqs.rb +0 -80
  525. data/lib/aws/sqs/client.rb +0 -53
  526. data/lib/aws/sqs/config.rb +0 -20
  527. data/lib/aws/sqs/errors.rb +0 -125
  528. data/lib/aws/sqs/policy.rb +0 -48
  529. data/lib/aws/sqs/queue.rb +0 -843
  530. data/lib/aws/sqs/queue_collection.rb +0 -182
  531. data/lib/aws/sqs/received_message.rb +0 -182
  532. data/lib/aws/sqs/received_sns_message.rb +0 -116
  533. data/lib/aws/storage_gateway.rb +0 -72
  534. data/lib/aws/storage_gateway/client.rb +0 -42
  535. data/lib/aws/storage_gateway/config.rb +0 -18
  536. data/lib/aws/storage_gateway/errors.rb +0 -22
  537. data/lib/aws/sts.rb +0 -164
  538. data/lib/aws/sts/client.rb +0 -46
  539. data/lib/aws/sts/config.rb +0 -18
  540. data/lib/aws/sts/errors.rb +0 -22
  541. data/lib/aws/sts/federated_session.rb +0 -56
  542. data/lib/aws/sts/policy.rb +0 -30
  543. data/lib/aws/sts/session.rb +0 -48
  544. data/lib/aws/support.rb +0 -29
  545. data/lib/aws/support/client.rb +0 -35
  546. data/lib/aws/support/config.rb +0 -18
  547. data/lib/aws/support/errors.rb +0 -20
  548. data/lib/aws/version.rb +0 -17
  549. data/rails/init.rb +0 -15
@@ -1,1409 +0,0 @@
1
- # Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License"). You
4
- # may not use this file except in compliance with the License. A copy of
5
- # the License is located at
6
- #
7
- # http://aws.amazon.com/apache2.0/
8
- #
9
- # or in the "license" file accompanying this file. This file is
10
- # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- # ANY KIND, either express or implied. See the License for the specific
12
- # language governing permissions and limitations under the License.
13
-
14
- class AWS::DynamoDB::Client::V20120810 < AWS::DynamoDB::Client
15
-
16
- # client methods #
17
-
18
- # @!method batch_get_item(options = {})
19
- # Calls the BatchGetItem API operation.
20
- # @param [Hash] options
21
- #
22
- # * `:request_items` - *required* - (Hash<String,Hash>) A map of one or
23
- # more table names and, for each table, the corresponding primary
24
- # keys for the items to retrieve. Each table name can be invoked only
25
- # once. Each element in the map consists of the following: Keys - An
26
- # array of primary key attribute values that define specific items in
27
- # the table. AttributesToGet - One or more attributes to be retrieved
28
- # from the table or index. By default, all attributes are returned.
29
- # If a specified attribute is not found, it does not appear in the
30
- # result. ConsistentRead - If `true` , a strongly consistent read is
31
- # used; if `false` (the default), an eventually consistent read is
32
- # used.
33
- # * `:keys` - *required* - (Array<Hash<String,Hash>>) Represents the
34
- # primary key attribute values that define the items and the
35
- # attributes associated with the items.
36
- # * `:s` - (String) Represents a String data type
37
- # * `:n` - (String) Represents a Number data type
38
- # * `:b` - (String) Represents a Binary data type
39
- # * `:ss` - (Array<String>) Represents a String set data type
40
- # * `:ns` - (Array<String>) Represents a Number set data type
41
- # * `:bs` - (Array<String>) Represents a Binary set data type
42
- # * `:attributes_to_get` - (Array<String>) Represents one or more
43
- # attributes to retrieve from the table or index. If no attribute
44
- # names are specified then all attributes will be returned. If any
45
- # of the specified attributes are not found, they will not appear
46
- # in the result.
47
- # * `:consistent_read` - (Boolean) Represents the consistency of a
48
- # read operation. If set to `true` , then a strongly consistent
49
- # read is used; otherwise, an eventually consistent read is used.
50
- # * `:return_consumed_capacity` - (String) Valid values include:
51
- # * `TOTAL`
52
- # * `NONE`
53
- # @return [Core::Response]
54
- # The #data method of the response object returns
55
- # a hash with the following structure:
56
- #
57
- # * `:responses` - (Hash<String,Hash>)
58
- # * `:member` - (Hash<String,Hash>)
59
- # * `:s` - (String)
60
- # * `:n` - (String)
61
- # * `:b` - (String)
62
- # * `:ss` - (Array<String>)
63
- # * `:ns` - (Array<String>)
64
- # * `:bs` - (Array<Blob>)
65
- # * `:unprocessed_keys` - (Hash<String,Hash>)
66
- # * `:member` - (Hash<String,Hash>)
67
- # * `:s` - (String)
68
- # * `:n` - (String)
69
- # * `:b` - (String)
70
- # * `:ss` - (Array<String>)
71
- # * `:ns` - (Array<String>)
72
- # * `:bs` - (Array<Blob>)
73
- # * `:attributes_to_get` - (Array<String>)
74
- # * `:consistent_read` - (Boolean)
75
- # * `:consumed_capacity` - (Array<Hash>)
76
- # * `:table_name` - (String)
77
- # * `:capacity_units` - (Numeric)
78
-
79
- # @!method batch_write_item(options = {})
80
- # Calls the BatchWriteItem API operation.
81
- # @param [Hash] options
82
- #
83
- # * `:request_items` - *required* - (Hash<String,Array<Hash>>) A map of
84
- # one or more table names and, for each table, a list of operations
85
- # to be performed (DeleteRequest or PutRequest). Each element in the
86
- # map consists of the following: DeleteRequest - Perform a DeleteItem
87
- # operation on the specified item. The item to be deleted is
88
- # identified by a Key subelement: Key - A map of primary key
89
- # attribute values that uniquely identify the item. Each entry in
90
- # this map consists of an attribute name and an attribute value.
91
- # PutRequest - Perform a PutItem operation on the specified item. The
92
- # item to be put is identified by an Item subelement: Item - A map of
93
- # attributes and their values. Each entry in this map consists of an
94
- # attribute name and an attribute value. Attribute values must not be
95
- # null; string and binary type attributes must have lengths greater
96
- # than zero; and set type attributes must not be empty. Requests that
97
- # contain empty values will be rejected with a ValidationException.
98
- # If you specify any attributes that are part of an index key, then
99
- # the data types for those attributes must match those of the schema
100
- # in the table's attribute definition.
101
- # * `:put_request` - (Hash) Represents a request to perform a
102
- # DeleteItem operation.
103
- # * `:item` - *required* - (Hash<String,Hash>) A map of attribute
104
- # name to attribute values, representing the primary key of an
105
- # item to be processed by PutItem. All of the table's primary key
106
- # attributes must be specified, and their data types must match
107
- # those of the table's key schema. If any attributes are present
108
- # in the item which are part of an index key schema for the
109
- # table, their types must match the index key schema.
110
- # * `:s` - (String) Represents a String data type
111
- # * `:n` - (String) Represents a Number data type
112
- # * `:b` - (String) Represents a Binary data type
113
- # * `:ss` - (Array<String>) Represents a String set data type
114
- # * `:ns` - (Array<String>) Represents a Number set data type
115
- # * `:bs` - (Array<String>) Represents a Binary set data type
116
- # * `:delete_request` - (Hash) Represents a request to perform a
117
- # PutItem operation.
118
- # * `:key` - *required* - (Hash<String,Hash>) A map of attribute
119
- # name to attribute values, representing the primary key of the
120
- # item to delete. All of the table's primary key attributes must
121
- # be specified, and their data types must match those of the
122
- # table's key schema.
123
- # * `:s` - (String) Represents a String data type
124
- # * `:n` - (String) Represents a Number data type
125
- # * `:b` - (String) Represents a Binary data type
126
- # * `:ss` - (Array<String>) Represents a String set data type
127
- # * `:ns` - (Array<String>) Represents a Number set data type
128
- # * `:bs` - (Array<String>) Represents a Binary set data type
129
- # * `:return_consumed_capacity` - (String) Valid values include:
130
- # * `TOTAL`
131
- # * `NONE`
132
- # * `:return_item_collection_metrics` - (String) Valid values include:
133
- # * `SIZE`
134
- # * `NONE`
135
- # @return [Core::Response]
136
- # The #data method of the response object returns
137
- # a hash with the following structure:
138
- #
139
- # * `:unprocessed_items` - (Hash<String,Hash>)
140
- # * `:value` - (Array<Hash>)
141
- # * `:put_request` - (Hash)
142
- # * `:item` - (Hash<String,Hash>)
143
- # * `:s` - (String)
144
- # * `:n` - (String)
145
- # * `:b` - (String)
146
- # * `:ss` - (Array<String>)
147
- # * `:ns` - (Array<String>)
148
- # * `:bs` - (Array<Blob>)
149
- # * `:delete_request` - (Hash)
150
- # * `:key` - (Hash<String,Hash>)
151
- # * `:s` - (String)
152
- # * `:n` - (String)
153
- # * `:b` - (String)
154
- # * `:ss` - (Array<String>)
155
- # * `:ns` - (Array<String>)
156
- # * `:bs` - (Array<Blob>)
157
- # * `:item_collection_metrics` - (Hash<String,Hash>)
158
- # * `:value` - (Array<Hash>)
159
- # * `:item_collection_key` - (Hash<String,Hash>)
160
- # * `:s` - (String)
161
- # * `:n` - (String)
162
- # * `:b` - (String)
163
- # * `:ss` - (Array<String>)
164
- # * `:ns` - (Array<String>)
165
- # * `:bs` - (Array<Blob>)
166
- # * `:size_estimate_range_gb` - (Array<Float>)
167
- # * `:consumed_capacity` - (Array<Hash>)
168
- # * `:table_name` - (String)
169
- # * `:capacity_units` - (Numeric)
170
-
171
- # @!method create_table(options = {})
172
- # Calls the CreateTable API operation.
173
- # @param [Hash] options
174
- #
175
- # * `:attribute_definitions` - *required* - (Array<Hash>) An array of
176
- # attributes that describe the key schema for the table and indexes.
177
- # * `:attribute_name` - *required* - (String) A name for the
178
- # attribute.
179
- # * `:attribute_type` - *required* - (String) The data type for the
180
- # attribute. Valid values include:
181
- # * `S`
182
- # * `N`
183
- # * `B`
184
- # * `:table_name` - *required* - (String) The name of the table to
185
- # create.
186
- # * `:key_schema` - *required* - (Array<Hash>) Specifies the attributes
187
- # that make up the primary key for the table. The attributes in
188
- # KeySchema must also be defined in the AttributeDefinitions array.
189
- # For more information, see Data Model . Each KeySchemaElement in the
190
- # array is composed of: AttributeName - The name of this key
191
- # attribute. KeyType - Determines whether the key attribute is HASH
192
- # or RANGE. For a primary key that consists of a hash attribute, you
193
- # must specify exactly one element with a KeyType of HASH. For a
194
- # primary key that consists of hash and range attributes, you must
195
- # specify exactly two elements, in this order: The first element must
196
- # have a KeyType of HASH, and the second element must have a KeyType
197
- # of RANGE. For more information, see Specifying the Primary Key .
198
- # * `:attribute_name` - *required* - (String) Represents the name of
199
- # a key attribute.
200
- # * `:key_type` - *required* - (String) Represents the attribute
201
- # data, consisting of the data type and the attribute value itself.
202
- # Valid values include:
203
- # * `HASH`
204
- # * `RANGE`
205
- # * `:local_secondary_indexes` - (Array<Hash>) One or more secondary
206
- # indexes (the maximum is five) to be created on the table. Each
207
- # index is scoped to a given hash key value. There is a 10 gigabyte
208
- # size limit per hash key; otherwise, the size of a local secondary
209
- # index is unconstrained. Each secondary index in the array includes
210
- # the following: IndexName - The name of the secondary index. Must be
211
- # unique only for this table. KeySchema - Specifies the key schema
212
- # for the index. The key schema must begin with the same hash key
213
- # attribute as the table.
214
- # * `:index_name` - *required* - (String) Represents the name of the
215
- # secondary index. The name must be unique among all other indexes
216
- # on this table.
217
- # * `:key_schema` - *required* - (Array<Hash>) Represents the
218
- # complete index key schema, which consists of one or more pairs of
219
- # attribute names and key types (HASH or RANGE).
220
- # * `:attribute_name` - *required* - (String) Represents the name
221
- # of a key attribute.
222
- # * `:key_type` - *required* - (String) Represents the attribute
223
- # data, consisting of the data type and the attribute value
224
- # itself. Valid values include:
225
- # * `HASH`
226
- # * `RANGE`
227
- # * `:projection` - *required* - (Hash)
228
- # * `:projection_type` - (String) Represents the set of attributes
229
- # that are projected into the index: KEYS_ONLY - Only the index
230
- # and primary keys are projected into the index. INCLUDE - Only
231
- # the specified table attributes are projected into the index.
232
- # The list of projected attributes are in NonKeyAttributes. ALL -
233
- # All of the table attributes are projected into the index. Valid
234
- # values include:
235
- # * `ALL`
236
- # * `KEYS_ONLY`
237
- # * `INCLUDE`
238
- # * `:non_key_attributes` - (Array<String>) Represents the non-key
239
- # attribute names which will be projected into the index. The
240
- # total count of attributes specified in NonKeyAttributes, summed
241
- # across all of the local secondary indexes, must not exceed 20.
242
- # If you project the same attribute into two different indexes,
243
- # this counts as two distinct attributes when determining the
244
- # total.
245
- # * `:provisioned_throughput` - *required* - (Hash)
246
- # * `:read_capacity_units` - *required* - (Integer) The maximum
247
- # number of strongly consistent reads consumed per second before
248
- # returns a ThrottlingException. For more information, see
249
- # Specifying Read and Write Requirements .
250
- # * `:write_capacity_units` - *required* - (Integer) The maximum
251
- # number of writes consumed per second before returns a
252
- # ThrottlingException. For more information, see Specifying Read
253
- # and Write Requirements .
254
- # @return [Core::Response]
255
- # The #data method of the response object returns
256
- # a hash with the following structure:
257
- #
258
- # * `:table_description` - (Hash)
259
- # * `:attribute_definitions` - (Array<Hash>)
260
- # * `:attribute_name` - (String)
261
- # * `:attribute_type` - (String)
262
- # * `:table_name` - (String)
263
- # * `:key_schema` - (Array<Hash>)
264
- # * `:attribute_name` - (String)
265
- # * `:key_type` - (String)
266
- # * `:table_status` - (String)
267
- # * `:creation_date_time` - (Time)
268
- # * `:provisioned_throughput` - (Hash)
269
- # * `:last_increase_date_time` - (Time)
270
- # * `:last_decrease_date_time` - (Time)
271
- # * `:number_of_decreases_today` - (Integer)
272
- # * `:read_capacity_units` - (Integer)
273
- # * `:write_capacity_units` - (Integer)
274
- # * `:table_size_bytes` - (Integer)
275
- # * `:item_count` - (Integer)
276
- # * `:local_secondary_indexes` - (Array<Hash>)
277
- # * `:index_name` - (String)
278
- # * `:key_schema` - (Array<Hash>)
279
- # * `:attribute_name` - (String)
280
- # * `:key_type` - (String)
281
- # * `:projection` - (Hash)
282
- # * `:projection_type` - (String)
283
- # * `:non_key_attributes` - (Array<String>)
284
- # * `:index_size_bytes` - (Integer)
285
- # * `:item_count` - (Integer)
286
-
287
- # @!method delete_item(options = {})
288
- # Calls the DeleteItem API operation.
289
- # @param [Hash] options
290
- #
291
- # * `:table_name` - *required* - (String) The name of the table from
292
- # which to delete the item.
293
- # * `:key` - *required* - (Hash<String,Hash>) A map of attribute names
294
- # to AttributeValue objects, representing the primary key of the item
295
- # to delete.
296
- # * `:s` - (String) Represents a String data type
297
- # * `:n` - (String) Represents a Number data type
298
- # * `:b` - (String) Represents a Binary data type
299
- # * `:ss` - (Array<String>) Represents a String set data type
300
- # * `:ns` - (Array<String>) Represents a Number set data type
301
- # * `:bs` - (Array<String>) Represents a Binary set data type
302
- # * `:expected` - (Hash<String,Hash>) A map of attribute/condition
303
- # pairs. This is the conditional block for the DeleteItemoperation.
304
- # All the conditions must be met for the operation to succeed.
305
- # * `:value` - (Hash) Specify whether or not a value already exists
306
- # and has a specific content for the attribute name-value pair.
307
- # * `:s` - (String) Represents a String data type
308
- # * `:n` - (String) Represents a Number data type
309
- # * `:b` - (String) Represents a Binary data type
310
- # * `:ss` - (Array<String>) Represents a String set data type
311
- # * `:ns` - (Array<String>) Represents a Number set data type
312
- # * `:bs` - (Array<String>) Represents a Binary set data type
313
- # * `:exists` - (Boolean) Causes to evaluate the value before
314
- # attempting a conditional operation: If Exists is `true` , will
315
- # check to see if that attribute value already exists in the table.
316
- # If it is found, then the operation succeeds. If it is not found,
317
- # the operation fails with a ConditionalCheckFailedException. If
318
- # Exists is `false` , assumes that the attribute value does not
319
- # exist in the table. If in fact the value does not exist, then the
320
- # assumption is valid and the operation succeeds. If the value is
321
- # found, despite the assumption that it does not exist, the
322
- # operation fails with a ConditionalCheckFailedException. The
323
- # default setting for Exists is `true` . If you supply a Value all
324
- # by itself, assumes the attribute exists: You don't have to set
325
- # Exists to `true` , because it is implied. returns a
326
- # ValidationException if: Exists is `true` but there is no Value to
327
- # check. (You expect a value to exist, but don't specify what that
328
- # value is.) Exists is `false` but you also specify a Value. (You
329
- # cannot expect an attribute to have a value, while also expecting
330
- # it not to exist.) If you specify more than one condition for
331
- # Exists, then all of the conditions must evaluate to `true` . (In
332
- # other words, the conditions are ANDed together.) Otherwise, the
333
- # conditional operation will fail.
334
- # * `:return_values` - (String) Use ReturnValues if you want to get the
335
- # item attributes as they appeared before they were deleted. For
336
- # DeleteItem, the valid values are: NONE - If ReturnValues is not
337
- # specified, or if its value is NONE, then nothing is returned. (This
338
- # is the default for ReturnValues.) ALL_OLD - The content of the old
339
- # item is returned. Valid values include:
340
- # * `NONE`
341
- # * `ALL_OLD`
342
- # * `UPDATED_OLD`
343
- # * `ALL_NEW`
344
- # * `UPDATED_NEW`
345
- # * `:return_consumed_capacity` - (String) Valid values include:
346
- # * `TOTAL`
347
- # * `NONE`
348
- # * `:return_item_collection_metrics` - (String) Valid values include:
349
- # * `SIZE`
350
- # * `NONE`
351
- # @return [Core::Response]
352
- # The #data method of the response object returns
353
- # a hash with the following structure:
354
- #
355
- # * `:attributes` - (Hash<String,Hash>)
356
- # * `:s` - (String)
357
- # * `:n` - (String)
358
- # * `:b` - (String)
359
- # * `:ss` - (Array<String>)
360
- # * `:ns` - (Array<String>)
361
- # * `:bs` - (Array<Blob>)
362
- # * `:consumed_capacity` - (Hash)
363
- # * `:table_name` - (String)
364
- # * `:capacity_units` - (Numeric)
365
- # * `:item_collection_metrics` - (Hash)
366
- # * `:item_collection_key` - (Hash<String,Hash>)
367
- # * `:s` - (String)
368
- # * `:n` - (String)
369
- # * `:b` - (String)
370
- # * `:ss` - (Array<String>)
371
- # * `:ns` - (Array<String>)
372
- # * `:bs` - (Array<Blob>)
373
- # * `:size_estimate_range_gb` - (Array<Float>)
374
-
375
- # @!method delete_table(options = {})
376
- # Calls the DeleteTable API operation.
377
- # @param [Hash] options
378
- #
379
- # * `:table_name` - *required* - (String) The name of the table to
380
- # delete.
381
- # @return [Core::Response]
382
- # The #data method of the response object returns
383
- # a hash with the following structure:
384
- #
385
- # * `:table_description` - (Hash)
386
- # * `:attribute_definitions` - (Array<Hash>)
387
- # * `:attribute_name` - (String)
388
- # * `:attribute_type` - (String)
389
- # * `:table_name` - (String)
390
- # * `:key_schema` - (Array<Hash>)
391
- # * `:attribute_name` - (String)
392
- # * `:key_type` - (String)
393
- # * `:table_status` - (String)
394
- # * `:creation_date_time` - (Time)
395
- # * `:provisioned_throughput` - (Hash)
396
- # * `:last_increase_date_time` - (Time)
397
- # * `:last_decrease_date_time` - (Time)
398
- # * `:number_of_decreases_today` - (Integer)
399
- # * `:read_capacity_units` - (Integer)
400
- # * `:write_capacity_units` - (Integer)
401
- # * `:table_size_bytes` - (Integer)
402
- # * `:item_count` - (Integer)
403
- # * `:local_secondary_indexes` - (Array<Hash>)
404
- # * `:index_name` - (String)
405
- # * `:key_schema` - (Array<Hash>)
406
- # * `:attribute_name` - (String)
407
- # * `:key_type` - (String)
408
- # * `:projection` - (Hash)
409
- # * `:projection_type` - (String)
410
- # * `:non_key_attributes` - (Array<String>)
411
- # * `:index_size_bytes` - (Integer)
412
- # * `:item_count` - (Integer)
413
-
414
- # @!method describe_table(options = {})
415
- # Calls the DescribeTable API operation.
416
- # @param [Hash] options
417
- #
418
- # * `:table_name` - *required* - (String) The name of the table to
419
- # describe.
420
- # @return [Core::Response]
421
- # The #data method of the response object returns
422
- # a hash with the following structure:
423
- #
424
- # * `:table` - (Hash)
425
- # * `:attribute_definitions` - (Array<Hash>)
426
- # * `:attribute_name` - (String)
427
- # * `:attribute_type` - (String)
428
- # * `:table_name` - (String)
429
- # * `:key_schema` - (Array<Hash>)
430
- # * `:attribute_name` - (String)
431
- # * `:key_type` - (String)
432
- # * `:table_status` - (String)
433
- # * `:creation_date_time` - (Time)
434
- # * `:provisioned_throughput` - (Hash)
435
- # * `:last_increase_date_time` - (Time)
436
- # * `:last_decrease_date_time` - (Time)
437
- # * `:number_of_decreases_today` - (Integer)
438
- # * `:read_capacity_units` - (Integer)
439
- # * `:write_capacity_units` - (Integer)
440
- # * `:table_size_bytes` - (Integer)
441
- # * `:item_count` - (Integer)
442
- # * `:local_secondary_indexes` - (Array<Hash>)
443
- # * `:index_name` - (String)
444
- # * `:key_schema` - (Array<Hash>)
445
- # * `:attribute_name` - (String)
446
- # * `:key_type` - (String)
447
- # * `:projection` - (Hash)
448
- # * `:projection_type` - (String)
449
- # * `:non_key_attributes` - (Array<String>)
450
- # * `:index_size_bytes` - (Integer)
451
- # * `:item_count` - (Integer)
452
-
453
- # @!method get_item(options = {})
454
- # Calls the GetItem API operation.
455
- # @param [Hash] options
456
- #
457
- # * `:table_name` - *required* - (String) The name of the table
458
- # containing the requested item.
459
- # * `:key` - *required* - (Hash<String,Hash>) A map of attribute names
460
- # to AttributeValue objects, representing the primary key of the item
461
- # to retrieve.
462
- # * `:s` - (String) Represents a String data type
463
- # * `:n` - (String) Represents a Number data type
464
- # * `:b` - (String) Represents a Binary data type
465
- # * `:ss` - (Array<String>) Represents a String set data type
466
- # * `:ns` - (Array<String>) Represents a Number set data type
467
- # * `:bs` - (Array<String>) Represents a Binary set data type
468
- # * `:attributes_to_get` - (Array<String>)
469
- # * `:consistent_read` - (Boolean)
470
- # * `:return_consumed_capacity` - (String) Valid values include:
471
- # * `TOTAL`
472
- # * `NONE`
473
- # @return [Core::Response]
474
- # The #data method of the response object returns
475
- # a hash with the following structure:
476
- #
477
- # * `:item` - (Hash<String,Hash>)
478
- # * `:s` - (String)
479
- # * `:n` - (String)
480
- # * `:b` - (String)
481
- # * `:ss` - (Array<String>)
482
- # * `:ns` - (Array<String>)
483
- # * `:bs` - (Array<Blob>)
484
- # * `:consumed_capacity` - (Hash)
485
- # * `:table_name` - (String)
486
- # * `:capacity_units` - (Numeric)
487
-
488
- # @!method list_tables(options = {})
489
- # Calls the ListTables API operation.
490
- # @param [Hash] options
491
- #
492
- # * `:exclusive_start_table_name` - (String) The name of the table that
493
- # starts the list. If you already ran a ListTables operation and
494
- # received a LastEvaluatedTableName value in the response, use that
495
- # value here to continue the list.
496
- # * `:limit` - (Integer) A maximum number of table names to return.
497
- # @return [Core::Response]
498
- # The #data method of the response object returns
499
- # a hash with the following structure:
500
- #
501
- # * `:table_names` - (Array<String>)
502
- # * `:last_evaluated_table_name` - (String)
503
-
504
- # @!method put_item(options = {})
505
- # Calls the PutItem API operation.
506
- # @param [Hash] options
507
- #
508
- # * `:table_name` - *required* - (String) The name of the table to
509
- # contain the item.
510
- # * `:item` - *required* - (Hash<String,Hash>) A map of attribute
511
- # name/value pairs, one for each attribute. Only the primary key
512
- # attributes are required; you can optionally provide other attribute
513
- # name-value pairs for the item. If you specify any attributes that
514
- # are part of an index key, then the data types for those attributes
515
- # must match those of the schema in the table's attribute definition.
516
- # For more information about primary keys, see Primary Key . Each
517
- # element in the Item map is an AttributeValue object.
518
- # * `:s` - (String) Represents a String data type
519
- # * `:n` - (String) Represents a Number data type
520
- # * `:b` - (String) Represents a Binary data type
521
- # * `:ss` - (Array<String>) Represents a String set data type
522
- # * `:ns` - (Array<String>) Represents a Number set data type
523
- # * `:bs` - (Array<String>) Represents a Binary set data type
524
- # * `:expected` - (Hash<String,Hash>) A map of attribute/condition
525
- # pairs. This is the conditional block for the PutItem operation. All
526
- # the conditions must be met for the operation to succeed.
527
- # * `:value` - (Hash) Specify whether or not a value already exists
528
- # and has a specific content for the attribute name-value pair.
529
- # * `:s` - (String) Represents a String data type
530
- # * `:n` - (String) Represents a Number data type
531
- # * `:b` - (String) Represents a Binary data type
532
- # * `:ss` - (Array<String>) Represents a String set data type
533
- # * `:ns` - (Array<String>) Represents a Number set data type
534
- # * `:bs` - (Array<String>) Represents a Binary set data type
535
- # * `:exists` - (Boolean) Causes to evaluate the value before
536
- # attempting a conditional operation: If Exists is `true` , will
537
- # check to see if that attribute value already exists in the table.
538
- # If it is found, then the operation succeeds. If it is not found,
539
- # the operation fails with a ConditionalCheckFailedException. If
540
- # Exists is `false` , assumes that the attribute value does not
541
- # exist in the table. If in fact the value does not exist, then the
542
- # assumption is valid and the operation succeeds. If the value is
543
- # found, despite the assumption that it does not exist, the
544
- # operation fails with a ConditionalCheckFailedException. The
545
- # default setting for Exists is `true` . If you supply a Value all
546
- # by itself, assumes the attribute exists: You don't have to set
547
- # Exists to `true` , because it is implied. returns a
548
- # ValidationException if: Exists is `true` but there is no Value to
549
- # check. (You expect a value to exist, but don't specify what that
550
- # value is.) Exists is `false` but you also specify a Value. (You
551
- # cannot expect an attribute to have a value, while also expecting
552
- # it not to exist.) If you specify more than one condition for
553
- # Exists, then all of the conditions must evaluate to `true` . (In
554
- # other words, the conditions are ANDed together.) Otherwise, the
555
- # conditional operation will fail.
556
- # * `:return_values` - (String) Use ReturnValues if you want to get the
557
- # item attributes as they appeared before they were updated with the
558
- # PutItem request. For PutItem, the valid values are: NONE - If
559
- # ReturnValues is not specified, or if its value is NONE, then
560
- # nothing is returned. (This is the default for ReturnValues.)
561
- # ALL_OLD - If PutItem overwrote an attribute name-value pair, then
562
- # the content of the old item is returned. Valid values include:
563
- # * `NONE`
564
- # * `ALL_OLD`
565
- # * `UPDATED_OLD`
566
- # * `ALL_NEW`
567
- # * `UPDATED_NEW`
568
- # * `:return_consumed_capacity` - (String) Valid values include:
569
- # * `TOTAL`
570
- # * `NONE`
571
- # * `:return_item_collection_metrics` - (String) Valid values include:
572
- # * `SIZE`
573
- # * `NONE`
574
- # @return [Core::Response]
575
- # The #data method of the response object returns
576
- # a hash with the following structure:
577
- #
578
- # * `:attributes` - (Hash<String,Hash>)
579
- # * `:s` - (String)
580
- # * `:n` - (String)
581
- # * `:b` - (String)
582
- # * `:ss` - (Array<String>)
583
- # * `:ns` - (Array<String>)
584
- # * `:bs` - (Array<Blob>)
585
- # * `:consumed_capacity` - (Hash)
586
- # * `:table_name` - (String)
587
- # * `:capacity_units` - (Numeric)
588
- # * `:item_collection_metrics` - (Hash)
589
- # * `:item_collection_key` - (Hash<String,Hash>)
590
- # * `:s` - (String)
591
- # * `:n` - (String)
592
- # * `:b` - (String)
593
- # * `:ss` - (Array<String>)
594
- # * `:ns` - (Array<String>)
595
- # * `:bs` - (Array<Blob>)
596
- # * `:size_estimate_range_gb` - (Array<Float>)
597
-
598
- # @!method query(options = {})
599
- # Calls the Query API operation.
600
- # @param [Hash] options
601
- #
602
- # * `:table_name` - *required* - (String) The name of the table
603
- # containing the requested items.
604
- # * `:index_name` - (String) The name of an index on the table to
605
- # query.
606
- # * `:select` - (String) The attributes to be returned in the result.
607
- # You can retrieve all item attributes, specific item attributes, the
608
- # count of matching items, or in the case of an index, some or all of
609
- # the attributes projected into the index. ALL_ATTRIBUTES: Returns
610
- # all of the item attributes. For a table, this is the default. For
611
- # an index, this mode causes to fetch the full item from the table
612
- # for each matching item in the index. If the index is configured to
613
- # project all item attributes, the matching items will not be fetched
614
- # from the table. Fetching items from the table incurs additional
615
- # throughput cost and latency. ALL_PROJECTED_ATTRIBUTES: Allowed only
616
- # when querying an index. Retrieves all attributes which have been
617
- # projected into the index. If the index is configured to project all
618
- # attributes, this is equivalent to specifying ALL_ATTRIBUTES. COUNT:
619
- # Returns the number of matching items, rather than the matching
620
- # items themselves. SPECIFIC_ATTRIBUTES : Returns only the attributes
621
- # listed in AttributesToGet. This is equivalent to specifying
622
- # AttributesToGet without specifying any value for Select. When
623
- # neither Select nor AttributesToGet are specified, defaults to
624
- # ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES
625
- # when accessing an index. You cannot use both Select and
626
- # AttributesToGet together in a single request, unless the value for
627
- # Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to
628
- # specifying AttributesToGet without any value for Select.) Valid
629
- # values include:
630
- # * `ALL_ATTRIBUTES`
631
- # * `ALL_PROJECTED_ATTRIBUTES`
632
- # * `SPECIFIC_ATTRIBUTES`
633
- # * `COUNT`
634
- # * `:attributes_to_get` - (Array<String>) You cannot use both
635
- # AttributesToGet and Select together in a Query request, unless the
636
- # value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent
637
- # to specifying AttributesToGet without any value for Select.)
638
- # * `:limit` - (Integer)
639
- # * `:consistent_read` - (Boolean)
640
- # * `:key_conditions` - (Hash<String,Hash>) The selection criteria for
641
- # the query. For a query on a table, you can only have conditions on
642
- # the table primary key attributes. you must specify the hash key
643
- # attribute name and value as an EQ condition. You can optionally
644
- # specify a second condition, referring to the range key attribute.
645
- # For a query on a secondary index, you can only have conditions on
646
- # the index key attributes. You must specify the index hash attribute
647
- # name and value as an EQ condition. You can optionally specify a
648
- # second condition, referring to the index key range attribute.
649
- # Multiple conditions are evaluated using "AND"; in other words, all
650
- # of the conditions must be met in order for an item to appear in the
651
- # results results. Each KeyConditions element consists of an
652
- # attribute name to compare, along with the following:
653
- # AttributeValueList - One or more values to evaluate against the
654
- # supplied attribute. This list contains exactly one value, except
655
- # for a BETWEEN or IN comparison, in which case the list contains two
656
- # values. For type Number, value comparisons are numeric. String
657
- # value comparisons for greater than, equals, or less than are based
658
- # on ASCII character code values. For example, a is greater than A,
659
- # and aa is greater than B. For a list of code values, see
660
- # http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters. For
661
- # Binary, treats each byte of the binary data as unsigned when it
662
- # compares binary values, for example when evaluating query
663
- # expressions. ComparisonOperator - A comparator for evaluating
664
- # attributes. For example, equals, greater than, less than, etc. For
665
- # information on specifying data types in JSON, see JSON Data Format
666
- # . The following are descriptions of each comparison operator. EQ :
667
- # Equal. AttributeValueList can contain only one AttributeValue of
668
- # type String, Number, or Binary (not a set). If an item contains an
669
- # AttributeValue of a different type than the one specified in the
670
- # request, the value does not match. For example, {"S":"6"} does not
671
- # equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2",
672
- # "1"]}. LE : Less than or equal. AttributeValueList can contain only
673
- # one AttributeValue of type String, Number, or Binary (not a set).
674
- # If an item contains an AttributeValue of a different type than the
675
- # one specified in the request, the value does not match. For
676
- # example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does
677
- # not compare to {"NS":["6", "2", "1"]}. LT : Less than.
678
- # AttributeValueList can contain only one AttributeValue of type
679
- # String, Number, or Binary (not a set). If an item contains an
680
- # AttributeValue of a different type than the one specified in the
681
- # request, the value does not match. For example, {"S":"6"} does not
682
- # equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6",
683
- # "2", "1"]}. GE : Greater than or equal. AttributeValueList can
684
- # contain only one AttributeValue of type String, Number, or Binary
685
- # (not a set). If an item contains an AttributeValue of a different
686
- # type than the one specified in the request, the value does not
687
- # match. For example, {"S":"6"} does not equal {"N":"6"}. Also,
688
- # {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. GT : Greater
689
- # than. AttributeValueList can contain only one AttributeValue of
690
- # type String, Number, or Binary (not a set). If an item contains an
691
- # AttributeValue of a different type than the one specified in the
692
- # request, the value does not match. For example, {"S":"6"} does not
693
- # equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6",
694
- # "2", "1"]}. BEGINS_WITH : checks for a prefix. AttributeValueList
695
- # can contain only one AttributeValue of type String or Binary (not a
696
- # Number or a set). The target attribute of the comparison must be a
697
- # String or Binary (not a Number or a set). BETWEEN : Greater than or
698
- # equal to the first value, and less than or equal to the second
699
- # value. AttributeValueList must contain two AttributeValue elements
700
- # of the same type, either String, Number, or Binary (not a set). A
701
- # target attribute matches if the target value is greater than, or
702
- # equal to, the first element and less than, or equal to, the second
703
- # element. If an item contains an AttributeValue of a different type
704
- # than the one specified in the request, the value does not match.
705
- # For example, {"S":"6"} does not compare to {"N":"6"}. Also,
706
- # {"N":"6"} does not compare to {"NS":["6", "2", "1"]}
707
- # * `:attribute_value_list` - (Array<Hash>) Represents one or more
708
- # values to evaluate against the supplied attribute. This list
709
- # contains exactly one value, except for a BETWEEN or IN
710
- # comparison, in which case the list contains two values. For type
711
- # Number, value comparisons are numeric. String value comparisons
712
- # for greater than, equals, or less than are based on ASCII
713
- # character code values. For example, a is greater than A, and aa
714
- # is greater than B. For a list of code values, see
715
- # http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.
716
- # For Binary, treats each byte of the binary data as unsigned when
717
- # it compares binary values, for example when evaluating query
718
- # expressions.
719
- # * `:s` - (String) Represents a String data type
720
- # * `:n` - (String) Represents a Number data type
721
- # * `:b` - (String) Represents a Binary data type
722
- # * `:ss` - (Array<String>) Represents a String set data type
723
- # * `:ns` - (Array<String>) Represents a Number set data type
724
- # * `:bs` - (Array<String>) Represents a Binary set data type
725
- # * `:comparison_operator` - *required* - (String) Represents a
726
- # comparator for evaluating attributes. For example, equals,
727
- # greater than, less than, etc. For information on specifying data
728
- # types in JSON, see JSON Data Format . The following are
729
- # descriptions of each comparison operator. EQ : Equal.
730
- # AttributeValueList can contain only one AttributeValue of type
731
- # String, Number, or Binary (not a set). If an item contains an
732
- # AttributeValue of a different type than the one specified in the
733
- # request, the value does not match. For example, {"S":"6"} does
734
- # not equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6",
735
- # "2", "1"]}. NE : Not equal. AttributeValueList can contain only
736
- # one AttributeValue of type String, Number, or Binary (not a set).
737
- # If an item contains an AttributeValue of a different type than
738
- # the one specified in the request, the value does not match. For
739
- # example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does
740
- # not equal {"NS":["6", "2", "1"]}. LE : Less than or equal.
741
- # AttributeValueList can contain only one AttributeValue of type
742
- # String, Number, or Binary (not a set). If an item contains an
743
- # AttributeValue of a different type than the one specified in the
744
- # request, the value does not match. For example, {"S":"6"} does
745
- # not equal {"N":"6"}. Also, {"N":"6"} does not compare to
746
- # {"NS":["6", "2", "1"]}. LT : Less than. AttributeValueList can
747
- # contain only one AttributeValue of type String, Number, or Binary
748
- # (not a set). If an item contains an AttributeValue of a different
749
- # type than the one specified in the request, the value does not
750
- # match. For example, {"S":"6"} does not equal {"N":"6"}. Also,
751
- # {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. GE :
752
- # Greater than or equal. AttributeValueList can contain only one
753
- # AttributeValue of type String, Number, or Binary (not a set). If
754
- # an item contains an AttributeValue of a different type than the
755
- # one specified in the request, the value does not match. For
756
- # example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does
757
- # not compare to {"NS":["6", "2", "1"]}. GT : Greater than.
758
- # AttributeValueList can contain only one AttributeValue of type
759
- # String, Number, or Binary (not a set). If an item contains an
760
- # AttributeValue of a different type than the one specified in the
761
- # request, the value does not match. For example, {"S":"6"} does
762
- # not equal {"N":"6"}. Also, {"N":"6"} does not compare to
763
- # {"NS":["6", "2", "1"]}. NOT_NULL : The attribute exists. NULL :
764
- # The attribute does not exist. CONTAINS : checks for a
765
- # subsequence, or value in a set. AttributeValueList can contain
766
- # only one AttributeValue of type String, Number, or Binary (not a
767
- # set). If the target attribute of the comparison is a String, then
768
- # the operation checks for a substring match. If the target
769
- # attribute of the comparison is Binary, then the operation looks
770
- # for a subsequence of the target that matches the input. If the
771
- # target attribute of the comparison is a set ("SS", "NS", or
772
- # "BS"), then the operation checks for a member of the set (not as
773
- # a substring). NOT_CONTAINS : checks for absence of a subsequence,
774
- # or absence of a value in a set. AttributeValueList can contain
775
- # only one AttributeValue of type String, Number, or Binary (not a
776
- # set). If the target attribute of the comparison is a String, then
777
- # the operation checks for the absence of a substring match. If the
778
- # target attribute of the comparison is Binary, then the operation
779
- # checks for the absence of a subsequence of the target that
780
- # matches the input. If the target attribute of the comparison is a
781
- # set ("SS", "NS", or "BS"), then the operation checks for the
782
- # absence of a member of the set (not as a substring). BEGINS_WITH
783
- # : checks for a prefix. AttributeValueList can contain only one
784
- # AttributeValue of type String or Binary (not a Number or a set).
785
- # The target attribute of the comparison must be a String or Binary
786
- # (not a Number or a set). IN : checks for exact matches.
787
- # AttributeValueList can contain more than one AttributeValue of
788
- # type String, Number, or Binary (not a set). The target attribute
789
- # of the comparison must be of the same type and exact value to
790
- # match. A String never matches a String set. BETWEEN : Greater
791
- # than or equal to the first value, and less than or equal to the
792
- # second value. AttributeValueList must contain two AttributeValue
793
- # elements of the same type, either String, Number, or Binary (not
794
- # a set). A target attribute matches if the target value is greater
795
- # than, or equal to, the first element and less than, or equal to,
796
- # the second element. If an item contains an AttributeValue of a
797
- # different type than the one specified in the request, the value
798
- # does not match. For example, {"S":"6"} does not compare to
799
- # {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2",
800
- # "1"]} Valid values include:
801
- # * `EQ`
802
- # * `NE`
803
- # * `IN`
804
- # * `LE`
805
- # * `LT`
806
- # * `GE`
807
- # * `GT`
808
- # * `BETWEEN`
809
- # * `NOT_NULL`
810
- # * `NULL`
811
- # * `CONTAINS`
812
- # * `NOT_CONTAINS`
813
- # * `BEGINS_WITH`
814
- # * `:scan_index_forward` - (Boolean) Specifies ascending ( `true` ) or
815
- # descending ( `false` ) traversal of the index. returns results
816
- # reflecting the requested order determined by the range key. If the
817
- # data type is Number, the results are returned in numeric order. For
818
- # String, the results are returned in order of ASCII character code
819
- # values. For Binary, Amazon DynamoDB treats each byte of the binary
820
- # data as unsigned when it compares binary values. If
821
- # ScanIndexForward is not specified, the results are returned in
822
- # ascending order.
823
- # * `:exclusive_start_key` - (Hash<String,Hash>)
824
- # * `:s` - (String) Represents a String data type
825
- # * `:n` - (String) Represents a Number data type
826
- # * `:b` - (String) Represents a Binary data type
827
- # * `:ss` - (Array<String>) Represents a String set data type
828
- # * `:ns` - (Array<String>) Represents a Number set data type
829
- # * `:bs` - (Array<String>) Represents a Binary set data type
830
- # * `:return_consumed_capacity` - (String) Valid values include:
831
- # * `TOTAL`
832
- # * `NONE`
833
- # @return [Core::Response]
834
- # The #data method of the response object returns
835
- # a hash with the following structure:
836
- #
837
- # * `:member` - (Hash<String,Hash>)
838
- # * `:s` - (String)
839
- # * `:n` - (String)
840
- # * `:b` - (String)
841
- # * `:ss` - (Array<String>)
842
- # * `:ns` - (Array<String>)
843
- # * `:bs` - (Array<Blob>)
844
- # * `:count` - (Integer)
845
- # * `:last_evaluated_key` - (Hash<String,Hash>)
846
- # * `:s` - (String)
847
- # * `:n` - (String)
848
- # * `:b` - (String)
849
- # * `:ss` - (Array<String>)
850
- # * `:ns` - (Array<String>)
851
- # * `:bs` - (Array<Blob>)
852
- # * `:consumed_capacity` - (Hash)
853
- # * `:table_name` - (String)
854
- # * `:capacity_units` - (Numeric)
855
-
856
- # @!method scan(options = {})
857
- # Calls the Scan API operation.
858
- # @param [Hash] options
859
- #
860
- # * `:table_name` - *required* - (String) The name of the table
861
- # containing the requested items.
862
- # * `:attributes_to_get` - (Array<String>)
863
- # * `:limit` - (Integer)
864
- # * `:select` - (String) The attributes to be returned in the result.
865
- # You can retrieve all item attributes, specific item attributes, the
866
- # count of matching items, or in the case of an index, some or all of
867
- # the attributes projected into the index. ALL_ATTRIBUTES: Returns
868
- # all of the item attributes. For a table, this is the default. For
869
- # an index, this mode causes to fetch the full item from the table
870
- # for each matching item in the index. If the index is configured to
871
- # project all item attributes, the matching items will not be fetched
872
- # from the table. Fetching items from the table incurs additional
873
- # throughput cost and latency. ALL_PROJECTED_ATTRIBUTES: Retrieves
874
- # all attributes which have been projected into the index. If the
875
- # index is configured to project all attributes, this is equivalent
876
- # to specifying ALL_ATTRIBUTES. COUNT: Returns the number of matching
877
- # items, rather than the matching items themselves.
878
- # SPECIFIC_ATTRIBUTES : Returns only the attributes listed in
879
- # AttributesToGet. This is equivalent to specifying AttributesToGet
880
- # without specifying any value for Select. When neither Select nor
881
- # AttributesToGet are specified, defaults to ALL_ATTRIBUTES when
882
- # accessing a table, and ALL_PROJECTED_ATTRIBUTES when accessing an
883
- # index. You cannot use both Select and AttributesToGet together in a
884
- # single request, unless the value for Select is SPECIFIC_ATTRIBUTES.
885
- # (This usage is equivalent to specifying AttributesToGet without any
886
- # value for Select.) Valid values include:
887
- # * `ALL_ATTRIBUTES`
888
- # * `ALL_PROJECTED_ATTRIBUTES`
889
- # * `SPECIFIC_ATTRIBUTES`
890
- # * `COUNT`
891
- # * `:scan_filter` - (Hash<String,Hash>) Evaluates the scan results and
892
- # returns only the desired values. Multiple conditions are treated as
893
- # "AND" operations: all conditions must be met to be included in the
894
- # results. Each ScanConditions element consists of an attribute name
895
- # to compare, along with the following: AttributeValueList - One or
896
- # more values to evaluate against the supplied attribute. This list
897
- # contains exactly one value, except for a BETWEEN or IN comparison,
898
- # in which case the list contains two values. For type Number, value
899
- # comparisons are numeric. String value comparisons for greater than,
900
- # equals, or less than are based on ASCII character code values. For
901
- # example, a is greater than A, and aa is greater than B. For a list
902
- # of code values, see
903
- # http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters. For
904
- # Binary, treats each byte of the binary data as unsigned when it
905
- # compares binary values, for example when evaluating query
906
- # expressions. ComparisonOperator - A comparator for evaluating
907
- # attributes. For example, equals, greater than, less than, etc. For
908
- # information on specifying data types in JSON, see JSON Data Format
909
- # . The following are descriptions of each comparison operator. EQ :
910
- # Equal. AttributeValueList can contain only one AttributeValue of
911
- # type String, Number, or Binary (not a set). If an item contains an
912
- # AttributeValue of a different type than the one specified in the
913
- # request, the value does not match. For example, {"S":"6"} does not
914
- # equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2",
915
- # "1"]}. NE : Not equal. AttributeValueList can contain only one
916
- # AttributeValue of type String, Number, or Binary (not a set). If an
917
- # item contains an AttributeValue of a different type than the one
918
- # specified in the request, the value does not match. For example,
919
- # {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does not equal
920
- # {"NS":["6", "2", "1"]}. LE : Less than or equal. AttributeValueList
921
- # can contain only one AttributeValue of type String, Number, or
922
- # Binary (not a set). If an item contains an AttributeValue of a
923
- # different type than the one specified in the request, the value
924
- # does not match. For example, {"S":"6"} does not equal {"N":"6"}.
925
- # Also, {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. LT :
926
- # Less than. AttributeValueList can contain only one AttributeValue
927
- # of type String, Number, or Binary (not a set). If an item contains
928
- # an AttributeValue of a different type than the one specified in the
929
- # request, the value does not match. For example, {"S":"6"} does not
930
- # equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6",
931
- # "2", "1"]}. GE : Greater than or equal. AttributeValueList can
932
- # contain only one AttributeValue of type String, Number, or Binary
933
- # (not a set). If an item contains an AttributeValue of a different
934
- # type than the one specified in the request, the value does not
935
- # match. For example, {"S":"6"} does not equal {"N":"6"}. Also,
936
- # {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. GT : Greater
937
- # than. AttributeValueList can contain only one AttributeValue of
938
- # type String, Number, or Binary (not a set). If an item contains an
939
- # AttributeValue of a different type than the one specified in the
940
- # request, the value does not match. For example, {"S":"6"} does not
941
- # equal {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6",
942
- # "2", "1"]}. NOT_NULL : The attribute exists. NULL : The attribute
943
- # does not exist. CONTAINS : checks for a subsequence, or value in a
944
- # set. AttributeValueList can contain only one AttributeValue of type
945
- # String, Number, or Binary (not a set). If the target attribute of
946
- # the comparison is a String, then the operation checks for a
947
- # substring match. If the target attribute of the comparison is
948
- # Binary, then the operation looks for a subsequence of the target
949
- # that matches the input. If the target attribute of the comparison
950
- # is a set ("SS", "NS", or "BS"), then the operation checks for a
951
- # member of the set (not as a substring). NOT_CONTAINS : checks for
952
- # absence of a subsequence, or absence of a value in a set.
953
- # AttributeValueList can contain only one AttributeValue of type
954
- # String, Number, or Binary (not a set). If the target attribute of
955
- # the comparison is a String, then the operation checks for the
956
- # absence of a substring match. If the target attribute of the
957
- # comparison is Binary, then the operation checks for the absence of
958
- # a subsequence of the target that matches the input. If the target
959
- # attribute of the comparison is a set ("SS", "NS", or "BS"), then
960
- # the operation checks for the absence of a member of the set (not as
961
- # a substring). BEGINS_WITH : checks for a prefix. AttributeValueList
962
- # can contain only one AttributeValue of type String or Binary (not a
963
- # Number or a set). The target attribute of the comparison must be a
964
- # String or Binary (not a Number or a set). IN : checks for exact
965
- # matches. AttributeValueList can contain more than one
966
- # AttributeValue of type String, Number, or Binary (not a set). The
967
- # target attribute of the comparison must be of the same type and
968
- # exact value to match. A String never matches a String set. BETWEEN
969
- # : Greater than or equal to the first value, and less than or equal
970
- # to the second value. AttributeValueList must contain two
971
- # AttributeValue elements of the same type, either String, Number, or
972
- # Binary (not a set). A target attribute matches if the target value
973
- # is greater than, or equal to, the first element and less than, or
974
- # equal to, the second element. If an item contains an AttributeValue
975
- # of a different type than the one specified in the request, the
976
- # value does not match. For example, {"S":"6"} does not compare to
977
- # {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2",
978
- # "1"]}
979
- # * `:attribute_value_list` - (Array<Hash>) Represents one or more
980
- # values to evaluate against the supplied attribute. This list
981
- # contains exactly one value, except for a BETWEEN or IN
982
- # comparison, in which case the list contains two values. For type
983
- # Number, value comparisons are numeric. String value comparisons
984
- # for greater than, equals, or less than are based on ASCII
985
- # character code values. For example, a is greater than A, and aa
986
- # is greater than B. For a list of code values, see
987
- # http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.
988
- # For Binary, treats each byte of the binary data as unsigned when
989
- # it compares binary values, for example when evaluating query
990
- # expressions.
991
- # * `:s` - (String) Represents a String data type
992
- # * `:n` - (String) Represents a Number data type
993
- # * `:b` - (String) Represents a Binary data type
994
- # * `:ss` - (Array<String>) Represents a String set data type
995
- # * `:ns` - (Array<String>) Represents a Number set data type
996
- # * `:bs` - (Array<String>) Represents a Binary set data type
997
- # * `:comparison_operator` - *required* - (String) Represents a
998
- # comparator for evaluating attributes. For example, equals,
999
- # greater than, less than, etc. For information on specifying data
1000
- # types in JSON, see JSON Data Format . The following are
1001
- # descriptions of each comparison operator. EQ : Equal.
1002
- # AttributeValueList can contain only one AttributeValue of type
1003
- # String, Number, or Binary (not a set). If an item contains an
1004
- # AttributeValue of a different type than the one specified in the
1005
- # request, the value does not match. For example, {"S":"6"} does
1006
- # not equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6",
1007
- # "2", "1"]}. NE : Not equal. AttributeValueList can contain only
1008
- # one AttributeValue of type String, Number, or Binary (not a set).
1009
- # If an item contains an AttributeValue of a different type than
1010
- # the one specified in the request, the value does not match. For
1011
- # example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does
1012
- # not equal {"NS":["6", "2", "1"]}. LE : Less than or equal.
1013
- # AttributeValueList can contain only one AttributeValue of type
1014
- # String, Number, or Binary (not a set). If an item contains an
1015
- # AttributeValue of a different type than the one specified in the
1016
- # request, the value does not match. For example, {"S":"6"} does
1017
- # not equal {"N":"6"}. Also, {"N":"6"} does not compare to
1018
- # {"NS":["6", "2", "1"]}. LT : Less than. AttributeValueList can
1019
- # contain only one AttributeValue of type String, Number, or Binary
1020
- # (not a set). If an item contains an AttributeValue of a different
1021
- # type than the one specified in the request, the value does not
1022
- # match. For example, {"S":"6"} does not equal {"N":"6"}. Also,
1023
- # {"N":"6"} does not compare to {"NS":["6", "2", "1"]}. GE :
1024
- # Greater than or equal. AttributeValueList can contain only one
1025
- # AttributeValue of type String, Number, or Binary (not a set). If
1026
- # an item contains an AttributeValue of a different type than the
1027
- # one specified in the request, the value does not match. For
1028
- # example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} does
1029
- # not compare to {"NS":["6", "2", "1"]}. GT : Greater than.
1030
- # AttributeValueList can contain only one AttributeValue of type
1031
- # String, Number, or Binary (not a set). If an item contains an
1032
- # AttributeValue of a different type than the one specified in the
1033
- # request, the value does not match. For example, {"S":"6"} does
1034
- # not equal {"N":"6"}. Also, {"N":"6"} does not compare to
1035
- # {"NS":["6", "2", "1"]}. NOT_NULL : The attribute exists. NULL :
1036
- # The attribute does not exist. CONTAINS : checks for a
1037
- # subsequence, or value in a set. AttributeValueList can contain
1038
- # only one AttributeValue of type String, Number, or Binary (not a
1039
- # set). If the target attribute of the comparison is a String, then
1040
- # the operation checks for a substring match. If the target
1041
- # attribute of the comparison is Binary, then the operation looks
1042
- # for a subsequence of the target that matches the input. If the
1043
- # target attribute of the comparison is a set ("SS", "NS", or
1044
- # "BS"), then the operation checks for a member of the set (not as
1045
- # a substring). NOT_CONTAINS : checks for absence of a subsequence,
1046
- # or absence of a value in a set. AttributeValueList can contain
1047
- # only one AttributeValue of type String, Number, or Binary (not a
1048
- # set). If the target attribute of the comparison is a String, then
1049
- # the operation checks for the absence of a substring match. If the
1050
- # target attribute of the comparison is Binary, then the operation
1051
- # checks for the absence of a subsequence of the target that
1052
- # matches the input. If the target attribute of the comparison is a
1053
- # set ("SS", "NS", or "BS"), then the operation checks for the
1054
- # absence of a member of the set (not as a substring). BEGINS_WITH
1055
- # : checks for a prefix. AttributeValueList can contain only one
1056
- # AttributeValue of type String or Binary (not a Number or a set).
1057
- # The target attribute of the comparison must be a String or Binary
1058
- # (not a Number or a set). IN : checks for exact matches.
1059
- # AttributeValueList can contain more than one AttributeValue of
1060
- # type String, Number, or Binary (not a set). The target attribute
1061
- # of the comparison must be of the same type and exact value to
1062
- # match. A String never matches a String set. BETWEEN : Greater
1063
- # than or equal to the first value, and less than or equal to the
1064
- # second value. AttributeValueList must contain two AttributeValue
1065
- # elements of the same type, either String, Number, or Binary (not
1066
- # a set). A target attribute matches if the target value is greater
1067
- # than, or equal to, the first element and less than, or equal to,
1068
- # the second element. If an item contains an AttributeValue of a
1069
- # different type than the one specified in the request, the value
1070
- # does not match. For example, {"S":"6"} does not compare to
1071
- # {"N":"6"}. Also, {"N":"6"} does not compare to {"NS":["6", "2",
1072
- # "1"]} Valid values include:
1073
- # * `EQ`
1074
- # * `NE`
1075
- # * `IN`
1076
- # * `LE`
1077
- # * `LT`
1078
- # * `GE`
1079
- # * `GT`
1080
- # * `BETWEEN`
1081
- # * `NOT_NULL`
1082
- # * `NULL`
1083
- # * `CONTAINS`
1084
- # * `NOT_CONTAINS`
1085
- # * `BEGINS_WITH`
1086
- # * `:exclusive_start_key` - (Hash<String,Hash>) In a parallel scan, a
1087
- # Scan request that includes ExclusiveStartKey must specify the same
1088
- # segment whose previous Scan returned the corresponding value of
1089
- # LastEvaluatedKey.
1090
- # * `:s` - (String) Represents a String data type
1091
- # * `:n` - (String) Represents a Number data type
1092
- # * `:b` - (String) Represents a Binary data type
1093
- # * `:ss` - (Array<String>) Represents a String set data type
1094
- # * `:ns` - (Array<String>) Represents a Number set data type
1095
- # * `:bs` - (Array<String>) Represents a Binary set data type
1096
- # * `:return_consumed_capacity` - (String) Valid values include:
1097
- # * `TOTAL`
1098
- # * `NONE`
1099
- # * `:total_segments` - (Integer) For a parallel Scan request,
1100
- # TotalSegments represents the total number of segments into which
1101
- # the Scan operation will be divided. The value of TotalSegments
1102
- # corresponds to the number of application workers that will perform
1103
- # the parallel scan. For example, if you want to scan a table using
1104
- # four application threads, you would specify a TotalSegments value
1105
- # of 4. The value for TotalSegments must be greater than or equal to
1106
- # 1, and less than or equal to 4096. If you specify a TotalSegments
1107
- # value of 1, the Scan will be sequential rather than parallel. If
1108
- # you specify TotalSegments, you must also specify Segment.
1109
- # * `:segment` - (Integer) For a parallel Scan request, Segment
1110
- # identifies an individual segment to be scanned by an application
1111
- # worker. Segment IDs are zero-based, so the first segment is always
1112
- # 0. For example, if you want to scan a table using four application
1113
- # threads, the first thread would specify a Segment value of 0, the
1114
- # second thread would specify 1, and so on. The value of
1115
- # LastEvaluatedKey returned from a parallel Scan request must be used
1116
- # as ExclusiveStartKey with the same Segment ID in a subsequent Scan
1117
- # operation. The value for Segment must be greater than or equal to
1118
- # 0, and less than the value provided for TotalSegments. If you
1119
- # specify Segment, you must also specify TotalSegments.
1120
- # @return [Core::Response]
1121
- # The #data method of the response object returns
1122
- # a hash with the following structure:
1123
- #
1124
- # * `:member` - (Hash<String,Hash>)
1125
- # * `:s` - (String)
1126
- # * `:n` - (String)
1127
- # * `:b` - (String)
1128
- # * `:ss` - (Array<String>)
1129
- # * `:ns` - (Array<String>)
1130
- # * `:bs` - (Array<Blob>)
1131
- # * `:count` - (Integer)
1132
- # * `:scanned_count` - (Integer)
1133
- # * `:last_evaluated_key` - (Hash<String,Hash>)
1134
- # * `:s` - (String)
1135
- # * `:n` - (String)
1136
- # * `:b` - (String)
1137
- # * `:ss` - (Array<String>)
1138
- # * `:ns` - (Array<String>)
1139
- # * `:bs` - (Array<Blob>)
1140
- # * `:consumed_capacity` - (Hash)
1141
- # * `:table_name` - (String)
1142
- # * `:capacity_units` - (Numeric)
1143
-
1144
- # @!method update_item(options = {})
1145
- # Calls the UpdateItem API operation.
1146
- # @param [Hash] options
1147
- #
1148
- # * `:table_name` - *required* - (String) The name of the table
1149
- # containing the item to update.
1150
- # * `:key` - *required* - (Hash<String,Hash>) The primary key that
1151
- # defines the item. Each element consists of an attribute name and a
1152
- # value for that attribute.
1153
- # * `:s` - (String) Represents a String data type
1154
- # * `:n` - (String) Represents a Number data type
1155
- # * `:b` - (String) Represents a Binary data type
1156
- # * `:ss` - (Array<String>) Represents a String set data type
1157
- # * `:ns` - (Array<String>) Represents a Number set data type
1158
- # * `:bs` - (Array<String>) Represents a Binary set data type
1159
- # * `:attribute_updates` - (Hash<String,Hash>) The names of attributes
1160
- # to be modified, the action to perform on each, and the new value
1161
- # for each. If you are updating an attribute that is an index key
1162
- # attribute for any indexes on that table, the attribute type must
1163
- # match the index key type defined in the AttributesDefinition of the
1164
- # table description. You can use UpdateItem to update any non-key
1165
- # attributes. Attribute values cannot be null. String and binary type
1166
- # attributes must have lengths greater than zero. Set type attributes
1167
- # must not be empty. Requests with empty values will be rejected with
1168
- # a ValidationException. Each AttributeUpdates element consists of an
1169
- # attribute name to modify, along with the following: Value - The new
1170
- # value, if applicable, for this attribute. Action - Specifies how to
1171
- # perform the update. Valid values for Action are PUT, DELETE, and
1172
- # ADD. The behavior depends on whether the specified primary key
1173
- # already exists in the table. If an item with the specified Key is
1174
- # found in the table: PUT - Adds the specified attribute to the item.
1175
- # If the attribute already exists, it is replaced by the new value.
1176
- # DELETE - If no value is specified, the attribute and its value are
1177
- # removed from the item. The data type of the specified value must
1178
- # match the existing value's data type. If a set of values is
1179
- # specified, then those values are subtracted from the old set. For
1180
- # example, if the attribute value was the set [a,b,c] and the DELETE
1181
- # action specified [a,c], then the final attribute value would be
1182
- # [b]. Specifying an empty set is an error. ADD - If the attribute
1183
- # does not already exist, then the attribute and its values are added
1184
- # to the item. If the attribute does exist, then the behavior of ADD
1185
- # depends on the data type of the attribute: If the existing
1186
- # attribute is a number, and if Value is also a number, then the
1187
- # Value is mathematically added to the existing attribute. If Value
1188
- # is a negative number, then it is subtracted from the existing
1189
- # attribute. If you use ADD to increment or decrement a number value
1190
- # for an item that doesn't exist before the update, uses 0 as the
1191
- # initial value. In addition, if you use ADD to update an existing
1192
- # item, and intend to increment or decrement an attribute value which
1193
- # does not yet exist, uses 0 as the initial value. For example,
1194
- # suppose that the item you want to update does not yet have an
1195
- # attribute named itemcount, but you decide to ADD the number 3 to
1196
- # this attribute anyway, even though it currently does not exist.
1197
- # will create the itemcount attribute, set its initial value to 0,
1198
- # and finally add 3 to it. The result will be a new itemcount
1199
- # attribute in the item, with a value of 3. If the existing data type
1200
- # is a set, and if the Value is also a set, then the Value is added
1201
- # to the existing set. (This is a set operation, not mathematical
1202
- # addition.) For example, if the attribute value was the set [1,2],
1203
- # and the ADD action specified [3], then the final attribute value
1204
- # would be [1,2,3]. An error occurs if an Add action is specified for
1205
- # a set attribute and the attribute type specified does not match the
1206
- # existing set type. Both sets must have the same primitive data
1207
- # type. For example, if the existing data type is a set of strings,
1208
- # the Value must also be a set of strings. The same holds `true` for
1209
- # number sets and binary sets. This action is only valid for an
1210
- # existing attribute whose data type is number or is a set. Do not
1211
- # use ADD for any other data types. If no item with the specified Key
1212
- # is found: PUT - creates a new item with the specified primary key,
1213
- # and then adds the attribute. DELETE - Nothing happens; there is no
1214
- # attribute to delete. ADD - creates an item with the supplied
1215
- # primary key and number (or set of numbers) for the attribute value.
1216
- # The only data types allowed are number and number set; no other
1217
- # data types can be specified. If you specify any attributes that are
1218
- # part of an index key, then the data types for those attributes must
1219
- # match those of the schema in the table's attribute definition.
1220
- # * `:value` - (Hash)
1221
- # * `:s` - (String) Represents a String data type
1222
- # * `:n` - (String) Represents a Number data type
1223
- # * `:b` - (String) Represents a Binary data type
1224
- # * `:ss` - (Array<String>) Represents a String set data type
1225
- # * `:ns` - (Array<String>) Represents a Number set data type
1226
- # * `:bs` - (Array<String>) Represents a Binary set data type
1227
- # * `:action` - (String) Specifies how to perform the update. Valid
1228
- # values are PUT, DELETE, and ADD. The behavior depends on whether
1229
- # the specified primary key already exists in the table. If an item
1230
- # with the specified Key is found in the table: PUT - Adds the
1231
- # specified attribute to the item. If the attribute already exists,
1232
- # it is replaced by the new value. DELETE - If no value is
1233
- # specified, the attribute and its value are removed from the item.
1234
- # The data type of the specified value must match the existing
1235
- # value's data type. If a set of values is specified, then those
1236
- # values are subtracted from the old set. For example, if the
1237
- # attribute value was the set [a,b,c] and the DELETE action
1238
- # specified [a,c], then the final attribute value would be [b].
1239
- # Specifying an empty set is an error. ADD - If the attribute does
1240
- # not already exist, then the attribute and its values are added to
1241
- # the item. If the attribute does exist, then the behavior of ADD
1242
- # depends on the data type of the attribute: If the existing
1243
- # attribute is a number, and if Value is also a number, then the
1244
- # Value is mathematically added to the existing attribute. If Value
1245
- # is a negative number, then it is subtracted from the existing
1246
- # attribute. If you use ADD to increment or decrement a number
1247
- # value for an item that doesn't exist before the update, uses 0 as
1248
- # the initial value. In addition, if you use ADD to update an
1249
- # existing item, and intend to increment or decrement an attribute
1250
- # value which does not yet exist, uses 0 as the initial value. For
1251
- # example, suppose that the item you want to update does not yet
1252
- # have an attribute named itemcount, but you decide to ADD the
1253
- # number 3 to this attribute anyway, even though it currently does
1254
- # not exist. will create the itemcount attribute, set its initial
1255
- # value to 0, and finally add 3 to it. The result will be a new
1256
- # itemcount attribute in the item, with a value of 3. If the
1257
- # existing data type is a set, and if the Value is also a set, then
1258
- # the Value is added to the existing set. (This is a set operation,
1259
- # not mathematical addition.) For example, if the attribute value
1260
- # was the set [1,2], and the ADD action specified [3], then the
1261
- # final attribute value would be [1,2,3]. An error occurs if an Add
1262
- # action is specified for a set attribute and the attribute type
1263
- # specified does not match the existing set type. Both sets must
1264
- # have the same primitive data type. For example, if the existing
1265
- # data type is a set of strings, the Value must also be a set of
1266
- # strings. The same holds `true` for number sets and binary sets.
1267
- # This action is only valid for an existing attribute whose data
1268
- # type is number or is a set. Do not use ADD for any other data
1269
- # types. If no item with the specified Key is found: PUT - creates
1270
- # a new item with the specified primary key, and then adds the
1271
- # attribute. DELETE - Nothing happens; there is no attribute to
1272
- # delete. ADD - creates an item with the supplied primary key and
1273
- # number (or set of numbers) for the attribute value. The only data
1274
- # types allowed are number and number set; no other data types can
1275
- # be specified. Valid values include:
1276
- # * `ADD`
1277
- # * `PUT`
1278
- # * `DELETE`
1279
- # * `:expected` - (Hash<String,Hash>) A map of attribute/condition
1280
- # pairs. This is the conditional block for the UpdateItem operation.
1281
- # All the conditions must be met for the operation to succeed.
1282
- # * `:value` - (Hash) Specify whether or not a value already exists
1283
- # and has a specific content for the attribute name-value pair.
1284
- # * `:s` - (String) Represents a String data type
1285
- # * `:n` - (String) Represents a Number data type
1286
- # * `:b` - (String) Represents a Binary data type
1287
- # * `:ss` - (Array<String>) Represents a String set data type
1288
- # * `:ns` - (Array<String>) Represents a Number set data type
1289
- # * `:bs` - (Array<String>) Represents a Binary set data type
1290
- # * `:exists` - (Boolean) Causes to evaluate the value before
1291
- # attempting a conditional operation: If Exists is `true` , will
1292
- # check to see if that attribute value already exists in the table.
1293
- # If it is found, then the operation succeeds. If it is not found,
1294
- # the operation fails with a ConditionalCheckFailedException. If
1295
- # Exists is `false` , assumes that the attribute value does not
1296
- # exist in the table. If in fact the value does not exist, then the
1297
- # assumption is valid and the operation succeeds. If the value is
1298
- # found, despite the assumption that it does not exist, the
1299
- # operation fails with a ConditionalCheckFailedException. The
1300
- # default setting for Exists is `true` . If you supply a Value all
1301
- # by itself, assumes the attribute exists: You don't have to set
1302
- # Exists to `true` , because it is implied. returns a
1303
- # ValidationException if: Exists is `true` but there is no Value to
1304
- # check. (You expect a value to exist, but don't specify what that
1305
- # value is.) Exists is `false` but you also specify a Value. (You
1306
- # cannot expect an attribute to have a value, while also expecting
1307
- # it not to exist.) If you specify more than one condition for
1308
- # Exists, then all of the conditions must evaluate to `true` . (In
1309
- # other words, the conditions are ANDed together.) Otherwise, the
1310
- # conditional operation will fail.
1311
- # * `:return_values` - (String) Use ReturnValues if you want to get the
1312
- # item attributes as they appeared either before or after they were
1313
- # updated. For UpdateItem, the valid values are: NONE - If
1314
- # ReturnValues is not specified, or if its value is NONE, then
1315
- # nothing is returned. (This is the default for ReturnValues.)
1316
- # ALL_OLD - If UpdateItem overwrote an attribute name-value pair,
1317
- # then the content of the old item is returned. UPDATED_OLD - The old
1318
- # versions of only the updated attributes are returned. ALL_NEW - All
1319
- # of the attributes of the new version of the item are returned.
1320
- # UPDATED_NEW - The new versions of only the updated attributes are
1321
- # returned. Valid values include:
1322
- # * `NONE`
1323
- # * `ALL_OLD`
1324
- # * `UPDATED_OLD`
1325
- # * `ALL_NEW`
1326
- # * `UPDATED_NEW`
1327
- # * `:return_consumed_capacity` - (String) Valid values include:
1328
- # * `TOTAL`
1329
- # * `NONE`
1330
- # * `:return_item_collection_metrics` - (String) Valid values include:
1331
- # * `SIZE`
1332
- # * `NONE`
1333
- # @return [Core::Response]
1334
- # The #data method of the response object returns
1335
- # a hash with the following structure:
1336
- #
1337
- # * `:attributes` - (Hash<String,Hash>)
1338
- # * `:s` - (String)
1339
- # * `:n` - (String)
1340
- # * `:b` - (String)
1341
- # * `:ss` - (Array<String>)
1342
- # * `:ns` - (Array<String>)
1343
- # * `:bs` - (Array<Blob>)
1344
- # * `:consumed_capacity` - (Hash)
1345
- # * `:table_name` - (String)
1346
- # * `:capacity_units` - (Numeric)
1347
- # * `:item_collection_metrics` - (Hash)
1348
- # * `:item_collection_key` - (Hash<String,Hash>)
1349
- # * `:s` - (String)
1350
- # * `:n` - (String)
1351
- # * `:b` - (String)
1352
- # * `:ss` - (Array<String>)
1353
- # * `:ns` - (Array<String>)
1354
- # * `:bs` - (Array<Blob>)
1355
- # * `:size_estimate_range_gb` - (Array<Float>)
1356
-
1357
- # @!method update_table(options = {})
1358
- # Calls the UpdateTable API operation.
1359
- # @param [Hash] options
1360
- #
1361
- # * `:table_name` - *required* - (String) The name of the table to be
1362
- # updated.
1363
- # * `:provisioned_throughput` - *required* - (Hash)
1364
- # * `:read_capacity_units` - *required* - (Integer) The maximum
1365
- # number of strongly consistent reads consumed per second before
1366
- # returns a ThrottlingException. For more information, see
1367
- # Specifying Read and Write Requirements .
1368
- # * `:write_capacity_units` - *required* - (Integer) The maximum
1369
- # number of writes consumed per second before returns a
1370
- # ThrottlingException. For more information, see Specifying Read
1371
- # and Write Requirements .
1372
- # @return [Core::Response]
1373
- # The #data method of the response object returns
1374
- # a hash with the following structure:
1375
- #
1376
- # * `:table_description` - (Hash)
1377
- # * `:attribute_definitions` - (Array<Hash>)
1378
- # * `:attribute_name` - (String)
1379
- # * `:attribute_type` - (String)
1380
- # * `:table_name` - (String)
1381
- # * `:key_schema` - (Array<Hash>)
1382
- # * `:attribute_name` - (String)
1383
- # * `:key_type` - (String)
1384
- # * `:table_status` - (String)
1385
- # * `:creation_date_time` - (Time)
1386
- # * `:provisioned_throughput` - (Hash)
1387
- # * `:last_increase_date_time` - (Time)
1388
- # * `:last_decrease_date_time` - (Time)
1389
- # * `:number_of_decreases_today` - (Integer)
1390
- # * `:read_capacity_units` - (Integer)
1391
- # * `:write_capacity_units` - (Integer)
1392
- # * `:table_size_bytes` - (Integer)
1393
- # * `:item_count` - (Integer)
1394
- # * `:local_secondary_indexes` - (Array<Hash>)
1395
- # * `:index_name` - (String)
1396
- # * `:key_schema` - (Array<Hash>)
1397
- # * `:attribute_name` - (String)
1398
- # * `:key_type` - (String)
1399
- # * `:projection` - (Hash)
1400
- # * `:projection_type` - (String)
1401
- # * `:non_key_attributes` - (Array<String>)
1402
- # * `:index_size_bytes` - (Integer)
1403
- # * `:item_count` - (Integer)
1404
-
1405
- # end client methods #
1406
-
1407
- define_client_methods('2012-08-10')
1408
-
1409
- end