aws-sdk-core 2.6.9 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. checksums.yaml +4 -4
  2. data/apis/acm/2015-12-08/api-2.json +34 -3
  3. data/apis/acm/2015-12-08/paginators-1.json +2 -2
  4. data/apis/apigateway/2015-07-09/api-2.json +625 -17
  5. data/apis/application-autoscaling/2016-02-06/api-2.json +5 -2
  6. data/apis/appstream/2016-12-01/api-2.json +820 -0
  7. data/apis/appstream/2016-12-01/examples-1.json +5 -0
  8. data/apis/appstream/2016-12-01/waiters-2.json +55 -0
  9. data/apis/autoscaling/2011-01-01/api-2.json +1 -0
  10. data/apis/autoscaling/2011-01-01/resources-1.json +12 -1
  11. data/apis/batch/2016-08-10/api-2.json +885 -0
  12. data/apis/batch/2016-08-10/examples-1.json +589 -0
  13. data/apis/budgets/2016-10-20/api-2.json +696 -0
  14. data/apis/budgets/2016-10-20/examples-1.json +5 -0
  15. data/apis/cloudformation/2010-05-15/api-2.json +126 -11
  16. data/apis/cloudformation/2010-05-15/examples-1.json +153 -0
  17. data/apis/cloudformation/2010-05-15/resources-1.json +10 -1
  18. data/apis/cloudformation/2010-05-15/waiters-2.json +18 -96
  19. data/apis/cloudfront/2016-01-28/api-2.json +1 -0
  20. data/apis/cloudfront/2016-08-01/api-2.json +1 -0
  21. data/apis/cloudfront/2016-08-20/api-2.json +1 -0
  22. data/apis/cloudfront/2016-09-07/api-2.json +1 -0
  23. data/apis/cloudfront/2016-09-29/api-2.json +2599 -0
  24. data/apis/cloudfront/2016-09-29/examples-1.json +5 -0
  25. data/apis/cloudfront/2016-09-29/paginators-1.json +32 -0
  26. data/apis/cloudfront/2016-09-29/waiters-2.json +47 -0
  27. data/apis/cloudfront/2016-11-25/api-2.json +2665 -0
  28. data/apis/cloudfront/2016-11-25/examples-1.json +5 -0
  29. data/apis/cloudfront/2016-11-25/paginators-1.json +32 -0
  30. data/apis/cloudfront/2016-11-25/waiters-2.json +47 -0
  31. data/apis/cloudhsm/2014-05-30/api-2.json +2 -1
  32. data/apis/cloudsearch/2013-01-01/api-2.json +2 -1
  33. data/apis/cloudsearchdomain/2013-01-01/api-2.json +2 -1
  34. data/apis/cloudtrail/2013-11-01/api-2.json +109 -3
  35. data/apis/cloudtrail/2013-11-01/paginators-1.json +6 -0
  36. data/apis/codebuild/2016-10-06/api-2.json +702 -0
  37. data/apis/codebuild/2016-10-06/examples-1.json +5 -0
  38. data/apis/codecommit/2015-04-13/api-2.json +2 -1
  39. data/apis/codedeploy/2014-10-06/api-2.json +35 -6
  40. data/apis/codepipeline/2015-07-09/api-2.json +3 -2
  41. data/apis/cognito-identity/2014-06-30/api-2.json +84 -5
  42. data/apis/cognito-idp/2016-04-18/api-2.json +368 -5
  43. data/apis/cognito-sync/2014-06-30/api-2.json +2 -1
  44. data/apis/config/2014-11-12/api-2.json +40 -9
  45. data/apis/config/2014-11-12/paginators-1.json +2 -2
  46. data/apis/cur/2017-01-06/api-2.json +226 -0
  47. data/apis/cur/2017-01-06/examples-1.json +5 -0
  48. data/apis/cur/2017-01-06/paginators-1.json +9 -0
  49. data/apis/datapipeline/2012-10-29/api-2.json +2 -1
  50. data/apis/devicefarm/2015-06-23/api-2.json +2 -1
  51. data/apis/directconnect/2012-10-25/api-2.json +257 -10
  52. data/apis/discovery/2015-11-01/api-2.json +316 -5
  53. data/apis/dms/2016-01-01/api-2.json +45 -9
  54. data/apis/ds/2015-04-16/api-2.json +144 -1
  55. data/apis/dynamodb/2011-12-05/api-2.json +802 -0
  56. data/apis/dynamodb/2011-12-05/examples-1.json +5 -0
  57. data/apis/dynamodb/2011-12-05/paginators-1.json +26 -0
  58. data/apis/dynamodb/2011-12-05/waiters-2.json +35 -0
  59. data/apis/dynamodb/2012-08-10/api-2.json +115 -1
  60. data/apis/dynamodb/2012-08-10/examples-1.json +623 -0
  61. data/apis/dynamodb/2012-08-10/paginators-1.json +4 -4
  62. data/apis/ec2/2015-10-01/api-2.json +1 -0
  63. data/apis/ec2/2016-04-01/api-2.json +1 -0
  64. data/apis/ec2/2016-09-15/api-2.json +1 -0
  65. data/apis/ec2/2016-11-15/api-2.json +15037 -0
  66. data/apis/ec2/2016-11-15/examples-1.json +3740 -0
  67. data/apis/ec2/2016-11-15/paginators-1.json +138 -0
  68. data/apis/ec2/2016-11-15/resources-1.json +2582 -0
  69. data/apis/ec2/2016-11-15/waiters-2.json +593 -0
  70. data/apis/ecr/2015-09-21/api-2.json +17 -3
  71. data/apis/ecr/2015-09-21/paginators-1.json +12 -6
  72. data/apis/ecs/2014-11-13/api-2.json +183 -9
  73. data/apis/elasticache/2015-02-02/api-2.json +5 -2
  74. data/apis/elasticache/2015-02-02/examples-1.json +2963 -0
  75. data/apis/elasticbeanstalk/2010-12-01/api-2.json +123 -6
  76. data/apis/elasticfilesystem/2015-02-01/api-2.json +2 -1
  77. data/apis/elasticfilesystem/2015-02-01/examples-1.json +217 -0
  78. data/apis/elasticloadbalancing/2012-06-01/api-2.json +1 -0
  79. data/apis/elasticloadbalancingv2/2015-12-01/api-2.json +1 -0
  80. data/apis/elasticmapreduce/2009-03-31/api-2.json +322 -5
  81. data/apis/elastictranscoder/2012-09-25/api-2.json +44 -13
  82. data/apis/elastictranscoder/2012-09-25/examples-1.json +5 -0
  83. data/apis/email/2010-12-01/api-2.json +425 -4
  84. data/apis/es/2015-01-01/api-2.json +1 -0
  85. data/apis/events/2015-10-07/api-2.json +1 -0
  86. data/apis/firehose/2015-08-04/api-2.json +151 -4
  87. data/apis/firehose/2015-08-04/examples-1.json +5 -0
  88. data/apis/gamelift/2015-10-01/api-2.json +59 -1
  89. data/apis/glacier/2012-06-01/api-2.json +369 -779
  90. data/apis/glacier/2012-06-01/examples-1.json +806 -0
  91. data/apis/glacier/2012-06-01/paginators-1.json +5 -5
  92. data/apis/health/2016-08-04/api-2.json +547 -0
  93. data/apis/health/2016-08-04/examples-1.json +5 -0
  94. data/apis/health/2016-08-04/paginators-1.json +31 -0
  95. data/apis/iam/2010-05-08/api-2.json +209 -0
  96. data/apis/iam/2010-05-08/examples-1.json +1186 -0
  97. data/apis/importexport/2010-06-01/api-2.json +1 -0
  98. data/apis/inspector/2016-02-16/api-2.json +2 -1
  99. data/apis/inspector/2016-02-16/examples-1.json +1135 -0
  100. data/apis/iot-data/2015-05-28/api-2.json +1 -0
  101. data/apis/iot/2015-05-28/api-2.json +16 -0
  102. data/apis/kinesis/2013-12-02/api-2.json +80 -12
  103. data/apis/kinesisanalytics/2015-08-14/api-2.json +7 -2
  104. data/apis/kms/2014-11-01/api-2.json +2 -1
  105. data/apis/kms/2014-11-01/examples-1.json +810 -0
  106. data/apis/lambda/2014-11-11/api-2.json +1 -0
  107. data/apis/lambda/2015-03-31/api-2.json +162 -9
  108. data/apis/lambda/2015-03-31/examples-1.json +609 -0
  109. data/apis/lightsail/2016-11-28/api-2.json +2137 -0
  110. data/apis/lightsail/2016-11-28/examples-1.json +5 -0
  111. data/apis/logs/2014-03-28/api-2.json +113 -6
  112. data/apis/machinelearning/2014-12-12/api-2.json +1 -0
  113. data/apis/marketplacecommerceanalytics/2015-07-01/api-2.json +5 -2
  114. data/apis/meteringmarketplace/2016-01-14/api-2.json +136 -0
  115. data/apis/monitoring/2010-08-01/api-2.json +27 -6
  116. data/apis/opsworks/2013-02-18/api-2.json +1 -0
  117. data/apis/opsworkscm/2016-11-01/api-2.json +712 -0
  118. data/apis/opsworkscm/2016-11-01/examples-1.json +5 -0
  119. data/apis/pinpoint/2016-12-01/api-2.json +2753 -0
  120. data/apis/pinpoint/2016-12-01/examples-1.json +5 -0
  121. data/apis/polly/2016-06-10/api-2.json +504 -0
  122. data/apis/polly/2016-06-10/examples-1.json +171 -0
  123. data/apis/rds/2013-01-10/api-2.json +2902 -0
  124. data/apis/rds/2013-01-10/examples-1.json +5 -0
  125. data/apis/rds/2013-01-10/paginators-1.json +97 -0
  126. data/apis/rds/2013-02-12/api-2.json +3058 -0
  127. data/apis/rds/2013-02-12/examples-1.json +5 -0
  128. data/apis/rds/2013-02-12/paginators-1.json +110 -0
  129. data/apis/rds/2013-09-09/api-2.json +3159 -0
  130. data/apis/rds/2013-09-09/examples-1.json +5 -0
  131. data/apis/rds/2013-09-09/paginators-1.json +110 -0
  132. data/apis/rds/2013-09-09/waiters-2.json +97 -0
  133. data/apis/rds/2014-09-01/api-2.json +3272 -0
  134. data/apis/rds/2014-09-01/examples-1.json +5 -0
  135. data/apis/rds/2014-09-01/paginators-1.json +4 -0
  136. data/apis/rds/2014-10-31/api-2.json +121 -6
  137. data/apis/rds/2014-10-31/examples-1.json +0 -444
  138. data/apis/rds/2014-10-31/paginators-1.json +18 -18
  139. data/apis/rds/2014-10-31/resources-1.json +1 -1
  140. data/apis/redshift/2012-12-01/api-2.json +1 -0
  141. data/apis/rekognition/2016-06-27/api-2.json +836 -0
  142. data/apis/rekognition/2016-06-27/examples-1.json +651 -0
  143. data/apis/rekognition/2016-06-27/paginators-1.json +16 -0
  144. data/apis/route53/2013-04-01/api-2.json +186 -219
  145. data/apis/route53/2013-04-01/paginators-1.json +9 -9
  146. data/apis/route53domains/2014-05-15/api-2.json +1 -0
  147. data/apis/s3/2006-03-01/api-2.json +843 -23
  148. data/apis/sdb/2009-04-15/api-2.json +1 -0
  149. data/apis/servicecatalog/2015-12-10/api-2.json +1214 -29
  150. data/apis/shield/2016-06-02/api-2.json +494 -0
  151. data/apis/shield/2016-06-02/examples-1.json +5 -0
  152. data/apis/sms/2016-10-24/api-2.json +612 -0
  153. data/apis/sms/2016-10-24/examples-1.json +5 -0
  154. data/apis/sms/2016-10-24/paginators-1.json +28 -0
  155. data/apis/snowball/2016-06-30/api-2.json +283 -11
  156. data/apis/snowball/2016-06-30/examples-1.json +437 -0
  157. data/apis/sns/2010-03-31/api-2.json +1 -0
  158. data/apis/sqs/2012-11-05/api-2.json +74 -38
  159. data/apis/sqs/2012-11-05/examples-1.json +0 -613
  160. data/apis/sqs/2012-11-05/resources-1.json +232 -0
  161. data/apis/ssm/2014-11-06/api-2.json +4036 -536
  162. data/apis/states/2016-11-23/api-2.json +1021 -0
  163. data/apis/states/2016-11-23/examples-1.json +5 -0
  164. data/apis/states/2016-11-23/paginators-1.json +28 -0
  165. data/apis/storagegateway/2013-06-30/api-2.json +269 -6
  166. data/apis/storagegateway/2013-06-30/examples-1.json +1376 -0
  167. data/apis/streams.dynamodb/2012-08-10/api-2.json +2 -1
  168. data/apis/streams.dynamodb/2012-08-10/examples-1.json +207 -0
  169. data/apis/sts/2011-06-15/api-2.json +1 -0
  170. data/apis/sts/2011-06-15/examples-1.json +201 -0
  171. data/apis/support/2013-04-15/api-2.json +1 -0
  172. data/apis/swf/2012-01-25/api-2.json +1 -0
  173. data/apis/waf-regional/2016-11-28/api-2.json +2090 -0
  174. data/apis/waf-regional/2016-11-28/examples-1.json +1017 -0
  175. data/apis/waf/2015-08-24/api-2.json +3 -1
  176. data/apis/waf/2015-08-24/examples-1.json +1012 -0
  177. data/apis/workspaces/2015-04-08/api-2.json +1 -0
  178. data/apis/xray/2016-04-12/api-2.json +491 -0
  179. data/apis/xray/2016-04-12/examples-1.json +5 -0
  180. data/endpoints.json +781 -392
  181. data/lib/aws-sdk-core.rb +20 -0
  182. data/lib/aws-sdk-core/api/customizations.rb +16 -0
  183. data/lib/aws-sdk-core/api/docs/builder.rb +2 -1
  184. data/lib/aws-sdk-core/api/docs/client_type_documenter.rb +9 -0
  185. data/lib/aws-sdk-core/api/docs/crosslink.rb +43 -0
  186. data/lib/aws-sdk-core/api/docs/operation_documenter.rb +11 -2
  187. data/lib/aws-sdk-core/appstream.rb +6 -0
  188. data/lib/aws-sdk-core/batch.rb +5 -0
  189. data/lib/aws-sdk-core/budgets.rb +5 -0
  190. data/lib/aws-sdk-core/client.rb +1 -0
  191. data/lib/aws-sdk-core/client_waiters.rb +5 -5
  192. data/lib/aws-sdk-core/cloudfront.rb +5 -5
  193. data/lib/aws-sdk-core/cloudfront/url_signer.rb +1 -1
  194. data/lib/aws-sdk-core/codebuild.rb +5 -0
  195. data/lib/aws-sdk-core/costandusagereportservice.rb +6 -0
  196. data/lib/aws-sdk-core/credential_provider_chain.rb +3 -3
  197. data/lib/aws-sdk-core/cur.rb +6 -0
  198. data/lib/aws-sdk-core/ec2.rb +6 -6
  199. data/lib/aws-sdk-core/elastictranscoder.rb +1 -0
  200. data/lib/aws-sdk-core/firehose.rb +1 -0
  201. data/lib/aws-sdk-core/glacier.rb +1 -0
  202. data/lib/aws-sdk-core/health.rb +6 -0
  203. data/lib/aws-sdk-core/lightsail.rb +5 -0
  204. data/lib/aws-sdk-core/opsworkscm.rb +5 -0
  205. data/lib/aws-sdk-core/partitions/region.rb +0 -12
  206. data/lib/aws-sdk-core/partitions/service.rb +1 -11
  207. data/lib/aws-sdk-core/pinpoint.rb +5 -0
  208. data/lib/aws-sdk-core/plugins/ec2_copy_encrypted_snapshot.rb +24 -55
  209. data/lib/aws-sdk-core/plugins/idempotency_token.rb +37 -0
  210. data/lib/aws-sdk-core/plugins/rds_cross_region_copying.rb +64 -0
  211. data/lib/aws-sdk-core/plugins/request_signer.rb +4 -0
  212. data/lib/aws-sdk-core/plugins/retry_errors.rb +1 -0
  213. data/lib/aws-sdk-core/plugins/s3_bucket_dns.rb +1 -1
  214. data/lib/aws-sdk-core/plugins/sqs_md5s.rb +1 -1
  215. data/lib/aws-sdk-core/polly.rb +13 -0
  216. data/lib/aws-sdk-core/polly/presigner.rb +70 -0
  217. data/lib/aws-sdk-core/rekognition.rb +6 -0
  218. data/lib/aws-sdk-core/rest/request/endpoint.rb +11 -66
  219. data/lib/aws-sdk-core/rest/request/querystring_builder.rb +90 -0
  220. data/lib/aws-sdk-core/shield.rb +5 -0
  221. data/lib/aws-sdk-core/signers/v4.rb +2 -1
  222. data/lib/aws-sdk-core/sms.rb +6 -0
  223. data/lib/aws-sdk-core/sqs.rb +1 -0
  224. data/lib/aws-sdk-core/states.rb +6 -0
  225. data/lib/aws-sdk-core/version.rb +1 -1
  226. data/lib/aws-sdk-core/wafregional.rb +5 -0
  227. data/lib/aws-sdk-core/xray.rb +5 -0
  228. data/lib/seahorse/client/net_http/connection_pool.rb +11 -7
  229. data/lib/seahorse/client/net_http/handler.rb +5 -2
  230. data/lib/seahorse/client/plugin_list.rb +3 -1
  231. data/lib/seahorse/client/response.rb +9 -20
  232. data/service-models.json +66 -2
  233. metadata +110 -2
