aws-sdk-core 2.6.29 → 2.6.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -750,6 +750,11 @@
750
750
  "us-west-2": {}
751
751
  }
752
752
  },
753
+ "lightsail": {
754
+ "endpoints": {
755
+ "us-east-1": {}
756
+ }
757
+ },
753
758
  "logs": {
754
759
  "endpoints": {
755
760
  "ap-northeast-1": {},
@@ -826,6 +831,14 @@
826
831
  "us-west-2": {}
827
832
  }
828
833
  },
834
+ "polly": {
835
+ "endpoints": {
836
+ "eu-west-1": {},
837
+ "us-east-1": {},
838
+ "us-east-2": {},
839
+ "us-west-2": {}
840
+ }
841
+ },
829
842
  "rds": {
830
843
  "endpoints": {
831
844
  "ap-northeast-1": {},
@@ -860,6 +873,13 @@
860
873
  "us-west-2": {}
861
874
  }
862
875
  },
876
+ "rekognition": {
877
+ "endpoints": {
878
+ "eu-west-1": {},
879
+ "us-east-1": {},
880
+ "us-west-2": {}
881
+ }
882
+ },
863
883
  "route53": {
864
884
  "endpoints": {
865
885
  "aws-global": {
@@ -72,11 +72,14 @@ module Aws
72
72
  KMS
73
73
  Lambda
74
74
  LambdaPreview
75
+ Lightsail
75
76
  MachineLearning
76
77
  MarketplaceCommerceAnalytics
77
78
  MarketplaceMetering
78
79
  OpsWorks
80
+ Polly
79
81
  RDS
82
+ Rekognition
80
83
  Redshift
81
84
  Route53
82
85
  Route53Domains
@@ -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,13 @@
1
+ Aws.add_service(:Polly, {
2
+ api: "#{Aws::API_DIR}/polly/2016-06-10/api-2.json",
3
+ docs: "#{Aws::API_DIR}/polly/2016-06-10/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/polly/2016-06-10/examples-1.json",
5
+ })
6
+
7
+ module Aws
8
+ module Polly
9
+
10
+ autoload :Presigner, 'aws-sdk-core/polly/presigner'
11
+
12
+ end
13
+ end
@@ -0,0 +1,70 @@
1
+ require 'aws-sigv4'
2
+
3
+ module Aws
4
+ module Polly
5
+
6
+ # Allows you to create presigned URLs for `synthesize_speech`
7
+ #
8
+ # Example Use:
9
+ #
10
+ # signer = Aws::Polly::Presigner.new
11
+ # url = signer.synthesize_speech_presigned_url(
12
+ # output_format: 'mp3',
13
+ # text: 'Hello World',
14
+ # voice_id: 'Ewa'
15
+ # )
16
+ #
17
+ class Presigner
18
+
19
+ # @option options [required, Credentials] :credentials
20
+ # You need provide an object that responds to `#credentials`
21
+ # returning another object that responds to `#access_key_id`, `#secret_access_key`,
22
+ # and `#session_token`.
23
+ #
24
+ # For example, you could provide an instance of following classes:
25
+ # * `Aws::Credentials`
26
+ # * `Aws::SharedCredentials`
27
+ # * `Aws::InstanceProfileCredentials`
28
+ # * `Aws::AssumeRoleCredentials`
29
+ # * `Aws::ECSCredentials`
30
+ #
31
+ # @option options [required, string] :region
32
+ # The region name, e.g. 'us-west-2'
33
+ def initialize(options = {})
34
+ @credentials = options.fetch(:credentials)
35
+ @region = options.fetch(:region)
36
+ end
37
+
38
+ # @param [Hash] params parameter inputs for synthesize_speech operation
39
+ def synthesize_speech_presigned_url(params = {})
40
+ input_shape = Client.api.operation(:synthesize_speech).input.shape
41
+ sign_but_dont_send(input_shape, params)
42
+ end
43
+
44
+ private
45
+
46
+ def sign_but_dont_send(input_shape, params)
47
+ parts = []
48
+ input_shape.members.each do |name, ref|
49
+ parts << [ ref, params[name] ] unless params[name].nil?
50
+ end
51
+ query = Aws::Rest::Request::QuerystringBuilder.new.build(parts)
52
+
53
+ signer = Aws::Sigv4::Signer.new(
54
+ service: 'polly',
55
+ region: @region,
56
+ credentials_provider: @credentials
57
+ )
58
+ url = Aws::EndpointProvider.resolve(signer.region, 'polly')
59
+ url += "/v1/speech?#{query}"
60
+ pre_signed_url = signer.presign_url(
61
+ http_method: 'GET',
62
+ url: url,
63
+ body: '',
64
+ expires_in: 900
65
+ ).to_s
66
+ end
67
+ end
68
+
69
+ end
70
+ end
@@ -0,0 +1,6 @@
1
+ Aws.add_service(:Rekognition, {
2
+ api: "#{Aws::API_DIR}/rekognition/2016-06-27/api-2.json",
3
+ docs: "#{Aws::API_DIR}/rekognition/2016-06-27/docs-2.json",
4
+ examples: "#{Aws::API_DIR}/rekognition/2016-06-27/examples-1.json",
5
+ paginators: "#{Aws::API_DIR}/rekognition/2016-06-27/paginators-1.json",
6
+ })
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.6.29'
2
+ VERSION = '2.6.30'
3
3
  end
@@ -210,6 +210,10 @@
210
210
  "models": "lambda/2014-11-11",
211
211
  "endpoint": "lambda"
212
212
  },
213
+ "Lightsail": {
214
+ "models": "lightsail/2016-11-28",
215
+ "endpoint": "lightsail"
216
+ },
213
217
  "MachineLearning": {
214
218
  "models": "machinelearning/2014-12-12",
215
219
  "endpoint": "machinelearning"
@@ -226,10 +230,18 @@
226
230
  "models": "opsworks/2013-02-18",
227
231
  "endpoint": "opsworks"
228
232
  },
233
+ "Polly": {
234
+ "models": "polly/2016-06-10",
235
+ "endpoint": "polly"
236
+ },
229
237
  "RDS": {
230
238
  "models": "rds/2014-10-31",
231
239
  "endpoint": "rds"
232
240
  },
241
+ "Rekognition": {
242
+ "models": "rekognition/2016-06-27",
243
+ "endpoint": "rekognition"
244
+ },
233
245
  "Redshift": {
234
246
  "models": "redshift/2012-12-01",
235
247
  "endpoint": "redshift"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.29
4
+ version: 2.6.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-29 00:00:00.000000000 Z
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -219,6 +219,8 @@ files:
219
219
  - apis/lambda/2015-03-31/api-2.json
220
220
  - apis/lambda/2015-03-31/examples-1.json
221
221
  - apis/lambda/2015-03-31/paginators-1.json
222
+ - apis/lightsail/2016-11-28/api-2.json
223
+ - apis/lightsail/2016-11-28/examples-1.json
222
224
  - apis/logs/2014-03-28/api-2.json
223
225
  - apis/logs/2014-03-28/examples-1.json
224
226
  - apis/logs/2014-03-28/paginators-1.json
@@ -240,6 +242,8 @@ files:
240
242
  - apis/opsworks/2013-02-18/paginators-1.json
241
243
  - apis/opsworks/2013-02-18/resources-1.json
242
244
  - apis/opsworks/2013-02-18/waiters-2.json
245
+ - apis/polly/2016-06-10/api-2.json
246
+ - apis/polly/2016-06-10/examples-1.json
243
247
  - apis/rds/2014-10-31/api-2.json
244
248
  - apis/rds/2014-10-31/examples-1.json
245
249
  - apis/rds/2014-10-31/paginators-1.json
@@ -249,6 +253,9 @@ files:
249
253
  - apis/redshift/2012-12-01/examples-1.json
250
254
  - apis/redshift/2012-12-01/paginators-1.json
251
255
  - apis/redshift/2012-12-01/waiters-2.json
256
+ - apis/rekognition/2016-06-27/api-2.json
257
+ - apis/rekognition/2016-06-27/examples-1.json
258
+ - apis/rekognition/2016-06-27/paginators-1.json
252
259
  - apis/route53/2013-04-01/api-2.json
253
260
  - apis/route53/2013-04-01/examples-1.json
254
261
  - apis/route53/2013-04-01/paginators-1.json
@@ -392,6 +399,7 @@ files:
392
399
  - lib/aws-sdk-core/kms.rb
393
400
  - lib/aws-sdk-core/lambda.rb
394
401
  - lib/aws-sdk-core/lambdapreview.rb
402
+ - lib/aws-sdk-core/lightsail.rb
395
403
  - lib/aws-sdk-core/log/formatter.rb
396
404
  - lib/aws-sdk-core/log/handler.rb
397
405
  - lib/aws-sdk-core/log/param_filter.rb
@@ -454,6 +462,8 @@ files:
454
462
  - lib/aws-sdk-core/plugins/stub_responses.rb
455
463
  - lib/aws-sdk-core/plugins/swf_read_timeouts.rb
456
464
  - lib/aws-sdk-core/plugins/user_agent.rb
465
+ - lib/aws-sdk-core/polly.rb
466
+ - lib/aws-sdk-core/polly/presigner.rb
457
467
  - lib/aws-sdk-core/query/ec2_param_builder.rb
458
468
  - lib/aws-sdk-core/query/handler.rb
459
469
  - lib/aws-sdk-core/query/param.rb
@@ -462,6 +472,7 @@ files:
462
472
  - lib/aws-sdk-core/rds.rb
463
473
  - lib/aws-sdk-core/redshift.rb
464
474
  - lib/aws-sdk-core/refreshing_credentials.rb
475
+ - lib/aws-sdk-core/rekognition.rb
465
476
  - lib/aws-sdk-core/rest/handler.rb
466
477
  - lib/aws-sdk-core/rest/request/body.rb
467
478
  - lib/aws-sdk-core/rest/request/builder.rb