aws-sdk-polly 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,229 +1,227 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module Polly
10
- # @api private
11
- module ClientApi
12
-
13
- include Seahorse::Model
14
-
15
- Alphabet = Shapes::StringShape.new(name: 'Alphabet')
16
- AudioStream = Shapes::BlobShape.new(name: 'AudioStream')
17
- ContentType = Shapes::StringShape.new(name: 'ContentType')
18
- DeleteLexiconInput = Shapes::StructureShape.new(name: 'DeleteLexiconInput')
19
- DeleteLexiconOutput = Shapes::StructureShape.new(name: 'DeleteLexiconOutput')
20
- DescribeVoicesInput = Shapes::StructureShape.new(name: 'DescribeVoicesInput')
21
- DescribeVoicesOutput = Shapes::StructureShape.new(name: 'DescribeVoicesOutput')
22
- ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
23
- Gender = Shapes::StringShape.new(name: 'Gender')
24
- GetLexiconInput = Shapes::StructureShape.new(name: 'GetLexiconInput')
25
- GetLexiconOutput = Shapes::StructureShape.new(name: 'GetLexiconOutput')
26
- InvalidLexiconException = Shapes::StructureShape.new(name: 'InvalidLexiconException')
27
- InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
28
- InvalidSampleRateException = Shapes::StructureShape.new(name: 'InvalidSampleRateException')
29
- InvalidSsmlException = Shapes::StructureShape.new(name: 'InvalidSsmlException')
30
- LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
31
- LanguageName = Shapes::StringShape.new(name: 'LanguageName')
32
- LastModified = Shapes::TimestampShape.new(name: 'LastModified')
33
- LexemesCount = Shapes::IntegerShape.new(name: 'LexemesCount')
34
- Lexicon = Shapes::StructureShape.new(name: 'Lexicon')
35
- LexiconArn = Shapes::StringShape.new(name: 'LexiconArn')
36
- LexiconAttributes = Shapes::StructureShape.new(name: 'LexiconAttributes')
37
- LexiconContent = Shapes::StringShape.new(name: 'LexiconContent')
38
- LexiconDescription = Shapes::StructureShape.new(name: 'LexiconDescription')
39
- LexiconDescriptionList = Shapes::ListShape.new(name: 'LexiconDescriptionList')
40
- LexiconName = Shapes::StringShape.new(name: 'LexiconName')
41
- LexiconNameList = Shapes::ListShape.new(name: 'LexiconNameList')
42
- LexiconNotFoundException = Shapes::StructureShape.new(name: 'LexiconNotFoundException')
43
- LexiconSizeExceededException = Shapes::StructureShape.new(name: 'LexiconSizeExceededException')
44
- ListLexiconsInput = Shapes::StructureShape.new(name: 'ListLexiconsInput')
45
- ListLexiconsOutput = Shapes::StructureShape.new(name: 'ListLexiconsOutput')
46
- MaxLexemeLengthExceededException = Shapes::StructureShape.new(name: 'MaxLexemeLengthExceededException')
47
- MaxLexiconsNumberExceededException = Shapes::StructureShape.new(name: 'MaxLexiconsNumberExceededException')
48
- NextToken = Shapes::StringShape.new(name: 'NextToken')
49
- OutputFormat = Shapes::StringShape.new(name: 'OutputFormat')
50
- PutLexiconInput = Shapes::StructureShape.new(name: 'PutLexiconInput')
51
- PutLexiconOutput = Shapes::StructureShape.new(name: 'PutLexiconOutput')
52
- RequestCharacters = Shapes::IntegerShape.new(name: 'RequestCharacters')
53
- SampleRate = Shapes::StringShape.new(name: 'SampleRate')
54
- ServiceFailureException = Shapes::StructureShape.new(name: 'ServiceFailureException')
55
- Size = Shapes::IntegerShape.new(name: 'Size')
56
- SynthesizeSpeechInput = Shapes::StructureShape.new(name: 'SynthesizeSpeechInput')
57
- SynthesizeSpeechOutput = Shapes::StructureShape.new(name: 'SynthesizeSpeechOutput')
58
- Text = Shapes::StringShape.new(name: 'Text')
59
- TextLengthExceededException = Shapes::StructureShape.new(name: 'TextLengthExceededException')
60
- TextType = Shapes::StringShape.new(name: 'TextType')
61
- UnsupportedPlsAlphabetException = Shapes::StructureShape.new(name: 'UnsupportedPlsAlphabetException')
62
- UnsupportedPlsLanguageException = Shapes::StructureShape.new(name: 'UnsupportedPlsLanguageException')
63
- Voice = Shapes::StructureShape.new(name: 'Voice')
64
- VoiceId = Shapes::StringShape.new(name: 'VoiceId')
65
- VoiceList = Shapes::ListShape.new(name: 'VoiceList')
66
- VoiceName = Shapes::StringShape.new(name: 'VoiceName')
67
-
68
- DeleteLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
69
- DeleteLexiconInput.struct_class = Types::DeleteLexiconInput
70
-
71
- DeleteLexiconOutput.struct_class = Types::DeleteLexiconOutput
72
-
73
- DescribeVoicesInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location: "querystring", location_name: "LanguageCode"))
74
- DescribeVoicesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
75
- DescribeVoicesInput.struct_class = Types::DescribeVoicesInput
76
-
77
- DescribeVoicesOutput.add_member(:voices, Shapes::ShapeRef.new(shape: VoiceList, location_name: "Voices"))
78
- DescribeVoicesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
79
- DescribeVoicesOutput.struct_class = Types::DescribeVoicesOutput
80
-
81
- GetLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
82
- GetLexiconInput.struct_class = Types::GetLexiconInput
83
-
84
- GetLexiconOutput.add_member(:lexicon, Shapes::ShapeRef.new(shape: Lexicon, location_name: "Lexicon"))
85
- GetLexiconOutput.add_member(:lexicon_attributes, Shapes::ShapeRef.new(shape: LexiconAttributes, location_name: "LexiconAttributes"))
86
- GetLexiconOutput.struct_class = Types::GetLexiconOutput
87
-
88
- Lexicon.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, location_name: "Content"))
89
- Lexicon.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, location_name: "Name"))
90
- Lexicon.struct_class = Types::Lexicon
91
-
92
- LexiconAttributes.add_member(:alphabet, Shapes::ShapeRef.new(shape: Alphabet, location_name: "Alphabet"))
93
- LexiconAttributes.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
94
- LexiconAttributes.add_member(:last_modified, Shapes::ShapeRef.new(shape: LastModified, location_name: "LastModified"))
95
- LexiconAttributes.add_member(:lexicon_arn, Shapes::ShapeRef.new(shape: LexiconArn, location_name: "LexiconArn"))
96
- LexiconAttributes.add_member(:lexemes_count, Shapes::ShapeRef.new(shape: LexemesCount, location_name: "LexemesCount"))
97
- LexiconAttributes.add_member(:size, Shapes::ShapeRef.new(shape: Size, location_name: "Size"))
98
- LexiconAttributes.struct_class = Types::LexiconAttributes
99
-
100
- LexiconDescription.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, location_name: "Name"))
101
- LexiconDescription.add_member(:attributes, Shapes::ShapeRef.new(shape: LexiconAttributes, location_name: "Attributes"))
102
- LexiconDescription.struct_class = Types::LexiconDescription
103
-
104
- LexiconDescriptionList.member = Shapes::ShapeRef.new(shape: LexiconDescription)
105
-
106
- LexiconNameList.member = Shapes::ShapeRef.new(shape: LexiconName)
107
-
108
- ListLexiconsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
109
- ListLexiconsInput.struct_class = Types::ListLexiconsInput
110
-
111
- ListLexiconsOutput.add_member(:lexicons, Shapes::ShapeRef.new(shape: LexiconDescriptionList, location_name: "Lexicons"))
112
- ListLexiconsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
113
- ListLexiconsOutput.struct_class = Types::ListLexiconsOutput
114
-
115
- PutLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
116
- PutLexiconInput.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, required: true, location_name: "Content"))
117
- PutLexiconInput.struct_class = Types::PutLexiconInput
118
-
119
- PutLexiconOutput.struct_class = Types::PutLexiconOutput
120
-
121
- SynthesizeSpeechInput.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
122
- SynthesizeSpeechInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, required: true, location_name: "OutputFormat"))
123
- SynthesizeSpeechInput.add_member(:sample_rate, Shapes::ShapeRef.new(shape: SampleRate, location_name: "SampleRate"))
124
- SynthesizeSpeechInput.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "Text"))
125
- SynthesizeSpeechInput.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
126
- SynthesizeSpeechInput.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, required: true, location_name: "VoiceId"))
127
- SynthesizeSpeechInput.struct_class = Types::SynthesizeSpeechInput
128
-
129
- SynthesizeSpeechOutput.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, location_name: "AudioStream"))
130
- SynthesizeSpeechOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location: "header", location_name: "Content-Type"))
131
- SynthesizeSpeechOutput.add_member(:request_characters, Shapes::ShapeRef.new(shape: RequestCharacters, location: "header", location_name: "x-amzn-RequestCharacters"))
132
- SynthesizeSpeechOutput.struct_class = Types::SynthesizeSpeechOutput
133
- SynthesizeSpeechOutput[:payload] = :audio_stream
134
- SynthesizeSpeechOutput[:payload_member] = SynthesizeSpeechOutput.member(:audio_stream)
135
-
136
- Voice.add_member(:gender, Shapes::ShapeRef.new(shape: Gender, location_name: "Gender"))
137
- Voice.add_member(:id, Shapes::ShapeRef.new(shape: VoiceId, location_name: "Id"))
138
- Voice.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
139
- Voice.add_member(:language_name, Shapes::ShapeRef.new(shape: LanguageName, location_name: "LanguageName"))
140
- Voice.add_member(:name, Shapes::ShapeRef.new(shape: VoiceName, location_name: "Name"))
141
- Voice.struct_class = Types::Voice
142
-
143
- VoiceList.member = Shapes::ShapeRef.new(shape: Voice)
144
-
145
-
146
- # @api private
147
- API = Seahorse::Model::Api.new.tap do |api|
148
-
149
- api.version = "2016-06-10"
150
-
151
- api.metadata = {
152
- "endpointPrefix" => "polly",
153
- "protocol" => "rest-json",
154
- "serviceFullName" => "Amazon Polly",
155
- "signatureVersion" => "v4",
156
- }
157
-
158
- api.add_operation(:delete_lexicon, Seahorse::Model::Operation.new.tap do |o|
159
- o.name = "DeleteLexicon"
160
- o.http_method = "DELETE"
161
- o.http_request_uri = "/v1/lexicons/{LexiconName}"
162
- o.input = Shapes::ShapeRef.new(shape: DeleteLexiconInput)
163
- o.output = Shapes::ShapeRef.new(shape: DeleteLexiconOutput)
164
- o.errors << Shapes::ShapeRef.new(shape: LexiconNotFoundException)
165
- o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
166
- end)
167
-
168
- api.add_operation(:describe_voices, Seahorse::Model::Operation.new.tap do |o|
169
- o.name = "DescribeVoices"
170
- o.http_method = "GET"
171
- o.http_request_uri = "/v1/voices"
172
- o.input = Shapes::ShapeRef.new(shape: DescribeVoicesInput)
173
- o.output = Shapes::ShapeRef.new(shape: DescribeVoicesOutput)
174
- o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
175
- o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
176
- end)
177
-
178
- api.add_operation(:get_lexicon, Seahorse::Model::Operation.new.tap do |o|
179
- o.name = "GetLexicon"
180
- o.http_method = "GET"
181
- o.http_request_uri = "/v1/lexicons/{LexiconName}"
182
- o.input = Shapes::ShapeRef.new(shape: GetLexiconInput)
183
- o.output = Shapes::ShapeRef.new(shape: GetLexiconOutput)
184
- o.errors << Shapes::ShapeRef.new(shape: LexiconNotFoundException)
185
- o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
186
- end)
187
-
188
- api.add_operation(:list_lexicons, Seahorse::Model::Operation.new.tap do |o|
189
- o.name = "ListLexicons"
190
- o.http_method = "GET"
191
- o.http_request_uri = "/v1/lexicons"
192
- o.input = Shapes::ShapeRef.new(shape: ListLexiconsInput)
193
- o.output = Shapes::ShapeRef.new(shape: ListLexiconsOutput)
194
- o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
195
- o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
196
- end)
197
-
198
- api.add_operation(:put_lexicon, Seahorse::Model::Operation.new.tap do |o|
199
- o.name = "PutLexicon"
200
- o.http_method = "PUT"
201
- o.http_request_uri = "/v1/lexicons/{LexiconName}"
202
- o.input = Shapes::ShapeRef.new(shape: PutLexiconInput)
203
- o.output = Shapes::ShapeRef.new(shape: PutLexiconOutput)
204
- o.errors << Shapes::ShapeRef.new(shape: InvalidLexiconException)
205
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedPlsAlphabetException)
206
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedPlsLanguageException)
207
- o.errors << Shapes::ShapeRef.new(shape: LexiconSizeExceededException)
208
- o.errors << Shapes::ShapeRef.new(shape: MaxLexemeLengthExceededException)
209
- o.errors << Shapes::ShapeRef.new(shape: MaxLexiconsNumberExceededException)
210
- o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
211
- end)
212
-
213
- api.add_operation(:synthesize_speech, Seahorse::Model::Operation.new.tap do |o|
214
- o.name = "SynthesizeSpeech"
215
- o.http_method = "POST"
216
- o.http_request_uri = "/v1/speech"
217
- o.input = Shapes::ShapeRef.new(shape: SynthesizeSpeechInput)
218
- o.output = Shapes::ShapeRef.new(shape: SynthesizeSpeechOutput)
219
- o.errors << Shapes::ShapeRef.new(shape: TextLengthExceededException)
220
- o.errors << Shapes::ShapeRef.new(shape: InvalidSampleRateException)
221
- o.errors << Shapes::ShapeRef.new(shape: InvalidSsmlException)
222
- o.errors << Shapes::ShapeRef.new(shape: LexiconNotFoundException)
223
- o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
224
- end)
225
- end
8
+ module Aws::Polly
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ Alphabet = Shapes::StringShape.new(name: 'Alphabet')
15
+ AudioStream = Shapes::BlobShape.new(name: 'AudioStream')
16
+ ContentType = Shapes::StringShape.new(name: 'ContentType')
17
+ DeleteLexiconInput = Shapes::StructureShape.new(name: 'DeleteLexiconInput')
18
+ DeleteLexiconOutput = Shapes::StructureShape.new(name: 'DeleteLexiconOutput')
19
+ DescribeVoicesInput = Shapes::StructureShape.new(name: 'DescribeVoicesInput')
20
+ DescribeVoicesOutput = Shapes::StructureShape.new(name: 'DescribeVoicesOutput')
21
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
22
+ Gender = Shapes::StringShape.new(name: 'Gender')
23
+ GetLexiconInput = Shapes::StructureShape.new(name: 'GetLexiconInput')
24
+ GetLexiconOutput = Shapes::StructureShape.new(name: 'GetLexiconOutput')
25
+ InvalidLexiconException = Shapes::StructureShape.new(name: 'InvalidLexiconException')
26
+ InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
27
+ InvalidSampleRateException = Shapes::StructureShape.new(name: 'InvalidSampleRateException')
28
+ InvalidSsmlException = Shapes::StructureShape.new(name: 'InvalidSsmlException')
29
+ LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
30
+ LanguageName = Shapes::StringShape.new(name: 'LanguageName')
31
+ LastModified = Shapes::TimestampShape.new(name: 'LastModified')
32
+ LexemesCount = Shapes::IntegerShape.new(name: 'LexemesCount')
33
+ Lexicon = Shapes::StructureShape.new(name: 'Lexicon')
34
+ LexiconArn = Shapes::StringShape.new(name: 'LexiconArn')
35
+ LexiconAttributes = Shapes::StructureShape.new(name: 'LexiconAttributes')
36
+ LexiconContent = Shapes::StringShape.new(name: 'LexiconContent')
37
+ LexiconDescription = Shapes::StructureShape.new(name: 'LexiconDescription')
38
+ LexiconDescriptionList = Shapes::ListShape.new(name: 'LexiconDescriptionList')
39
+ LexiconName = Shapes::StringShape.new(name: 'LexiconName')
40
+ LexiconNameList = Shapes::ListShape.new(name: 'LexiconNameList')
41
+ LexiconNotFoundException = Shapes::StructureShape.new(name: 'LexiconNotFoundException')
42
+ LexiconSizeExceededException = Shapes::StructureShape.new(name: 'LexiconSizeExceededException')
43
+ ListLexiconsInput = Shapes::StructureShape.new(name: 'ListLexiconsInput')
44
+ ListLexiconsOutput = Shapes::StructureShape.new(name: 'ListLexiconsOutput')
45
+ MaxLexemeLengthExceededException = Shapes::StructureShape.new(name: 'MaxLexemeLengthExceededException')
46
+ MaxLexiconsNumberExceededException = Shapes::StructureShape.new(name: 'MaxLexiconsNumberExceededException')
47
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
48
+ OutputFormat = Shapes::StringShape.new(name: 'OutputFormat')
49
+ PutLexiconInput = Shapes::StructureShape.new(name: 'PutLexiconInput')
50
+ PutLexiconOutput = Shapes::StructureShape.new(name: 'PutLexiconOutput')
51
+ RequestCharacters = Shapes::IntegerShape.new(name: 'RequestCharacters')
52
+ SampleRate = Shapes::StringShape.new(name: 'SampleRate')
53
+ ServiceFailureException = Shapes::StructureShape.new(name: 'ServiceFailureException')
54
+ Size = Shapes::IntegerShape.new(name: 'Size')
55
+ SynthesizeSpeechInput = Shapes::StructureShape.new(name: 'SynthesizeSpeechInput')
56
+ SynthesizeSpeechOutput = Shapes::StructureShape.new(name: 'SynthesizeSpeechOutput')
57
+ Text = Shapes::StringShape.new(name: 'Text')
58
+ TextLengthExceededException = Shapes::StructureShape.new(name: 'TextLengthExceededException')
59
+ TextType = Shapes::StringShape.new(name: 'TextType')
60
+ UnsupportedPlsAlphabetException = Shapes::StructureShape.new(name: 'UnsupportedPlsAlphabetException')
61
+ UnsupportedPlsLanguageException = Shapes::StructureShape.new(name: 'UnsupportedPlsLanguageException')
62
+ Voice = Shapes::StructureShape.new(name: 'Voice')
63
+ VoiceId = Shapes::StringShape.new(name: 'VoiceId')
64
+ VoiceList = Shapes::ListShape.new(name: 'VoiceList')
65
+ VoiceName = Shapes::StringShape.new(name: 'VoiceName')
66
+
67
+ DeleteLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
68
+ DeleteLexiconInput.struct_class = Types::DeleteLexiconInput
69
+
70
+ DeleteLexiconOutput.struct_class = Types::DeleteLexiconOutput
71
+
72
+ DescribeVoicesInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location: "querystring", location_name: "LanguageCode"))
73
+ DescribeVoicesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
74
+ DescribeVoicesInput.struct_class = Types::DescribeVoicesInput
75
+
76
+ DescribeVoicesOutput.add_member(:voices, Shapes::ShapeRef.new(shape: VoiceList, location_name: "Voices"))
77
+ DescribeVoicesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
78
+ DescribeVoicesOutput.struct_class = Types::DescribeVoicesOutput
79
+
80
+ GetLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
81
+ GetLexiconInput.struct_class = Types::GetLexiconInput
82
+
83
+ GetLexiconOutput.add_member(:lexicon, Shapes::ShapeRef.new(shape: Lexicon, location_name: "Lexicon"))
84
+ GetLexiconOutput.add_member(:lexicon_attributes, Shapes::ShapeRef.new(shape: LexiconAttributes, location_name: "LexiconAttributes"))
85
+ GetLexiconOutput.struct_class = Types::GetLexiconOutput
86
+
87
+ Lexicon.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, location_name: "Content"))
88
+ Lexicon.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, location_name: "Name"))
89
+ Lexicon.struct_class = Types::Lexicon
90
+
91
+ LexiconAttributes.add_member(:alphabet, Shapes::ShapeRef.new(shape: Alphabet, location_name: "Alphabet"))
92
+ LexiconAttributes.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
93
+ LexiconAttributes.add_member(:last_modified, Shapes::ShapeRef.new(shape: LastModified, location_name: "LastModified"))
94
+ LexiconAttributes.add_member(:lexicon_arn, Shapes::ShapeRef.new(shape: LexiconArn, location_name: "LexiconArn"))
95
+ LexiconAttributes.add_member(:lexemes_count, Shapes::ShapeRef.new(shape: LexemesCount, location_name: "LexemesCount"))
96
+ LexiconAttributes.add_member(:size, Shapes::ShapeRef.new(shape: Size, location_name: "Size"))
97
+ LexiconAttributes.struct_class = Types::LexiconAttributes
98
+
99
+ LexiconDescription.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, location_name: "Name"))
100
+ LexiconDescription.add_member(:attributes, Shapes::ShapeRef.new(shape: LexiconAttributes, location_name: "Attributes"))
101
+ LexiconDescription.struct_class = Types::LexiconDescription
102
+
103
+ LexiconDescriptionList.member = Shapes::ShapeRef.new(shape: LexiconDescription)
104
+
105
+ LexiconNameList.member = Shapes::ShapeRef.new(shape: LexiconName)
106
+
107
+ ListLexiconsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
108
+ ListLexiconsInput.struct_class = Types::ListLexiconsInput
109
+
110
+ ListLexiconsOutput.add_member(:lexicons, Shapes::ShapeRef.new(shape: LexiconDescriptionList, location_name: "Lexicons"))
111
+ ListLexiconsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
112
+ ListLexiconsOutput.struct_class = Types::ListLexiconsOutput
113
+
114
+ PutLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
115
+ PutLexiconInput.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, required: true, location_name: "Content"))
116
+ PutLexiconInput.struct_class = Types::PutLexiconInput
117
+
118
+ PutLexiconOutput.struct_class = Types::PutLexiconOutput
119
+
120
+ SynthesizeSpeechInput.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
121
+ SynthesizeSpeechInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, required: true, location_name: "OutputFormat"))
122
+ SynthesizeSpeechInput.add_member(:sample_rate, Shapes::ShapeRef.new(shape: SampleRate, location_name: "SampleRate"))
123
+ SynthesizeSpeechInput.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "Text"))
124
+ SynthesizeSpeechInput.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
125
+ SynthesizeSpeechInput.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, required: true, location_name: "VoiceId"))
126
+ SynthesizeSpeechInput.struct_class = Types::SynthesizeSpeechInput
127
+
128
+ SynthesizeSpeechOutput.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, location_name: "AudioStream"))
129
+ SynthesizeSpeechOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location: "header", location_name: "Content-Type"))
130
+ SynthesizeSpeechOutput.add_member(:request_characters, Shapes::ShapeRef.new(shape: RequestCharacters, location: "header", location_name: "x-amzn-RequestCharacters"))
131
+ SynthesizeSpeechOutput.struct_class = Types::SynthesizeSpeechOutput
132
+ SynthesizeSpeechOutput[:payload] = :audio_stream
133
+ SynthesizeSpeechOutput[:payload_member] = SynthesizeSpeechOutput.member(:audio_stream)
134
+
135
+ Voice.add_member(:gender, Shapes::ShapeRef.new(shape: Gender, location_name: "Gender"))
136
+ Voice.add_member(:id, Shapes::ShapeRef.new(shape: VoiceId, location_name: "Id"))
137
+ Voice.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
138
+ Voice.add_member(:language_name, Shapes::ShapeRef.new(shape: LanguageName, location_name: "LanguageName"))
139
+ Voice.add_member(:name, Shapes::ShapeRef.new(shape: VoiceName, location_name: "Name"))
140
+ Voice.struct_class = Types::Voice
141
+
142
+ VoiceList.member = Shapes::ShapeRef.new(shape: Voice)
143
+
226
144
 