@@ -23,7 +23,11 @@ module Aws
23
23
  APIGateway
24
24
  ApplicationAutoScaling
25
25
  ApplicationDiscoveryService
26
+ AppStream
26
27
  AutoScaling
28
+ Batch
29
+ Budgets
30
+ CodeBuild
27
31
  CloudFormation
28
32
  CloudFront
29
33
  CloudHSM
@@ -40,6 +44,7 @@ module Aws
40
44
  CognitoIdentityProvider
41
45
  CognitoSync
42
46
  ConfigService
47
+ CostandUsageReportService
43
48
  DatabaseMigrationService
44
49
  DataPipeline
45
50
  DeviceFarm
@@ -61,6 +66,7 @@ module Aws
61
66
  Firehose
62
67
  GameLift
63
68
  Glacier
69
+ Health
64
70
  IAM
65
71
  ImportExport
66
72
  Inspector
@@ -71,28 +77,38 @@ module Aws
71
77
  KMS
72
78
  Lambda
73
79
  LambdaPreview
80
+ Lightsail
74
81
  MachineLearning
75
82
  MarketplaceCommerceAnalytics
76
83
  MarketplaceMetering
77
84
  OpsWorks
85
+ OpsWorksCM
86
+ Pinpoint
87
+ Polly
78
88
  RDS
