aws-sdk-polly 1.48.0 → 1.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-polly/client.rb +16 -3
- data/lib/aws-sdk-polly/presigner.rb +30 -20
- data/lib/aws-sdk-polly.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e399f8945639365556136a381983dd397b58a7fbdc300fecf6819d5c51414d34
|
4
|
+
data.tar.gz: 768af7a4e0791fa8159deab240443f9bcd6e2917c4f9b2fc295bdecb1f1ef921
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deb9e3ac02fd77e006f8ef400e04c61fc7f36fe1f73d161376f4e37fe2e9ace8b3b17067b9ae45e9f07ab996f4829ed8f474887701e49e0f6b8ab0b039c15ed5
|
7
|
+
data.tar.gz: a595fe091966035c39e4a395b2f273ff03279e7b1fc49251335eb2cbaa236812adb0df478bd4670055d0e08dbf1887f3ac717dc35176e822dea6c4f013a289c9
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.52.0 (2022-02-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.51.0 (2021-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.50.0 (2021-11-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.49.0 (2021-11-18)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Allow `Aws::Polly::Presigner` to take a `:client` with FIPS or Dualstack configuration.
|
23
|
+
|
4
24
|
1.48.0 (2021-11-04)
|
5
25
|
------------------
|
6
26
|
|
@@ -315,4 +335,4 @@ Unreleased Changes
|
|
315
335
|
1.0.0.rc2 (2016-12-09)
|
316
336
|
------------------
|
317
337
|
|
318
|
-
* Feature - Initial release of `aws-sdk-polly`.
|
338
|
+
* Feature - Initial release of `aws-sdk-polly`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.52.0
|
data/lib/aws-sdk-polly/client.rb
CHANGED
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
33
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
34
|
|
@@ -73,6 +75,8 @@ module Aws::Polly
|
|
73
75
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
76
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
77
|
add_plugin(Aws::Plugins::HttpChecksum)
|
78
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
79
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
76
80
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
81
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
78
82
|
|
@@ -119,7 +123,9 @@ module Aws::Polly
|
|
119
123
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
124
|
# are very aggressive. Construct and pass an instance of
|
121
125
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
126
|
+
# enable retries and extended timeouts. Instance profile credential
|
127
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
128
|
+
# to true.
|
123
129
|
#
|
124
130
|
# @option options [required, String] :region
|
125
131
|
# The AWS region to connect to. The configured `:region` is
|
@@ -173,6 +179,10 @@ module Aws::Polly
|
|
173
179
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
180
|
# a clock skew correction and retry requests with skewed client clocks.
|
175
181
|
#
|
182
|
+
# @option options [String] :defaults_mode ("legacy")
|
183
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
184
|
+
# accepted modes and the configuration defaults that are included.
|
185
|
+
#
|
176
186
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
187
|
# Set to true to disable SDK automatically adding host prefix
|
178
188
|
# to default service endpoint when available.
|
@@ -295,7 +305,7 @@ module Aws::Polly
|
|
295
305
|
# seconds to wait when opening a HTTP session before raising a
|
296
306
|
# `Timeout::Error`.
|
297
307
|
#
|
298
|
-
# @option options [
|
308
|
+
# @option options [Float] :http_read_timeout (60) The default
|
299
309
|
# number of seconds to wait for response data. This value can
|
300
310
|
# safely be set per-request on the session.
|
301
311
|
#
|
@@ -311,6 +321,9 @@ module Aws::Polly
|
|
311
321
|
# disables this behaviour. This value can safely be set per
|
312
322
|
# request on the session.
|
313
323
|
#
|
324
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
325
|
+
# in seconds.
|
326
|
+
#
|
314
327
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
315
328
|
# HTTP debug output will be sent to the `:logger`.
|
316
329
|
#
|
@@ -1097,7 +1110,7 @@ module Aws::Polly
|
|
1097
1110
|
params: params,
|
1098
1111
|
config: config)
|
1099
1112
|
context[:gem_name] = 'aws-sdk-polly'
|
1100
|
-
context[:gem_version] = '1.
|
1113
|
+
context[:gem_version] = '1.52.0'
|
1101
1114
|
Seahorse::Client::Request.new(handlers, context)
|
1102
1115
|
end
|
1103
1116
|
|
@@ -18,10 +18,13 @@ module Aws
|
|
18
18
|
#
|
19
19
|
class Presigner
|
20
20
|
|
21
|
-
# @option options [
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
21
|
+
# @option options [Client] :client Optionally provide an existing Polly
|
22
|
+
# client.
|
23
|
+
#
|
24
|
+
# @option options [Credentials] :credentials This option is deprecated,
|
25
|
+
# please use :client instead. Provide an object that responds to
|
26
|
+
# `#credentials` that returns another object that responds to
|
27
|
+
# `#access_key_id`, `#secret_access_key`, and `#session_token`.
|
25
28
|
#
|
26
29
|
# For example, you could provide an instance of following classes:
|
27
30
|
# * `Aws::Credentials`
|
@@ -30,35 +33,42 @@ module Aws
|
|
30
33
|
# * `Aws::AssumeRoleCredentials`
|
31
34
|
# * `Aws::ECSCredentials`
|
32
35
|
#
|
33
|
-
# @option options [
|
34
|
-
# The region name, e.g. 'us-west-2'
|
36
|
+
# @option options [String] :region This option is deprecated, please use
|
37
|
+
# :client instead. The region name, e.g. 'us-west-2'.
|
38
|
+
#
|
35
39
|
def initialize(options = {})
|
36
|
-
|
37
|
-
|
40
|
+
if !(options.keys - [:credentials, :region, :client]).empty?
|
41
|
+
raise ArgumentError,
|
42
|
+
':options may only contain :client, :region, :credentials '\
|
43
|
+
'keys. Please use the :client option instead.'
|
44
|
+
end
|
45
|
+
@client = options[:client] || Aws::Polly::Client.new(options)
|
38
46
|
end
|
39
47
|
|
40
|
-
# @param [Hash] params
|
48
|
+
# @param [Hash] params Parameter inputs for {Client#synthesize_speech}
|
49
|
+
# operation.
|
41
50
|
def synthesize_speech_presigned_url(params = {})
|
42
|
-
|
43
|
-
sign_but_dont_send(input_shape, params)
|
44
|
-
end
|
51
|
+
req = @client.build_request(:synthesize_speech, params)
|
45
52
|
|
46
|
-
private
|
47
|
-
|
48
|
-
def sign_but_dont_send(input_shape, params)
|
49
53
|
parts = []
|
50
|
-
|
54
|
+
req.context.operation.input.shape.members.each do |name, ref|
|
51
55
|
parts << [ ref, params[name] ] unless params[name].nil?
|
52
56
|
end
|
53
57
|
query = Aws::Rest::Request::QuerystringBuilder.new.build(parts)
|
54
58
|
|
55
59
|
signer = Aws::Sigv4::Signer.new(
|
56
60
|
service: 'polly',
|
57
|
-
region:
|
58
|
-
credentials_provider:
|
61
|
+
region: req.context.config.region,
|
62
|
+
credentials_provider: req.context.config.credentials
|
63
|
+
)
|
64
|
+
|
65
|
+
url = Aws::Partitions::EndpointProvider.resolve(
|
66
|
+
signer.region, 'polly', 'regional',
|
67
|
+
{
|
68
|
+
dualstack: req.context.config.use_dualstack_endpoint,
|
69
|
+
fips: req.context.config.use_fips_endpoint
|
70
|
+
}
|
59
71
|
)
|
60
|
-
# TODO - use context so that dualstack can be used
|
61
|
-
url = Aws::Partitions::EndpointProvider.resolve(signer.region, 'polly')
|
62
72
|
url += "/v1/speech?#{query}"
|
63
73
|
pre_signed_url = signer.presign_url(
|
64
74
|
http_method: 'GET',
|
data/lib/aws-sdk-polly.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-polly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.52.0
|
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:
|
11
|
+
date: 2022-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.126.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.126.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|