145
+ # @api private
146
+ API = Seahorse::Model::Api.new.tap do |api|
147
+
148
+ api.version = "2016-06-10"
149
+
150
+ api.metadata = {
151
+ "endpointPrefix" => "polly",
152
+ "protocol" => "rest-json",
153
+ "serviceFullName" => "Amazon Polly",
154
+ "signatureVersion" => "v4",
155
+ }
156
+
157
+ api.add_operation(:delete_lexicon, Seahorse::Model::Operation.new.tap do |o|
158
+ o.name = "DeleteLexicon"
159
+ o.http_method = "DELETE"
160
+ o.http_request_uri = "/v1/lexicons/{LexiconName}"
161
+ o.input = Shapes::ShapeRef.new(shape: DeleteLexiconInput)
162
+ o.output = Shapes::ShapeRef.new(shape: DeleteLexiconOutput)
163
+ o.errors << Shapes::ShapeRef.new(shape: LexiconNotFoundException)
164
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
165
+ end)
166
+
167
+ api.add_operation(:describe_voices, Seahorse::Model::Operation.new.tap do |o|
168
+ o.name = "DescribeVoices"
169
+ o.http_method = "GET"
170
+ o.http_request_uri = "/v1/voices"
171
+ o.input = Shapes::ShapeRef.new(shape: DescribeVoicesInput)
172
+ o.output = Shapes::ShapeRef.new(shape: DescribeVoicesOutput)
173
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
174
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
175
+ end)
176
+
177
+ api.add_operation(:get_lexicon, Seahorse::Model::Operation.new.tap do |o|
178
+ o.name = "GetLexicon"
179
+ o.http_method = "GET"
180
+ o.http_request_uri = "/v1/lexicons/{LexiconName}"
181
+ o.input = Shapes::ShapeRef.new(shape: GetLexiconInput)
182
+ o.output = Shapes::ShapeRef.new(shape: GetLexiconOutput)
183
+ o.errors << Shapes::ShapeRef.new(shape: LexiconNotFoundException)
184
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
185
+ end)
186
+
187
+ api.add_operation(:list_lexicons, Seahorse::Model::Operation.new.tap do |o|
188
+ o.name = "ListLexicons"
189
+ o.http_method = "GET"
190
+ o.http_request_uri = "/v1/lexicons"
191
+ o.input = Shapes::ShapeRef.new(shape: ListLexiconsInput)
192
+ o.output = Shapes::ShapeRef.new(shape: ListLexiconsOutput)
193
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
194
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
195
+ end)
196
+
197
+ api.add_operation(:put_lexicon, Seahorse::Model::Operation.new.tap do |o|
198
+ o.name = "PutLexicon"
199
+ o.http_method = "PUT"
200
+ o.http_request_uri = "/v1/lexicons/{LexiconName}"
201
+ o.input = Shapes::ShapeRef.new(shape: PutLexiconInput)
202
+ o.output = Shapes::ShapeRef.new(shape: PutLexiconOutput)
203
+ o.errors << Shapes::ShapeRef.new(shape: InvalidLexiconException)
204
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedPlsAlphabetException)
205
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedPlsLanguageException)
206
+ o.errors << Shapes::ShapeRef.new(shape: LexiconSizeExceededException)
207
+ o.errors << Shapes::ShapeRef.new(shape: MaxLexemeLengthExceededException)
208
+ o.errors << Shapes::ShapeRef.new(shape: MaxLexiconsNumberExceededException)
209
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
210
+ end)
211
+
212
+ api.add_operation(:synthesize_speech, Seahorse::Model::Operation.new.tap do |o|
213
+ o.name = "SynthesizeSpeech"
214
+ o.http_method = "POST"
215
+ o.http_request_uri = "/v1/speech"
216
+ o.input = Shapes::ShapeRef.new(shape: SynthesizeSpeechInput)
217
+ o.output = Shapes::ShapeRef.new(shape: SynthesizeSpeechOutput)
218
+ o.errors << Shapes::ShapeRef.new(shape: TextLengthExceededException)
219
+ o.errors << Shapes::ShapeRef.new(shape: InvalidSampleRateException)
220
+ o.errors << Shapes::ShapeRef.new(shape: InvalidSsmlException)
221
+ o.errors << Shapes::ShapeRef.new(shape: LexiconNotFoundException)
222
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
223
+ end)
227
224
  end
225
+
228
226
  end
229
227
  end
@@ -0,0 +1,2 @@
1
+ # utility classes
2
+ require 'aws-sdk-polly/presigner'
@@ -1,23 +1,14 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module Polly
10
- module Errors
8
+ module Aws::Polly
9
+ module Errors
11
10
 
12
- extend Aws::Errors::DynamicErrors
11
+ extend Aws::Errors::DynamicErrors
13
12
 
14
- # Raised when calling #load or #data on a resource class that can not be
15
- # loaded. This can happen when:
16
- #
17
- # * A resource class has identifiers, but no data attributes.
18
- # * Resource data is only available when making an API call that
19
- # enumerates all resources of that type.
20
- class ResourceNotLoadable < RuntimeError; end
21
- end
22
13
  end
23
14
  end