89
+ Rekognition
79
90
  Redshift
80
91
  Route53
81
92
  Route53Domains
82
93
  S3
83
94
  ServiceCatalog
84
95
  SES
96
+ Shield
85
97
  SimpleDB
98
+ SMS
86
99
  SNS
87
100
  Snowball
88
101
  SQS
89
102
  SSM
103
+ States
90
104
  StorageGateway
91
105
  STS
92
106
  Support
93
107
  SWF
94
108
  WAF
109
+ WAFRegional
95
110
  WorkSpaces
111
+ XRay
96
112
  )
97
113
  # end services
98
114
 
@@ -143,6 +159,7 @@ module Aws
143
159
  module Docs
144
160
  autoload :Builder, 'aws-sdk-core/api/docs/builder'
145
161
  autoload :ClientTypeDocumenter, 'aws-sdk-core/api/docs/client_type_documenter'
162
+ autoload :Crosslink, 'aws-sdk-core/api/docs/crosslink'
146
163
  autoload :DocstringProvider, 'aws-sdk-core/api/docs/docstring_provider'
147
164
  autoload :NullDocstringProvider, 'aws-sdk-core/api/docs/docstring_provider'
148
165
  autoload :OperationDocumenter, 'aws-sdk-core/api/docs/operation_documenter'
