aws-sdk-comprehend 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,417 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Comprehend
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AnyLengthString = Shapes::StringShape.new(name: 'AnyLengthString')
15
+ BatchDetectDominantLanguageItemResult = Shapes::StructureShape.new(name: 'BatchDetectDominantLanguageItemResult')
16
+ BatchDetectDominantLanguageRequest = Shapes::StructureShape.new(name: 'BatchDetectDominantLanguageRequest')
17
+ BatchDetectDominantLanguageResponse = Shapes::StructureShape.new(name: 'BatchDetectDominantLanguageResponse')
18
+ BatchDetectEntitiesItemResult = Shapes::StructureShape.new(name: 'BatchDetectEntitiesItemResult')
19
+ BatchDetectEntitiesRequest = Shapes::StructureShape.new(name: 'BatchDetectEntitiesRequest')
20
+ BatchDetectEntitiesResponse = Shapes::StructureShape.new(name: 'BatchDetectEntitiesResponse')
21
+ BatchDetectKeyPhrasesItemResult = Shapes::StructureShape.new(name: 'BatchDetectKeyPhrasesItemResult')
22
+ BatchDetectKeyPhrasesRequest = Shapes::StructureShape.new(name: 'BatchDetectKeyPhrasesRequest')
23
+ BatchDetectKeyPhrasesResponse = Shapes::StructureShape.new(name: 'BatchDetectKeyPhrasesResponse')
24
+ BatchDetectSentimentItemResult = Shapes::StructureShape.new(name: 'BatchDetectSentimentItemResult')
25
+ BatchDetectSentimentRequest = Shapes::StructureShape.new(name: 'BatchDetectSentimentRequest')
26
+ BatchDetectSentimentResponse = Shapes::StructureShape.new(name: 'BatchDetectSentimentResponse')
27
+ BatchItemError = Shapes::StructureShape.new(name: 'BatchItemError')
28
+ BatchItemErrorList = Shapes::ListShape.new(name: 'BatchItemErrorList')
29
+ BatchSizeLimitExceededException = Shapes::StructureShape.new(name: 'BatchSizeLimitExceededException')
30
+ ClientRequestTokenString = Shapes::StringShape.new(name: 'ClientRequestTokenString')
31
+ DescribeTopicsDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeTopicsDetectionJobRequest')
32
+ DescribeTopicsDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeTopicsDetectionJobResponse')
33
+ DetectDominantLanguageRequest = Shapes::StructureShape.new(name: 'DetectDominantLanguageRequest')
34
+ DetectDominantLanguageResponse = Shapes::StructureShape.new(name: 'DetectDominantLanguageResponse')
35
+ DetectEntitiesRequest = Shapes::StructureShape.new(name: 'DetectEntitiesRequest')
36
+ DetectEntitiesResponse = Shapes::StructureShape.new(name: 'DetectEntitiesResponse')
37
+ DetectKeyPhrasesRequest = Shapes::StructureShape.new(name: 'DetectKeyPhrasesRequest')
38
+ DetectKeyPhrasesResponse = Shapes::StructureShape.new(name: 'DetectKeyPhrasesResponse')
39
+ DetectSentimentRequest = Shapes::StructureShape.new(name: 'DetectSentimentRequest')
40
+ DetectSentimentResponse = Shapes::StructureShape.new(name: 'DetectSentimentResponse')
41
+ DominantLanguage = Shapes::StructureShape.new(name: 'DominantLanguage')
42
+ Entity = Shapes::StructureShape.new(name: 'Entity')
43
+ EntityType = Shapes::StringShape.new(name: 'EntityType')
44
+ Float = Shapes::FloatShape.new(name: 'Float')
45
+ IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
46
+ InputDataConfig = Shapes::StructureShape.new(name: 'InputDataConfig')
47
+ InputFormat = Shapes::StringShape.new(name: 'InputFormat')
48
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
49
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
50
+ InvalidFilterException = Shapes::StructureShape.new(name: 'InvalidFilterException')
51
+ InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
52
+ JobId = Shapes::StringShape.new(name: 'JobId')
53
+ JobName = Shapes::StringShape.new(name: 'JobName')
54
+ JobNotFoundException = Shapes::StructureShape.new(name: 'JobNotFoundException')
55
+ JobStatus = Shapes::StringShape.new(name: 'JobStatus')
56
+ KeyPhrase = Shapes::StructureShape.new(name: 'KeyPhrase')
57
+ LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
58
+ ListOfDetectDominantLanguageResult = Shapes::ListShape.new(name: 'ListOfDetectDominantLanguageResult')
59
+ ListOfDetectEntitiesResult = Shapes::ListShape.new(name: 'ListOfDetectEntitiesResult')
60
+ ListOfDetectKeyPhrasesResult = Shapes::ListShape.new(name: 'ListOfDetectKeyPhrasesResult')
61
+ ListOfDetectSentimentResult = Shapes::ListShape.new(name: 'ListOfDetectSentimentResult')
62
+ ListOfDominantLanguages = Shapes::ListShape.new(name: 'ListOfDominantLanguages')
63
+ ListOfEntities = Shapes::ListShape.new(name: 'ListOfEntities')
64
+ ListOfKeyPhrases = Shapes::ListShape.new(name: 'ListOfKeyPhrases')
65
+ ListTopicsDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListTopicsDetectionJobsRequest')
66
+ ListTopicsDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListTopicsDetectionJobsResponse')
67
+ MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
68
+ NumberOfTopicsInteger = Shapes::IntegerShape.new(name: 'NumberOfTopicsInteger')
69
+ OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
70
+ S3Uri = Shapes::StringShape.new(name: 'S3Uri')
71
+ SentimentScore = Shapes::StructureShape.new(name: 'SentimentScore')
72
+ SentimentType = Shapes::StringShape.new(name: 'SentimentType')
73
+ StartTopicsDetectionJobRequest = Shapes::StructureShape.new(name: 'StartTopicsDetectionJobRequest')
74
+ StartTopicsDetectionJobResponse = Shapes::StructureShape.new(name: 'StartTopicsDetectionJobResponse')
75
+ String = Shapes::StringShape.new(name: 'String')
76
+ StringList = Shapes::ListShape.new(name: 'StringList')
77
+ TextSizeLimitExceededException = Shapes::StructureShape.new(name: 'TextSizeLimitExceededException')
78
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
79
+ TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
80
+ TopicsDetectionJobFilter = Shapes::StructureShape.new(name: 'TopicsDetectionJobFilter')
81
+ TopicsDetectionJobProperties = Shapes::StructureShape.new(name: 'TopicsDetectionJobProperties')
82
+ TopicsDetectionJobPropertiesList = Shapes::ListShape.new(name: 'TopicsDetectionJobPropertiesList')
83
+ UnsupportedLanguageException = Shapes::StructureShape.new(name: 'UnsupportedLanguageException')
84
+
85
+ BatchDetectDominantLanguageItemResult.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
86
+ BatchDetectDominantLanguageItemResult.add_member(:languages, Shapes::ShapeRef.new(shape: ListOfDominantLanguages, location_name: "Languages"))
87
+ BatchDetectDominantLanguageItemResult.struct_class = Types::BatchDetectDominantLanguageItemResult
88
+
89
+ BatchDetectDominantLanguageRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TextList"))
90
+ BatchDetectDominantLanguageRequest.struct_class = Types::BatchDetectDominantLanguageRequest
91
+
92
+ BatchDetectDominantLanguageResponse.add_member(:result_list, Shapes::ShapeRef.new(shape: ListOfDetectDominantLanguageResult, required: true, location_name: "ResultList"))
93
+ BatchDetectDominantLanguageResponse.add_member(:error_list, Shapes::ShapeRef.new(shape: BatchItemErrorList, required: true, location_name: "ErrorList"))
94
+ BatchDetectDominantLanguageResponse.struct_class = Types::BatchDetectDominantLanguageResponse
95
+
96
+ BatchDetectEntitiesItemResult.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
97
+ BatchDetectEntitiesItemResult.add_member(:entities, Shapes::ShapeRef.new(shape: ListOfEntities, location_name: "Entities"))
98
+ BatchDetectEntitiesItemResult.struct_class = Types::BatchDetectEntitiesItemResult
99
+
100
+ BatchDetectEntitiesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TextList"))
101
+ BatchDetectEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "LanguageCode"))
102
+ BatchDetectEntitiesRequest.struct_class = Types::BatchDetectEntitiesRequest
103
+
104
+ BatchDetectEntitiesResponse.add_member(:result_list, Shapes::ShapeRef.new(shape: ListOfDetectEntitiesResult, required: true, location_name: "ResultList"))
105
+ BatchDetectEntitiesResponse.add_member(:error_list, Shapes::ShapeRef.new(shape: BatchItemErrorList, required: true, location_name: "ErrorList"))
106
+ BatchDetectEntitiesResponse.struct_class = Types::BatchDetectEntitiesResponse
107
+
108
+ BatchDetectKeyPhrasesItemResult.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
109
+ BatchDetectKeyPhrasesItemResult.add_member(:key_phrases, Shapes::ShapeRef.new(shape: ListOfKeyPhrases, location_name: "KeyPhrases"))
110
+ BatchDetectKeyPhrasesItemResult.struct_class = Types::BatchDetectKeyPhrasesItemResult
111
+
112
+ BatchDetectKeyPhrasesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TextList"))
113
+ BatchDetectKeyPhrasesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "LanguageCode"))
114
+ BatchDetectKeyPhrasesRequest.struct_class = Types::BatchDetectKeyPhrasesRequest
115
+
116
+ BatchDetectKeyPhrasesResponse.add_member(:result_list, Shapes::ShapeRef.new(shape: ListOfDetectKeyPhrasesResult, required: true, location_name: "ResultList"))
117
+ BatchDetectKeyPhrasesResponse.add_member(:error_list, Shapes::ShapeRef.new(shape: BatchItemErrorList, required: true, location_name: "ErrorList"))
118
+ BatchDetectKeyPhrasesResponse.struct_class = Types::BatchDetectKeyPhrasesResponse
119
+
120
+ BatchDetectSentimentItemResult.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
121
+ BatchDetectSentimentItemResult.add_member(:sentiment, Shapes::ShapeRef.new(shape: SentimentType, location_name: "Sentiment"))
122
+ BatchDetectSentimentItemResult.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "SentimentScore"))
123
+ BatchDetectSentimentItemResult.struct_class = Types::BatchDetectSentimentItemResult
124
+
125
+ BatchDetectSentimentRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TextList"))
126
+ BatchDetectSentimentRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "LanguageCode"))
127
+ BatchDetectSentimentRequest.struct_class = Types::BatchDetectSentimentRequest
128
+
129
+ BatchDetectSentimentResponse.add_member(:result_list, Shapes::ShapeRef.new(shape: ListOfDetectSentimentResult, required: true, location_name: "ResultList"))
130
+ BatchDetectSentimentResponse.add_member(:error_list, Shapes::ShapeRef.new(shape: BatchItemErrorList, required: true, location_name: "ErrorList"))
131
+ BatchDetectSentimentResponse.struct_class = Types::BatchDetectSentimentResponse
132
+
133
+ BatchItemError.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
134
+ BatchItemError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "ErrorCode"))
135
+ BatchItemError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
136
+ BatchItemError.struct_class = Types::BatchItemError
137
+
138
+ BatchItemErrorList.member = Shapes::ShapeRef.new(shape: BatchItemError)
139
+
140
+ DescribeTopicsDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
141
+ DescribeTopicsDetectionJobRequest.struct_class = Types::DescribeTopicsDetectionJobRequest
142
+
143
+ DescribeTopicsDetectionJobResponse.add_member(:topics_detection_job_properties, Shapes::ShapeRef.new(shape: TopicsDetectionJobProperties, location_name: "TopicsDetectionJobProperties"))
144
+ DescribeTopicsDetectionJobResponse.struct_class = Types::DescribeTopicsDetectionJobResponse
145
+
146
+ DetectDominantLanguageRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
147
+ DetectDominantLanguageRequest.struct_class = Types::DetectDominantLanguageRequest
148
+
149
+ DetectDominantLanguageResponse.add_member(:languages, Shapes::ShapeRef.new(shape: ListOfDominantLanguages, location_name: "Languages"))
150
+ DetectDominantLanguageResponse.struct_class = Types::DetectDominantLanguageResponse
151
+
152
+ DetectEntitiesRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
153
+ DetectEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
154
+ DetectEntitiesRequest.struct_class = Types::DetectEntitiesRequest
155
+
156
+ DetectEntitiesResponse.add_member(:entities, Shapes::ShapeRef.new(shape: ListOfEntities, location_name: "Entities"))
157
+ DetectEntitiesResponse.struct_class = Types::DetectEntitiesResponse
158
+
159
+ DetectKeyPhrasesRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
160
+ DetectKeyPhrasesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
161
+ DetectKeyPhrasesRequest.struct_class = Types::DetectKeyPhrasesRequest
162
+
163
+ DetectKeyPhrasesResponse.add_member(:key_phrases, Shapes::ShapeRef.new(shape: ListOfKeyPhrases, location_name: "KeyPhrases"))
164
+ DetectKeyPhrasesResponse.struct_class = Types::DetectKeyPhrasesResponse
165
+
166
+ DetectSentimentRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
167
+ DetectSentimentRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
168
+ DetectSentimentRequest.struct_class = Types::DetectSentimentRequest
169
+
170
+ DetectSentimentResponse.add_member(:sentiment, Shapes::ShapeRef.new(shape: SentimentType, location_name: "Sentiment"))
171
+ DetectSentimentResponse.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "SentimentScore"))
172
+ DetectSentimentResponse.struct_class = Types::DetectSentimentResponse
173
+
174
+ DominantLanguage.add_member(:language_code, Shapes::ShapeRef.new(shape: String, location_name: "LanguageCode"))
175
+ DominantLanguage.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
176
+ DominantLanguage.struct_class = Types::DominantLanguage
177
+
178
+ Entity.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
179
+ Entity.add_member(:type, Shapes::ShapeRef.new(shape: EntityType, location_name: "Type"))
180
+ Entity.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
181
+ Entity.add_member(:begin_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "BeginOffset"))
182
+ Entity.add_member(:end_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "EndOffset"))
183
+ Entity.struct_class = Types::Entity
184
+
185
+ InputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
186
+ InputDataConfig.add_member(:input_format, Shapes::ShapeRef.new(shape: InputFormat, location_name: "InputFormat"))
187
+ InputDataConfig.struct_class = Types::InputDataConfig
188
+
189
+ KeyPhrase.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
190
+ KeyPhrase.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
191
+ KeyPhrase.add_member(:begin_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "BeginOffset"))
192
+ KeyPhrase.add_member(:end_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "EndOffset"))
193
+ KeyPhrase.struct_class = Types::KeyPhrase
194
+
195
+ ListOfDetectDominantLanguageResult.member = Shapes::ShapeRef.new(shape: BatchDetectDominantLanguageItemResult)
196
+
197
+ ListOfDetectEntitiesResult.member = Shapes::ShapeRef.new(shape: BatchDetectEntitiesItemResult)
198
+
199
+ ListOfDetectKeyPhrasesResult.member = Shapes::ShapeRef.new(shape: BatchDetectKeyPhrasesItemResult)
200
+
201
+ ListOfDetectSentimentResult.member = Shapes::ShapeRef.new(shape: BatchDetectSentimentItemResult)
202
+
203
+ ListOfDominantLanguages.member = Shapes::ShapeRef.new(shape: DominantLanguage)
204
+
205
+ ListOfEntities.member = Shapes::ShapeRef.new(shape: Entity)
206
+
207
+ ListOfKeyPhrases.member = Shapes::ShapeRef.new(shape: KeyPhrase)
208
+
209
+ ListTopicsDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: TopicsDetectionJobFilter, location_name: "Filter"))
210
+ ListTopicsDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
211
+ ListTopicsDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
212
+ ListTopicsDetectionJobsRequest.struct_class = Types::ListTopicsDetectionJobsRequest
213
+
214
+ ListTopicsDetectionJobsResponse.add_member(:topics_detection_job_properties_list, Shapes::ShapeRef.new(shape: TopicsDetectionJobPropertiesList, location_name: "TopicsDetectionJobPropertiesList"))
215
+ ListTopicsDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
216
+ ListTopicsDetectionJobsResponse.struct_class = Types::ListTopicsDetectionJobsResponse
217
+
218
+ OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
219
+ OutputDataConfig.struct_class = Types::OutputDataConfig
220
+
221
+ SentimentScore.add_member(:positive, Shapes::ShapeRef.new(shape: Float, location_name: "Positive"))
222
+ SentimentScore.add_member(:negative, Shapes::ShapeRef.new(shape: Float, location_name: "Negative"))
223
+ SentimentScore.add_member(:neutral, Shapes::ShapeRef.new(shape: Float, location_name: "Neutral"))
224
+ SentimentScore.add_member(:mixed, Shapes::ShapeRef.new(shape: Float, location_name: "Mixed"))
225
+ SentimentScore.struct_class = Types::SentimentScore
226
+
227
+ StartTopicsDetectionJobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
228
+ StartTopicsDetectionJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "OutputDataConfig"))
229
+ StartTopicsDetectionJobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
230
+ StartTopicsDetectionJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
231
+ StartTopicsDetectionJobRequest.add_member(:number_of_topics, Shapes::ShapeRef.new(shape: NumberOfTopicsInteger, location_name: "NumberOfTopics"))
232
+ StartTopicsDetectionJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
233
+ StartTopicsDetectionJobRequest.struct_class = Types::StartTopicsDetectionJobRequest
234
+
235
+ StartTopicsDetectionJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
236
+ StartTopicsDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
237
+ StartTopicsDetectionJobResponse.struct_class = Types::StartTopicsDetectionJobResponse
238
+
239
+ StringList.member = Shapes::ShapeRef.new(shape: String)
240
+
241
+ TopicsDetectionJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
242
+ TopicsDetectionJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
243
+ TopicsDetectionJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
244
+ TopicsDetectionJobFilter.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeAfter"))
245
+ TopicsDetectionJobFilter.struct_class = Types::TopicsDetectionJobFilter
246
+
247
+ TopicsDetectionJobProperties.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
248
+ TopicsDetectionJobProperties.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
249
+ TopicsDetectionJobProperties.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
250
+ TopicsDetectionJobProperties.add_member(:message, Shapes::ShapeRef.new(shape: AnyLengthString, location_name: "Message"))
251
+ TopicsDetectionJobProperties.add_member(:submit_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTime"))
252
+ TopicsDetectionJobProperties.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
253
+ TopicsDetectionJobProperties.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
254
+ TopicsDetectionJobProperties.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, location_name: "OutputDataConfig"))
255
+ TopicsDetectionJobProperties.add_member(:number_of_topics, Shapes::ShapeRef.new(shape: Integer, location_name: "NumberOfTopics"))
256
+ TopicsDetectionJobProperties.struct_class = Types::TopicsDetectionJobProperties
257
+
258
+ TopicsDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: TopicsDetectionJobProperties)
259
+
260
+
261
+ # @api private
262
+ API = Seahorse::Model::Api.new.tap do |api|
263
+
264
+ api.version = "2017-11-27"
265
+
266
+ api.metadata = {
267
+ "endpointPrefix" => "comprehend",
268
+ "jsonVersion" => "1.1",
269
+ "protocol" => "json",
270
+ "serviceFullName" => "Amazon Comprehend",
271
+ "signatureVersion" => "v4",
272
+ "signingName" => "comprehend",
273
+ "targetPrefix" => "Comprehend_20171127",
274
+ }
275
+
276
+ api.add_operation(:batch_detect_dominant_language, Seahorse::Model::Operation.new.tap do |o|
277
+ o.name = "BatchDetectDominantLanguage"
278
+ o.http_method = "POST"
279
+ o.http_request_uri = "/"
280
+ o.input = Shapes::ShapeRef.new(shape: BatchDetectDominantLanguageRequest)
281
+ o.output = Shapes::ShapeRef.new(shape: BatchDetectDominantLanguageResponse)
282
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
283
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
284
+ o.errors << Shapes::ShapeRef.new(shape: BatchSizeLimitExceededException)
285
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
286
+ end)
287
+
288
+ api.add_operation(:batch_detect_entities, Seahorse::Model::Operation.new.tap do |o|
289
+ o.name = "BatchDetectEntities"
290
+ o.http_method = "POST"
291
+ o.http_request_uri = "/"
292
+ o.input = Shapes::ShapeRef.new(shape: BatchDetectEntitiesRequest)
293
+ o.output = Shapes::ShapeRef.new(shape: BatchDetectEntitiesResponse)
294
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
295
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
296
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
297
+ o.errors << Shapes::ShapeRef.new(shape: BatchSizeLimitExceededException)
298
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
299
+ end)
300
+
301
+ api.add_operation(:batch_detect_key_phrases, Seahorse::Model::Operation.new.tap do |o|
302
+ o.name = "BatchDetectKeyPhrases"
303
+ o.http_method = "POST"
304
+ o.http_request_uri = "/"
305
+ o.input = Shapes::ShapeRef.new(shape: BatchDetectKeyPhrasesRequest)
306
+ o.output = Shapes::ShapeRef.new(shape: BatchDetectKeyPhrasesResponse)
307
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
308
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
309
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
310
+ o.errors << Shapes::ShapeRef.new(shape: BatchSizeLimitExceededException)
311
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
312
+ end)
313
+
314
+ api.add_operation(:batch_detect_sentiment, Seahorse::Model::Operation.new.tap do |o|
315
+ o.name = "BatchDetectSentiment"
316
+ o.http_method = "POST"
317
+ o.http_request_uri = "/"
318
+ o.input = Shapes::ShapeRef.new(shape: BatchDetectSentimentRequest)
319
+ o.output = Shapes::ShapeRef.new(shape: BatchDetectSentimentResponse)
320
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
321
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
322
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
323
+ o.errors << Shapes::ShapeRef.new(shape: BatchSizeLimitExceededException)
324
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
325
+ end)
326
+
327
+ api.add_operation(:describe_topics_detection_job, Seahorse::Model::Operation.new.tap do |o|
328
+ o.name = "DescribeTopicsDetectionJob"
329
+ o.http_method = "POST"
330
+ o.http_request_uri = "/"
331
+ o.input = Shapes::ShapeRef.new(shape: DescribeTopicsDetectionJobRequest)
332
+ o.output = Shapes::ShapeRef.new(shape: DescribeTopicsDetectionJobResponse)
333
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
334
+ o.errors << Shapes::ShapeRef.new(shape: JobNotFoundException)
335
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
336
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
337
+ end)
338
+
339
+ api.add_operation(:detect_dominant_language, Seahorse::Model::Operation.new.tap do |o|
340
+ o.name = "DetectDominantLanguage"
341
+ o.http_method = "POST"
342
+ o.http_request_uri = "/"
343
+ o.input = Shapes::ShapeRef.new(shape: DetectDominantLanguageRequest)
344
+ o.output = Shapes::ShapeRef.new(shape: DetectDominantLanguageResponse)
345
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
346
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
347
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
348
+ end)
349
+
350
+ api.add_operation(:detect_entities, Seahorse::Model::Operation.new.tap do |o|
351
+ o.name = "DetectEntities"
352
+ o.http_method = "POST"
353
+ o.http_request_uri = "/"
354
+ o.input = Shapes::ShapeRef.new(shape: DetectEntitiesRequest)
355
+ o.output = Shapes::ShapeRef.new(shape: DetectEntitiesResponse)
356
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
357
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
358
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
359
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
360
+ end)
361
+
362
+ api.add_operation(:detect_key_phrases, Seahorse::Model::Operation.new.tap do |o|
363
+ o.name = "DetectKeyPhrases"
364
+ o.http_method = "POST"
365
+ o.http_request_uri = "/"
366
+ o.input = Shapes::ShapeRef.new(shape: DetectKeyPhrasesRequest)
367
+ o.output = Shapes::ShapeRef.new(shape: DetectKeyPhrasesResponse)
368
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
369
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
370
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
371
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
372
+ end)
373
+
374
+ api.add_operation(:detect_sentiment, Seahorse::Model::Operation.new.tap do |o|
375
+ o.name = "DetectSentiment"
376
+ o.http_method = "POST"
377
+ o.http_request_uri = "/"
378
+ o.input = Shapes::ShapeRef.new(shape: DetectSentimentRequest)
379
+ o.output = Shapes::ShapeRef.new(shape: DetectSentimentResponse)
380
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
381
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
382
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
383
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
384
+ end)
385
+
386
+ api.add_operation(:list_topics_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
387
+ o.name = "ListTopicsDetectionJobs"
388
+ o.http_method = "POST"
389
+ o.http_request_uri = "/"
390
+ o.input = Shapes::ShapeRef.new(shape: ListTopicsDetectionJobsRequest)
391
+ o.output = Shapes::ShapeRef.new(shape: ListTopicsDetectionJobsResponse)
392
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
393
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
394
+ o.errors << Shapes::ShapeRef.new(shape: InvalidFilterException)
395
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
396
+ o[:pager] = Aws::Pager.new(
397
+ limit_key: "max_results",
398
+ tokens: {
399
+ "next_token" => "next_token"
400
+ }
401
+ )
402
+ end)
403
+
404
+ api.add_operation(:start_topics_detection_job, Seahorse::Model::Operation.new.tap do |o|
405
+ o.name = "StartTopicsDetectionJob"
406
+ o.http_method = "POST"
407
+ o.http_request_uri = "/"
408
+ o.input = Shapes::ShapeRef.new(shape: StartTopicsDetectionJobRequest)
409
+ o.output = Shapes::ShapeRef.new(shape: StartTopicsDetectionJobResponse)
410
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
411
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
412
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
413
+ end)
414
+ end
415
+
416
+ end
417
+ end
@@ -0,0 +1,14 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Comprehend
9
+ module Errors
10
+
11
+ extend Aws::Errors::DynamicErrors
12
+
13
+ end
14
+ end
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Comprehend
9
+ class Resource
10
+
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
16
+
17
+ # @return [Client]
18
+ def client
19
+ @client
20
+ end
21
+
22
+ end
23
+ end