@@ -133,6 +133,19 @@ defmodule AWS.Comprehend do
133133 Request . request_post ( client , meta , "ContainsPiiEntities" , input , options )
134134 end
135135
136+ @ doc """
137+ Creates a dataset to upload training or test data for a model associated with a
138+ flywheel.
139+
140+ For more information about datasets, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
141+ in the *Amazon Comprehend Developer Guide*.
142+ """
143+ def create_dataset ( % Client { } = client , input , options \\ [ ] ) do
144+ meta = metadata ( )
145+
146+ Request . request_post ( client , meta , "CreateDataset" , input , options )
147+ end
148+
136149 @ doc """
137150 Creates a new document classifier that you can use to categorize documents.
138151
@@ -162,14 +175,41 @@ defmodule AWS.Comprehend do
162175 Creates an entity recognizer using submitted files.
163176
164177 After your `CreateEntityRecognizer` request is submitted, you can check job
165- status using the API.
178+ status using the `DescribeEntityRecognizer` API.
166179 """
167180 def create_entity_recognizer ( % Client { } = client , input , options \\ [ ] ) do
168181 meta = metadata ( )
169182
170183 Request . request_post ( client , meta , "CreateEntityRecognizer" , input , options )
171184 end
172185
186+ @ doc """
187+ A flywheel is an AWS resource that orchestrates the ongoing training of a model
188+ for custom classification or custom entity recognition.
189+
190+ You can create a flywheel to start with an existing trained model, or Comprehend
191+ can create and train a new model.
192+
193+ When you create the flywheel, Comprehend creates a data lake in your account.
194+ The data lake holds the training data and test data for all versions of the
195+ model.
196+
197+ To use a flywheel with an existing trained model, you specify the active model
198+ version. Comprehend copies the model's training data and test data into the
199+ flywheel's data lake.
200+
201+ To use the flywheel with a new model, you need to provide a dataset for training
202+ data (and optional test data) when you create the flywheel.
203+
204+ For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
205+ in the *Amazon Comprehend Developer Guide*.
206+ """
207+ def create_flywheel ( % Client { } = client , input , options \\ [ ] ) do
208+ meta = metadata ( )
209+
210+ Request . request_post ( client , meta , "CreateFlywheel" , input , options )
211+ end
212+
173213 @ doc """
174214 Deletes a previously created document classifier
175215
@@ -218,6 +258,21 @@ defmodule AWS.Comprehend do
218258 Request . request_post ( client , meta , "DeleteEntityRecognizer" , input , options )
219259 end
220260
261+ @ doc """
262+ Deletes a flywheel.
263+
264+ When you delete the flywheel, Amazon Comprehend does not delete the data lake or
265+ the model associated with the flywheel.
266+
267+ For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
268+ in the *Amazon Comprehend Developer Guide*.
269+ """
270+ def delete_flywheel ( % Client { } = client , input , options \\ [ ] ) do
271+ meta = metadata ( )
272+
273+ Request . request_post ( client , meta , "DeleteFlywheel" , input , options )
274+ end
275+
221276 @ doc """
222277 Deletes a resource-based policy that is attached to a custom model.
223278 """
@@ -227,6 +282,18 @@ defmodule AWS.Comprehend do
227282 Request . request_post ( client , meta , "DeleteResourcePolicy" , input , options )
228283 end
229284
285+ @ doc """
286+ Returns information about the dataset that you specify.
287+
288+ For more information about datasets, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
289+ in the *Amazon Comprehend Developer Guide*.
290+ """
291+ def describe_dataset ( % Client { } = client , input , options \\ [ ] ) do
292+ meta = metadata ( )
293+
294+ Request . request_post ( client , meta , "DescribeDataset" , input , options )
295+ end
296+
230297 @ doc """
231298 Gets the properties associated with a document classification job.
232299
@@ -300,6 +367,30 @@ defmodule AWS.Comprehend do
300367 Request . request_post ( client , meta , "DescribeEventsDetectionJob" , input , options )
301368 end
302369
370+ @ doc """
371+ Provides configuration information about the flywheel.
372+
373+ For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
374+ in the *Amazon Comprehend Developer Guide*.
375+ """
376+ def describe_flywheel ( % Client { } = client , input , options \\ [ ] ) do
377+ meta = metadata ( )
378+
379+ Request . request_post ( client , meta , "DescribeFlywheel" , input , options )
380+ end
381+
382+ @ doc """
383+ Retrieve the configuration properties of a flywheel iteration.
384+
385+ For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
386+ in the *Amazon Comprehend Developer Guide*.
387+ """
388+ def describe_flywheel_iteration ( % Client { } = client , input , options \\ [ ] ) do
389+ meta = metadata ( )
390+
391+ Request . request_post ( client , meta , "DescribeFlywheelIteration" , input , options )
392+ end
393+
303394 @ doc """
304395 Gets the properties associated with a key phrases detection job.
305396
@@ -476,6 +567,18 @@ defmodule AWS.Comprehend do
476567 Request . request_post ( client , meta , "ImportModel" , input , options )
477568 end
478569
570+ @ doc """
571+ List the datasets that you have configured in this region.
572+
573+ For more information about datasets, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
574+ in the *Amazon Comprehend Developer Guide*.
575+ """
576+ def list_datasets ( % Client { } = client , input , options \\ [ ] ) do
577+ meta = metadata ( )
578+
579+ Request . request_post ( client , meta , "ListDatasets" , input , options )
580+ end
581+
479582 @ doc """
480583 Gets a list of the documentation classification jobs that you have submitted.
481584 """
@@ -567,6 +670,27 @@ defmodule AWS.Comprehend do
567670 Request . request_post ( client , meta , "ListEventsDetectionJobs" , input , options )
568671 end
569672
673+ @ doc """
674+ Information about the history of a flywheel iteration.
675+
676+ For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
677+ in the *Amazon Comprehend Developer Guide*.
678+ """
679+ def list_flywheel_iteration_history ( % Client { } = client , input , options \\ [ ] ) do
680+ meta = metadata ( )
681+
682+ Request . request_post ( client , meta , "ListFlywheelIterationHistory" , input , options )
683+ end
684+
685+ @ doc """
686+ Gets a list of the flywheels that you have created.
687+ """
688+ def list_flywheels ( % Client { } = client , input , options \\ [ ] ) do
689+ meta = metadata ( )
690+
691+ Request . request_post ( client , meta , "ListFlywheels" , input , options )
692+ end
693+
570694 @ doc """
571695 Get a list of key phrase detection jobs that you have submitted.
572696 """
@@ -636,7 +760,8 @@ defmodule AWS.Comprehend do
636760 @ doc """
637761 Starts an asynchronous document classification job.
638762
639- Use the operation to track the progress of the job.
763+ Use the `DescribeDocumentClassificationJob` operation to track the progress of
764+ the job.
640765 """
641766 def start_document_classification_job ( % Client { } = client , input , options \\ [ ] ) do
642767 meta = metadata ( )
@@ -681,6 +806,19 @@ defmodule AWS.Comprehend do
681806 Request . request_post ( client , meta , "StartEventsDetectionJob" , input , options )
682807 end
683808
809+ @ doc """
810+ Start the flywheel iteration.This operation uses any new datasets to train a new
811+ model version.
812+
813+ For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
814+ in the *Amazon Comprehend Developer Guide*.
815+ """
816+ def start_flywheel_iteration ( % Client { } = client , input , options \\ [ ] ) do
817+ meta = metadata ( )
818+
819+ Request . request_post ( client , meta , "StartFlywheelIteration" , input , options )
820+ end
821+
684822 @ doc """
685823 Starts an asynchronous key phrase detection job for a collection of documents.
686824
@@ -716,7 +854,8 @@ defmodule AWS.Comprehend do
716854 Starts an asynchronous targeted sentiment detection job for a collection of
717855 documents.
718856
719- Use the operation to track the status of a job.
857+ Use the `DescribeTargetedSentimentDetectionJob` operation to track the status of
858+ a job.
720859 """
721860 def start_targeted_sentiment_detection_job ( % Client { } = client , input , options \\ [ ] ) do
722861 meta = metadata ( )
@@ -920,4 +1059,13 @@ defmodule AWS.Comprehend do
9201059
9211060 Request . request_post ( client , meta , "UpdateEndpoint" , input , options )
9221061 end
1062+
1063+ @ doc """
1064+ Update the configuration information for an existing flywheel.
1065+ """
1066+ def update_flywheel ( % Client { } = client , input , options \\ [ ] ) do
1067+ meta = metadata ( )
1068+
1069+ Request . request_post ( client , meta , "UpdateFlywheel" , input , options )
1070+ end
9231071end
0 commit comments