@@ -173,10 +190,12 @@ module Aws
173
190
  autoload :GlacierChecksums, 'aws-sdk-core/plugins/glacier_checksums'
174
191
  autoload :GlobalConfiguration, 'aws-sdk-core/plugins/global_configuration'
175
192
  autoload :HelpfulSocketErrors, 'aws-sdk-core/plugins/helpful_socket_errors'
193
+ autoload :IdempotencyToken, 'aws-sdk-core/plugins/idempotency_token'
176
194
  autoload :Logging, 'aws-sdk-core/plugins/logging'
177
195
  autoload :MachineLearningPredictEndpoint, 'aws-sdk-core/plugins/machine_learning_predict_endpoint'
178
196
  autoload :ParamConverter, 'aws-sdk-core/plugins/param_converter'
179
197
  autoload :ParamValidator, 'aws-sdk-core/plugins/param_validator'
198
+ autoload :RDSCrossRegionCopying, 'aws-sdk-core/plugins/rds_cross_region_copying'
180
199
  autoload :RegionalEndpoint, 'aws-sdk-core/plugins/regional_endpoint'
181
200
  autoload :ResponsePaging, 'aws-sdk-core/plugins/response_paging'
182
201
  autoload :RequestSigner, 'aws-sdk-core/plugins/request_signer'
@@ -228,6 +247,7 @@ module Aws
228
247
  autoload :Builder, 'aws-sdk-core/rest/request/builder'
229
248
  autoload :Endpoint, 'aws-sdk-core/rest/request/endpoint'
230
249
  autoload :Headers, 'aws-sdk-core/rest/request/headers'
250
+ autoload :QuerystringBuilder, 'aws-sdk-core/rest/request/querystring_builder'
231
251
  end
232
252
  module Response
233
253
  autoload :Body, 'aws-sdk-core/rest/response/body'
@@ -143,6 +143,22 @@ module Aws
143
143
  Aws::Plugins::Route53IdFix
144
144
  ))
145
145
 
146
+ plugins('rds', add: %w(
147
+ Aws::Plugins::RDSCrossRegionCopying
148
+ ))
149
+
150
+ api('rds') do |api|
151
+ api['shapes']['CopyDBSnapshotMessage']['members']['DestinationRegion'] =
152
+ {"shape" => "String"}
153
+ end
154
+
155
+ doc('rds') do |docs|
156
+ docs['shapes']['String']['refs']['CopyDBSnapshotMessage$SourceRegion'] =
157
+ "<p>The region which you are copying an encrypted snapshot from.</p>" +
158
+ "<p>This is a required paramter that allows SDK to compute a pre-signed Url and" +
159
+ " populate <code>PreSignedURL</code> parameter on your behalf.</p>"
160
+ end
161
+
146
162
  api('s3') do |api|
147
163
  api['metadata'].delete('signatureVersion')
148
164
  if ENV['DOCSTRINGS']
@@ -17,6 +17,7 @@ module Aws
17
17
  @client_class = svc_module.const_get(:Client)
18
18
  @api = @client_class.api
19
19
  @full_name = @api.metadata['serviceFullName']
20
+ @uid = @api.metadata['uid']
20
21
  @error_names = @api.operations.map {|_,o| o.errors.map(&:shape).map(&:name) }
21
22
  @error_names = @error_names.flatten.uniq.sort
22
23
  @namespace = YARD::Registry['Aws']
@@ -143,7 +144,7 @@ Constructs an API client.
143
144
  end
144
145
 
145
146
  def document_client_operation(namespace, method_name, operation)
146
- documenter = OperationDocumenter.new(@svc_name, namespace)
147
+ documenter = OperationDocumenter.new(@svc_name, namespace, @uid)
147
148
  documenter.document(method_name, operation)
148
149
  end
149
150
 
@@ -43,6 +43,7 @@ module Aws
43
43
  def tags(api, shape)
44
44
  tags = []
45
45
  tags << input_example_tag(api, shape) if input_shape?(api, shape)
46
+ tags << see_also_tag(api, shape) if redirectable?(api, shape)
46
47
  tags
47
48
  end
48
49
 
@@ -84,6 +85,14 @@ module Aws
84
85
  tag(note)
85
86
  end
86
87
 
88
+ def see_also_tag(api, shape)
89
+ tag(Crosslink.tag_string(api.metadata["uid"], shape.name))
90
+ end
91
+
92
+ def redirectable?(api, shape)
93
+ Crosslink.taggable?(api.metadata["uid"]) && shape.name
94
+ end
95
+
87
96
  def returned_by(api, shape)
88
97
  methods = []
89
98
 
@@ -0,0 +1,43 @@
1
+ module Aws
2
+ module Api
3
+ module Docs
4
+ module Crosslink
5
+
6
+ EXCLUDE_UIDS = [
7
+ "apigateway",
8
+ "budgets",
9
+ "cloudsearch",
10
+ "cloudsearchdomain",
11
+ "discovery",
12
+ "elastictranscoder",
13
+ "es",
14
+ "glacier",
15
+ "importexport",
16
+ "iot",
17
+ "iot-data",
18
+ "machinelearning",
19
+ "rekognition",
20
+ "sdb",
21
+ "swf"
22
+ ]
23
+
24
+ def self.tag_string(uid, name)
25
+ path = "#{ENV['BASEURL']}goto/WebAPI/#{uid}/#{name}"
26
+ "@see #{path} AWS API Documentation"
27
+ end
28
+
29
+ def self.taggable?(uid)
30
+ uid && ENV['BASEURL'] && !exclude?(uid)
31
+ end
32
+
33
+ private
34
+ def self.exclude?(uid)
35
+ EXCLUDE_UIDS.any? do |service|
36
+ uid.match(/^#{service}/)
37
+ end
38
+ end
39
+
40
+ end
41
+ end
42
+ end
43
+ end
@@ -6,10 +6,11 @@ module Aws
6
6
  include Seahorse::Model
7
7
  include Utils
8
8
 
9
- def initialize(service_name, namespace)
9
+ def initialize(service_name, namespace, uid)
10
10
  @service_name = service_name
11
11
  @namespace = namespace
12
12
  @optname = 'options'
13
+ @uid = uid
13
14
  end
14
15
 
15
16
  # @param [Symbol] method_name
@@ -46,6 +47,10 @@ module Aws
46
47
  type = input_type(ref)
47
48
  docstring = "@option #{@optname} [#{req}#{type}] :#{name}\n"
48
49
  docstring += ref.documentation.to_s.lines.map { |line| " #{line}" }.join
50
+ if ref['idempotencyToken']
51
+ docstring << "\n\n This parameter will be auto-filled on your behalf"\
52
+ " with a random UUIDv4 when no value is provided.\n"
53
+ end
49
54
  tag(docstring)
50
55
  end
51
56
  end
@@ -133,7 +138,11 @@ module Aws
133
138
  end
134
139
 
135
140
  def see_also_tags(method_name, operation)
136
- []
141
+ if Crosslink.taggable?(@uid)
142
+ [tag(Crosslink.tag_string(@uid, operation.name))]
143
+ else
144
+ []
145
+ end
137
146
  end
138
147
 
139
148
  end
@@ -0,0 +1,6 @@
1
+ Aws.add_service(:AppStream, {
2
+ api: "#{Aws::API_DIR}/appstream/2016-12-01/api-2.json",
3
+ docs: "#{Aws::API_DIR}/appstream/2016-12-01/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/appstream/2016-12-01/examples-1.json",
5
+ waiters: "#{Aws::API_DIR}/appstream/2016-12-01/waiters-2.json",
6
+ })
@@ -0,0 +1,5 @@
1
+ Aws.add_service(:Batch, {
2
+ api: "#{Aws::API_DIR}/batch/2016-08-10/api-2.json",
3
+ docs: "#{Aws::API_DIR}/batch/2016-08-10/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/batch/2016-08-10/examples-1.json",
5
+ })
@@ -0,0 +1,5 @@
1
+ Aws.add_service(:Budgets, {
2
+ api: "#{Aws::API_DIR}/budgets/2016-10-20/api-2.json",
3
+ docs: "#{Aws::API_DIR}/budgets/2016-10-20/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/budgets/2016-10-20/examples-1.json",
5
+ })
@@ -16,6 +16,7 @@ module Aws
16
16
  'Aws::Plugins::RequestSigner',
17
17
  'Aws::Plugins::ResponsePaging',
18
18
  'Aws::Plugins::StubResponses',
19
+ 'Aws::Plugins::IdempotencyToken',
19
20
  ]
20
21
 
21
22
  # @api private
@@ -72,11 +72,11 @@ module Aws
72
72
  # fails, it raises an error. **All errors raised extend from
73
73
  # {Aws::Waiters::Errors::WaiterFailed}**.
74
74
  #
75
- # begin
76
- # client.wait_until(...)
77
- # rescue Aws::Waiters::Errors::WaiterFailed
78
- # # resource did not enter the desired state in time
79
- # end
75
+ # begin
76
+ # client.wait_until(...)
77
+ # rescue Aws::Waiters::Errors::WaiterFailed
78
+ # # resource did not enter the desired state in time
79
+ # end
80
80
  #
81
81
  # @param [Symbol] waiter_name The name of the waiter. See {#waiter_names}
82
82
  # for a full list of supported waiters.
@@ -1,9 +1,9 @@
1
1
  Aws.add_service(:CloudFront, {
2
- api: "#{Aws::API_DIR}/cloudfront/2016-09-07/api-2.json",
3
- docs: "#{Aws::API_DIR}/cloudfront/2016-09-07/docs-2.json",
4
- examples: "#{Aws::API_DIR}/cloudfront/2016-09-07/examples-1.json",
5
- paginators: "#{Aws::API_DIR}/cloudfront/2016-09-07/paginators-1.json",
6
- waiters: "#{Aws::API_DIR}/cloudfront/2016-09-07/waiters-2.json",
2
+ api: "#{Aws::API_DIR}/cloudfront/2016-11-25/api-2.json",
3
+ docs: "#{Aws::API_DIR}/cloudfront/2016-11-25/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/cloudfront/2016-11-25/examples-1.json",
5
+ paginators: "#{Aws::API_DIR}/cloudfront/2016-11-25/paginators-1.json",
6
+ waiters: "#{Aws::API_DIR}/cloudfront/2016-11-25/waiters-2.json",
7
7
  })
8
8
 
9
9
  module Aws
@@ -138,7 +138,7 @@ module Aws
138
138
  }
139
139
  ]
140
140
  }
141
- json_hash.to_json
141
+ JSON.dump(json_hash)
142
142
  end
143
143
 
144
144
  def encode(policy)
@@ -0,0 +1,5 @@
1
+ Aws.add_service(:CodeBuild, {
2
+ api: "#{Aws::API_DIR}/codebuild/2016-10-06/api-2.json",
3
+ docs: "#{Aws::API_DIR}/codebuild/2016-10-06/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/codebuild/2016-10-06/examples-1.json",
5
+ })
@@ -0,0 +1,6 @@
1
+ Aws.add_service(:CostandUsageReportService, {
2
+ api: "#{Aws::API_DIR}/cur/2017-01-06/api-2.json",
3
+ docs: "#{Aws::API_DIR}/cur/2017-01-06/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/cur/2017-01-06/examples-1.json",
5
+ paginators: "#{Aws::API_DIR}/cur/2017-01-06/paginators-1.json",
6
+ })
@@ -24,9 +24,9 @@ module Aws
24
24
  [:assume_role_credentials, {}],
25
25
  [:shared_credentials, {}],
26
26
  [:instance_profile_credentials, {
27
- retries: 0,
28
- http_open_timeout: 1,
29
- http_read_timeout: 1,
27
+ retries: @config ? @config.instance_profile_credentials_retries : 0,
28
+ http_open_timeout: @config ? @config.instance_profile_credentials_timeout : 1,
29
+ http_read_timeout: @config ? @config.instance_profile_credentials_timeout : 1,
30
30
  }],
31
31
  ]
32
32
  end
@@ -0,0 +1,6 @@
1
+ Aws.add_service(:Cur, {
2
+ api: "#{Aws::API_DIR}/cur/2017-01-06/api-2.json",
3
+ docs: "#{Aws::API_DIR}/cur/2017-01-06/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/cur/2017-01-06/examples-1.json",
5
+ paginators: "#{Aws::API_DIR}/cur/2017-01-06/paginators-1.json",
6
+ })
@@ -1,8 +1,8 @@
1
1
  Aws.add_service(:EC2, {
2
- api: "#{Aws::API_DIR}/ec2/2016-09-15/api-2.json",
3
- docs: "#{Aws::API_DIR}/ec2/2016-09-15/docs-2.json",
4
- examples: "#{Aws::API_DIR}/ec2/2016-09-15/examples-1.json",
5
- paginators: "#{Aws::API_DIR}/ec2/2016-09-15/paginators-1.json",
6
- resources: "#{Aws::API_DIR}/ec2/2016-09-15/resources-1.json",
7
- waiters: "#{Aws::API_DIR}/ec2/2016-09-15/waiters-2.json",
2
+ api: "#{Aws::API_DIR}/ec2/2016-11-15/api-2.json",
3
+ docs: "#{Aws::API_DIR}/ec2/2016-11-15/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/ec2/2016-11-15/examples-1.json",
5
+ paginators: "#{Aws::API_DIR}/ec2/2016-11-15/paginators-1.json",
6
+ resources: "#{Aws::API_DIR}/ec2/2016-11-15/resources-1.json",
7
+ waiters: "#{Aws::API_DIR}/ec2/2016-11-15/waiters-2.json",
8
8
  })
@@ -1,6 +1,7 @@
1
1
  Aws.add_service(:ElasticTranscoder, {
2
2
  api: "#{Aws::API_DIR}/elastictranscoder/2012-09-25/api-2.json",
3
3
  docs: "#{Aws::API_DIR}/elastictranscoder/2012-09-25/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/elastictranscoder/2012-09-25/examples-1.json",
4
5
  paginators: "#{Aws::API_DIR}/elastictranscoder/2012-09-25/paginators-1.json",
5
6
  waiters: "#{Aws::API_DIR}/elastictranscoder/2012-09-25/waiters-2.json",
6
7
  })
@@ -1,4 +1,5 @@
1
1
  Aws.add_service(:Firehose, {
2
2
  api: "#{Aws::API_DIR}/firehose/2015-08-04/api-2.json",
3
3
  docs: "#{Aws::API_DIR}/firehose/2015-08-04/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/firehose/2015-08-04/examples-1.json",
4
5
  })
@@ -1,6 +1,7 @@
1
1
  Aws.add_service(:Glacier, {
2
2
  api: "#{Aws::API_DIR}/glacier/2012-06-01/api-2.json",
3
3
  docs: "#{Aws::API_DIR}/glacier/2012-06-01/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/glacier/2012-06-01/examples-1.json",
4
5
  paginators: "#{Aws::API_DIR}/glacier/2012-06-01/paginators-1.json",
5
6
  resources: "#{Aws::API_DIR}/glacier/2012-06-01/resources-1.json",
6
7
  waiters: "#{Aws::API_DIR}/glacier/2012-06-01/waiters-2.json",
@@ -0,0 +1,6 @@
1
+ Aws.add_service(:Health, {
2
+ api: "#{Aws::API_DIR}/health/2016-08-04/api-2.json",
3
+ docs: "#{Aws::API_DIR}/health/2016-08-04/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/health/2016-08-04/examples-1.json",
5
+ paginators: "#{Aws::API_DIR}/health/2016-08-04/paginators-1.json",
6
+ })
@@ -0,0 +1,5 @@
1
+ Aws.add_service(:Lightsail, {
2
+ api: "#{Aws::API_DIR}/lightsail/2016-11-28/api-2.json",
3
+ docs: "#{Aws::API_DIR}/lightsail/2016-11-28/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/lightsail/2016-11-28/examples-1.json",
5
+ })
@@ -0,0 +1,5 @@
1
+ Aws.add_service(:OpsWorksCM, {
2
+ api: "#{Aws::API_DIR}/opsworkscm/2016-11-01/api-2.json",
3
+ docs: "#{Aws::API_DIR}/opsworkscm/2016-11-01/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/opsworkscm/2016-11-01/examples-1.json",
5
+ })
@@ -57,21 +57,9 @@ module Aws
57
57
  end
58
58
 
59
59
  def service_in_region?(svc, region_name)
60
- svc_endpoints_contains_region?(svc, region_name) ||
61
- svc_partition_endpoint_matches_region?(svc, region_name)
62
- end
63
-
64
- def svc_endpoints_contains_region?(svc, region_name)
65
60
  svc['endpoints'].key?(region_name)
66
61
  end
67
62
 
68
- def svc_partition_endpoint_matches_region?(svc, region_name)
69
- if pe = svc['partitionEndpoint']
70
- region = svc['endpoints'][pe].fetch('credentialScope', {})['region']
71
- region == region_name
72
- end
73
- end
74
-
75
63
  end
76
64
  end
77
65
  end
@@ -16,7 +16,6 @@ module Aws
16
16
  @regions = options[:regions]
17
17
  @regionalized = options[:regionalized]
18
18
  @partition_region = options[:partition_region]
19
- @regions << @partition_region if !@regionalized
20
19
  end
21
20
 
22
21
  # @return [String] The name of this service. The name is the module
@@ -66,16 +65,7 @@ module Aws
66
65
  end
67
66
 
68
67
  def partition_region(service)
69
- if service['partitionEndpoint']
70
- endpoint = service['endpoints'][service['partitionEndpoint']]
71
- if endpoint['credentialScope']
72
- endpoint['credentialScope']['region']
73
- elsif service['defaults'] && service['defaults']['credentialScope']
74
- service['defaults']['credentialScope']['region']
75
- else
76
- service['partitionEndpoint']
77
- end
78
- end
68
+ service['partitionEndpoint']
79
69
  end
80
70
 
81
71
  end