@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonLookoutforVisionAsyncClient extends AmazonLookoutforVisionClient implements AmazonLookoutforVisionAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
This is the Amazon Lookout for Vision API Reference. It provides descriptions of actions, data types, common parameters, and common errors.
Amazon Lookout for Vision enables you to find visual defects in industrial products, accurately and at scale. It uses computer vision to identify missing components in an industrial product, damage to vehicles or structures, irregularities in production lines, and even minuscule defects in silicon wafers — or any other physical item where quality is important such as a missing capacitor on printed circuit boards.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
builder, createDataset, createModel, createProject, deleteDataset, deleteModel, deleteProject, describeDataset, describeModel, describeModelPackagingJob, describeProject, detectAnomalies, getCachedResponseMetadata, listDatasetEntries, listModelPackagingJobs, listModels, listProjects, listTagsForResource, startModel, startModelPackagingJob, stopModel, tagResource, untagResource, updateDatasetEntries
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDataset, createModel, createProject, deleteDataset, deleteModel, deleteProject, describeDataset, describeModel, describeModelPackagingJob, describeProject, detectAnomalies, getCachedResponseMetadata, listDatasetEntries, listModelPackagingJobs, listModels, listProjects, listTagsForResource, startModel, startModelPackagingJob, stopModel, tagResource, untagResource, updateDatasetEntries
public static AmazonLookoutforVisionAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateDatasetResult> createDatasetAsync(CreateDatasetRequest request)
AmazonLookoutforVisionAsync
Creates a new dataset in an Amazon Lookout for Vision project. CreateDataset
can create a training
or a test dataset from a valid dataset source (DatasetSource
).
If you want a single dataset project, specify train
for the value of DatasetType
.
To have a project with separate training and test datasets, call CreateDataset
twice. On the first
call, specify train
for the value of DatasetType
. On the second call, specify
test
for the value of DatasetType
.
This operation requires permissions to perform the lookoutvision:CreateDataset
operation.
createDatasetAsync
in interface AmazonLookoutforVisionAsync
public Future<CreateDatasetResult> createDatasetAsync(CreateDatasetRequest request, AsyncHandler<CreateDatasetRequest,CreateDatasetResult> asyncHandler)
AmazonLookoutforVisionAsync
Creates a new dataset in an Amazon Lookout for Vision project. CreateDataset
can create a training
or a test dataset from a valid dataset source (DatasetSource
).
If you want a single dataset project, specify train
for the value of DatasetType
.
To have a project with separate training and test datasets, call CreateDataset
twice. On the first
call, specify train
for the value of DatasetType
. On the second call, specify
test
for the value of DatasetType
.
This operation requires permissions to perform the lookoutvision:CreateDataset
operation.
createDatasetAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateModelResult> createModelAsync(CreateModelRequest request)
AmazonLookoutforVisionAsync
Creates a new version of a model within an an Amazon Lookout for Vision project. CreateModel
is an
asynchronous operation in which Amazon Lookout for Vision trains, tests, and evaluates a new version of a model.
To get the current status, check the Status
field returned in the response from
DescribeModel.
If the project has a single dataset, Amazon Lookout for Vision internally splits the dataset to create a training and a test dataset. If the project has a training and a test dataset, Lookout for Vision uses the respective datasets to train and test the model.
After training completes, the evaluation metrics are stored at the location specified in
OutputConfig
.
This operation requires permissions to perform the lookoutvision:CreateModel
operation. If you want
to tag your model, you also require permission to the lookoutvision:TagResource
operation.
createModelAsync
in interface AmazonLookoutforVisionAsync
public Future<CreateModelResult> createModelAsync(CreateModelRequest request, AsyncHandler<CreateModelRequest,CreateModelResult> asyncHandler)
AmazonLookoutforVisionAsync
Creates a new version of a model within an an Amazon Lookout for Vision project. CreateModel
is an
asynchronous operation in which Amazon Lookout for Vision trains, tests, and evaluates a new version of a model.
To get the current status, check the Status
field returned in the response from
DescribeModel.
If the project has a single dataset, Amazon Lookout for Vision internally splits the dataset to create a training and a test dataset. If the project has a training and a test dataset, Lookout for Vision uses the respective datasets to train and test the model.
After training completes, the evaluation metrics are stored at the location specified in
OutputConfig
.
This operation requires permissions to perform the lookoutvision:CreateModel
operation. If you want
to tag your model, you also require permission to the lookoutvision:TagResource
operation.
createModelAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateProjectResult> createProjectAsync(CreateProjectRequest request)
AmazonLookoutforVisionAsync
Creates an empty Amazon Lookout for Vision project. After you create the project, add a dataset by calling CreateDataset.
This operation requires permissions to perform the lookoutvision:CreateProject
operation.
createProjectAsync
in interface AmazonLookoutforVisionAsync
public Future<CreateProjectResult> createProjectAsync(CreateProjectRequest request, AsyncHandler<CreateProjectRequest,CreateProjectResult> asyncHandler)
AmazonLookoutforVisionAsync
Creates an empty Amazon Lookout for Vision project. After you create the project, add a dataset by calling CreateDataset.
This operation requires permissions to perform the lookoutvision:CreateProject
operation.
createProjectAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteDatasetResult> deleteDatasetAsync(DeleteDatasetRequest request)
AmazonLookoutforVisionAsync
Deletes an existing Amazon Lookout for Vision dataset
.
If your the project has a single dataset, you must create a new dataset before you can create a model.
If you project has a training dataset and a test dataset consider the following.
If you delete the test dataset, your project reverts to a single dataset project. If you then train the model, Amazon Lookout for Vision internally splits the remaining dataset into a training and test dataset.
If you delete the training dataset, you must create a training dataset before you can create a model.
This operation requires permissions to perform the lookoutvision:DeleteDataset
operation.
deleteDatasetAsync
in interface AmazonLookoutforVisionAsync
public Future<DeleteDatasetResult> deleteDatasetAsync(DeleteDatasetRequest request, AsyncHandler<DeleteDatasetRequest,DeleteDatasetResult> asyncHandler)
AmazonLookoutforVisionAsync
Deletes an existing Amazon Lookout for Vision dataset
.
If your the project has a single dataset, you must create a new dataset before you can create a model.
If you project has a training dataset and a test dataset consider the following.
If you delete the test dataset, your project reverts to a single dataset project. If you then train the model, Amazon Lookout for Vision internally splits the remaining dataset into a training and test dataset.
If you delete the training dataset, you must create a training dataset before you can create a model.
This operation requires permissions to perform the lookoutvision:DeleteDataset
operation.
deleteDatasetAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteModelResult> deleteModelAsync(DeleteModelRequest request)
AmazonLookoutforVisionAsync
Deletes an Amazon Lookout for Vision model. You can't delete a running model. To stop a running model, use the StopModel operation.
It might take a few seconds to delete a model. To determine if a model has been deleted, call ListModels
and check if the version of the model (ModelVersion
) is in the Models
array.
This operation requires permissions to perform the lookoutvision:DeleteModel
operation.
deleteModelAsync
in interface AmazonLookoutforVisionAsync
public Future<DeleteModelResult> deleteModelAsync(DeleteModelRequest request, AsyncHandler<DeleteModelRequest,DeleteModelResult> asyncHandler)
AmazonLookoutforVisionAsync
Deletes an Amazon Lookout for Vision model. You can't delete a running model. To stop a running model, use the StopModel operation.
It might take a few seconds to delete a model. To determine if a model has been deleted, call ListModels
and check if the version of the model (ModelVersion
) is in the Models
array.
This operation requires permissions to perform the lookoutvision:DeleteModel
operation.
deleteModelAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteProjectResult> deleteProjectAsync(DeleteProjectRequest request)
AmazonLookoutforVisionAsync
Deletes an Amazon Lookout for Vision project.
To delete a project, you must first delete each version of the model associated with the project. To delete a model use the DeleteModel operation.
You also have to delete the dataset(s) associated with the model. For more information, see DeleteDataset. The images referenced by the training and test datasets aren't deleted.
This operation requires permissions to perform the lookoutvision:DeleteProject
operation.
deleteProjectAsync
in interface AmazonLookoutforVisionAsync
public Future<DeleteProjectResult> deleteProjectAsync(DeleteProjectRequest request, AsyncHandler<DeleteProjectRequest,DeleteProjectResult> asyncHandler)
AmazonLookoutforVisionAsync
Deletes an Amazon Lookout for Vision project.
To delete a project, you must first delete each version of the model associated with the project. To delete a model use the DeleteModel operation.
You also have to delete the dataset(s) associated with the model. For more information, see DeleteDataset. The images referenced by the training and test datasets aren't deleted.
This operation requires permissions to perform the lookoutvision:DeleteProject
operation.
deleteProjectAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeDatasetResult> describeDatasetAsync(DescribeDatasetRequest request)
AmazonLookoutforVisionAsync
Describe an Amazon Lookout for Vision dataset.
This operation requires permissions to perform the lookoutvision:DescribeDataset
operation.
describeDatasetAsync
in interface AmazonLookoutforVisionAsync
public Future<DescribeDatasetResult> describeDatasetAsync(DescribeDatasetRequest request, AsyncHandler<DescribeDatasetRequest,DescribeDatasetResult> asyncHandler)
AmazonLookoutforVisionAsync
Describe an Amazon Lookout for Vision dataset.
This operation requires permissions to perform the lookoutvision:DescribeDataset
operation.
describeDatasetAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeModelResult> describeModelAsync(DescribeModelRequest request)
AmazonLookoutforVisionAsync
Describes a version of an Amazon Lookout for Vision model.
This operation requires permissions to perform the lookoutvision:DescribeModel
operation.
describeModelAsync
in interface AmazonLookoutforVisionAsync
public Future<DescribeModelResult> describeModelAsync(DescribeModelRequest request, AsyncHandler<DescribeModelRequest,DescribeModelResult> asyncHandler)
AmazonLookoutforVisionAsync
Describes a version of an Amazon Lookout for Vision model.
This operation requires permissions to perform the lookoutvision:DescribeModel
operation.
describeModelAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeModelPackagingJobResult> describeModelPackagingJobAsync(DescribeModelPackagingJobRequest request)
AmazonLookoutforVisionAsync
Describes an Amazon Lookout for Vision model packaging job.
This operation requires permissions to perform the lookoutvision:DescribeModelPackagingJob
operation.
For more information, see Using your Amazon Lookout for Vision model on an edge device in the Amazon Lookout for Vision Developer Guide.
describeModelPackagingJobAsync
in interface AmazonLookoutforVisionAsync
public Future<DescribeModelPackagingJobResult> describeModelPackagingJobAsync(DescribeModelPackagingJobRequest request, AsyncHandler<DescribeModelPackagingJobRequest,DescribeModelPackagingJobResult> asyncHandler)
AmazonLookoutforVisionAsync
Describes an Amazon Lookout for Vision model packaging job.
This operation requires permissions to perform the lookoutvision:DescribeModelPackagingJob
operation.
For more information, see Using your Amazon Lookout for Vision model on an edge device in the Amazon Lookout for Vision Developer Guide.
describeModelPackagingJobAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeProjectResult> describeProjectAsync(DescribeProjectRequest request)
AmazonLookoutforVisionAsync
Describes an Amazon Lookout for Vision project.
This operation requires permissions to perform the lookoutvision:DescribeProject
operation.
describeProjectAsync
in interface AmazonLookoutforVisionAsync
public Future<DescribeProjectResult> describeProjectAsync(DescribeProjectRequest request, AsyncHandler<DescribeProjectRequest,DescribeProjectResult> asyncHandler)
AmazonLookoutforVisionAsync
Describes an Amazon Lookout for Vision project.
This operation requires permissions to perform the lookoutvision:DescribeProject
operation.
describeProjectAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetectAnomaliesResult> detectAnomaliesAsync(DetectAnomaliesRequest request)
AmazonLookoutforVisionAsync
Detects anomalies in an image that you supply.
The response from DetectAnomalies
includes a boolean prediction that the image contains one or more
anomalies and a confidence value for the prediction. If the model is an image segmentation model, the response
also includes segmentation information for each type of anomaly found in the image.
Before calling DetectAnomalies
, you must first start your model with the StartModel
operation. You are charged for the amount of time, in minutes, that a model runs and for the number of anomaly
detection units that your model uses. If you are not using a model, use the StopModel operation to stop
your model.
For more information, see Detecting anomalies in an image in the Amazon Lookout for Vision developer guide.
This operation requires permissions to perform the lookoutvision:DetectAnomalies
operation.
detectAnomaliesAsync
in interface AmazonLookoutforVisionAsync
public Future<DetectAnomaliesResult> detectAnomaliesAsync(DetectAnomaliesRequest request, AsyncHandler<DetectAnomaliesRequest,DetectAnomaliesResult> asyncHandler)
AmazonLookoutforVisionAsync
Detects anomalies in an image that you supply.
The response from DetectAnomalies
includes a boolean prediction that the image contains one or more
anomalies and a confidence value for the prediction. If the model is an image segmentation model, the response
also includes segmentation information for each type of anomaly found in the image.
Before calling DetectAnomalies
, you must first start your model with the StartModel
operation. You are charged for the amount of time, in minutes, that a model runs and for the number of anomaly
detection units that your model uses. If you are not using a model, use the StopModel operation to stop
your model.
For more information, see Detecting anomalies in an image in the Amazon Lookout for Vision developer guide.
This operation requires permissions to perform the lookoutvision:DetectAnomalies
operation.
detectAnomaliesAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDatasetEntriesResult> listDatasetEntriesAsync(ListDatasetEntriesRequest request)
AmazonLookoutforVisionAsync
Lists the JSON Lines within a dataset. An Amazon Lookout for Vision JSON Line contains the anomaly information for a single image, including the image location and the assigned label.
This operation requires permissions to perform the lookoutvision:ListDatasetEntries
operation.
listDatasetEntriesAsync
in interface AmazonLookoutforVisionAsync
public Future<ListDatasetEntriesResult> listDatasetEntriesAsync(ListDatasetEntriesRequest request, AsyncHandler<ListDatasetEntriesRequest,ListDatasetEntriesResult> asyncHandler)
AmazonLookoutforVisionAsync
Lists the JSON Lines within a dataset. An Amazon Lookout for Vision JSON Line contains the anomaly information for a single image, including the image location and the assigned label.
This operation requires permissions to perform the lookoutvision:ListDatasetEntries
operation.
listDatasetEntriesAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListModelPackagingJobsResult> listModelPackagingJobsAsync(ListModelPackagingJobsRequest request)
AmazonLookoutforVisionAsync
Lists the model packaging jobs created for an Amazon Lookout for Vision project.
This operation requires permissions to perform the lookoutvision:ListModelPackagingJobs
operation.
For more information, see Using your Amazon Lookout for Vision model on an edge device in the Amazon Lookout for Vision Developer Guide.
listModelPackagingJobsAsync
in interface AmazonLookoutforVisionAsync
public Future<ListModelPackagingJobsResult> listModelPackagingJobsAsync(ListModelPackagingJobsRequest request, AsyncHandler<ListModelPackagingJobsRequest,ListModelPackagingJobsResult> asyncHandler)
AmazonLookoutforVisionAsync
Lists the model packaging jobs created for an Amazon Lookout for Vision project.
This operation requires permissions to perform the lookoutvision:ListModelPackagingJobs
operation.
For more information, see Using your Amazon Lookout for Vision model on an edge device in the Amazon Lookout for Vision Developer Guide.
listModelPackagingJobsAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListModelsResult> listModelsAsync(ListModelsRequest request)
AmazonLookoutforVisionAsync
Lists the versions of a model in an Amazon Lookout for Vision project.
The ListModels
operation is eventually consistent. Recent calls to CreateModel
might
take a while to appear in the response from ListProjects
.
This operation requires permissions to perform the lookoutvision:ListModels
operation.
listModelsAsync
in interface AmazonLookoutforVisionAsync
public Future<ListModelsResult> listModelsAsync(ListModelsRequest request, AsyncHandler<ListModelsRequest,ListModelsResult> asyncHandler)
AmazonLookoutforVisionAsync
Lists the versions of a model in an Amazon Lookout for Vision project.
The ListModels
operation is eventually consistent. Recent calls to CreateModel
might
take a while to appear in the response from ListProjects
.
This operation requires permissions to perform the lookoutvision:ListModels
operation.
listModelsAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListProjectsResult> listProjectsAsync(ListProjectsRequest request)
AmazonLookoutforVisionAsync
Lists the Amazon Lookout for Vision projects in your AWS account that are in the AWS Region in which you call
ListProjects
.
The ListProjects
operation is eventually consistent. Recent calls to CreateProject
and
DeleteProject
might take a while to appear in the response from ListProjects
.
This operation requires permissions to perform the lookoutvision:ListProjects
operation.
listProjectsAsync
in interface AmazonLookoutforVisionAsync
public Future<ListProjectsResult> listProjectsAsync(ListProjectsRequest request, AsyncHandler<ListProjectsRequest,ListProjectsResult> asyncHandler)
AmazonLookoutforVisionAsync
Lists the Amazon Lookout for Vision projects in your AWS account that are in the AWS Region in which you call
ListProjects
.
The ListProjects
operation is eventually consistent. Recent calls to CreateProject
and
DeleteProject
might take a while to appear in the response from ListProjects
.
This operation requires permissions to perform the lookoutvision:ListProjects
operation.
listProjectsAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonLookoutforVisionAsync
Returns a list of tags attached to the specified Amazon Lookout for Vision model.
This operation requires permissions to perform the lookoutvision:ListTagsForResource
operation.
listTagsForResourceAsync
in interface AmazonLookoutforVisionAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonLookoutforVisionAsync
Returns a list of tags attached to the specified Amazon Lookout for Vision model.
This operation requires permissions to perform the lookoutvision:ListTagsForResource
operation.
listTagsForResourceAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartModelResult> startModelAsync(StartModelRequest request)
AmazonLookoutforVisionAsync
Starts the running of the version of an Amazon Lookout for Vision model. Starting a model takes a while to complete. To check the current state of the model, use DescribeModel.
A model is ready to use when its status is HOSTED
.
Once the model is running, you can detect custom labels in new images by calling DetectAnomalies.
You are charged for the amount of time that the model is running. To stop a running model, call StopModel.
This operation requires permissions to perform the lookoutvision:StartModel
operation.
startModelAsync
in interface AmazonLookoutforVisionAsync
public Future<StartModelResult> startModelAsync(StartModelRequest request, AsyncHandler<StartModelRequest,StartModelResult> asyncHandler)
AmazonLookoutforVisionAsync
Starts the running of the version of an Amazon Lookout for Vision model. Starting a model takes a while to complete. To check the current state of the model, use DescribeModel.
A model is ready to use when its status is HOSTED
.
Once the model is running, you can detect custom labels in new images by calling DetectAnomalies.
You are charged for the amount of time that the model is running. To stop a running model, call StopModel.
This operation requires permissions to perform the lookoutvision:StartModel
operation.
startModelAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartModelPackagingJobResult> startModelPackagingJobAsync(StartModelPackagingJobRequest request)
AmazonLookoutforVisionAsync
Starts an Amazon Lookout for Vision model packaging job. A model packaging job creates an AWS IoT Greengrass component for a Lookout for Vision model. You can use the component to deploy your model to an edge device managed by Greengrass.
Use the DescribeModelPackagingJob API to determine the current status of the job. The model packaging job
is complete if the value of Status
is SUCCEEDED
.
To deploy the component to the target device, use the component name and component version with the AWS IoT Greengrass CreateDeployment API.
This operation requires the following permissions:
lookoutvision:StartModelPackagingJob
s3:PutObject
s3:GetBucketLocation
kms:GenerateDataKey
greengrass:CreateComponentVersion
greengrass:DescribeComponent
(Optional) greengrass:TagResource
. Only required if you want to tag the component.
For more information, see Using your Amazon Lookout for Vision model on an edge device in the Amazon Lookout for Vision Developer Guide.
startModelPackagingJobAsync
in interface AmazonLookoutforVisionAsync
public Future<StartModelPackagingJobResult> startModelPackagingJobAsync(StartModelPackagingJobRequest request, AsyncHandler<StartModelPackagingJobRequest,StartModelPackagingJobResult> asyncHandler)
AmazonLookoutforVisionAsync
Starts an Amazon Lookout for Vision model packaging job. A model packaging job creates an AWS IoT Greengrass component for a Lookout for Vision model. You can use the component to deploy your model to an edge device managed by Greengrass.
Use the DescribeModelPackagingJob API to determine the current status of the job. The model packaging job
is complete if the value of Status
is SUCCEEDED
.
To deploy the component to the target device, use the component name and component version with the AWS IoT Greengrass CreateDeployment API.
This operation requires the following permissions:
lookoutvision:StartModelPackagingJob
s3:PutObject
s3:GetBucketLocation
kms:GenerateDataKey
greengrass:CreateComponentVersion
greengrass:DescribeComponent
(Optional) greengrass:TagResource
. Only required if you want to tag the component.
For more information, see Using your Amazon Lookout for Vision model on an edge device in the Amazon Lookout for Vision Developer Guide.
startModelPackagingJobAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopModelResult> stopModelAsync(StopModelRequest request)
AmazonLookoutforVisionAsync
Stops the hosting of a running model. The operation might take a while to complete. To check the current status, call DescribeModel.
After the model hosting stops, the Status
of the model is TRAINED
.
This operation requires permissions to perform the lookoutvision:StopModel
operation.
stopModelAsync
in interface AmazonLookoutforVisionAsync
public Future<StopModelResult> stopModelAsync(StopModelRequest request, AsyncHandler<StopModelRequest,StopModelResult> asyncHandler)
AmazonLookoutforVisionAsync
Stops the hosting of a running model. The operation might take a while to complete. To check the current status, call DescribeModel.
After the model hosting stops, the Status
of the model is TRAINED
.
This operation requires permissions to perform the lookoutvision:StopModel
operation.
stopModelAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonLookoutforVisionAsync
Adds one or more key-value tags to an Amazon Lookout for Vision model. For more information, see Tagging a model in the Amazon Lookout for Vision Developer Guide.
This operation requires permissions to perform the lookoutvision:TagResource
operation.
tagResourceAsync
in interface AmazonLookoutforVisionAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonLookoutforVisionAsync
Adds one or more key-value tags to an Amazon Lookout for Vision model. For more information, see Tagging a model in the Amazon Lookout for Vision Developer Guide.
This operation requires permissions to perform the lookoutvision:TagResource
operation.
tagResourceAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonLookoutforVisionAsync
Removes one or more tags from an Amazon Lookout for Vision model. For more information, see Tagging a model in the Amazon Lookout for Vision Developer Guide.
This operation requires permissions to perform the lookoutvision:UntagResource
operation.
untagResourceAsync
in interface AmazonLookoutforVisionAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonLookoutforVisionAsync
Removes one or more tags from an Amazon Lookout for Vision model. For more information, see Tagging a model in the Amazon Lookout for Vision Developer Guide.
This operation requires permissions to perform the lookoutvision:UntagResource
operation.
untagResourceAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateDatasetEntriesResult> updateDatasetEntriesAsync(UpdateDatasetEntriesRequest request)
AmazonLookoutforVisionAsync
Adds or updates one or more JSON Line entries in a dataset. A JSON Line includes information about an image used for training or testing an Amazon Lookout for Vision model.
To update an existing JSON Line, use the source-ref
field to identify the JSON Line. The JSON line
that you supply replaces the existing JSON line. Any existing annotations that are not in the new JSON line are
removed from the dataset.
For more information, see Defining JSON lines for anomaly classification in the Amazon Lookout for Vision Developer Guide.
The images you reference in the source-ref
field of a JSON line, must be in the same S3 bucket as
the existing images in the dataset.
Updating a dataset might take a while to complete. To check the current status, call DescribeDataset and
check the Status
field in the response.
This operation requires permissions to perform the lookoutvision:UpdateDatasetEntries
operation.
updateDatasetEntriesAsync
in interface AmazonLookoutforVisionAsync
public Future<UpdateDatasetEntriesResult> updateDatasetEntriesAsync(UpdateDatasetEntriesRequest request, AsyncHandler<UpdateDatasetEntriesRequest,UpdateDatasetEntriesResult> asyncHandler)
AmazonLookoutforVisionAsync
Adds or updates one or more JSON Line entries in a dataset. A JSON Line includes information about an image used for training or testing an Amazon Lookout for Vision model.
To update an existing JSON Line, use the source-ref
field to identify the JSON Line. The JSON line
that you supply replaces the existing JSON line. Any existing annotations that are not in the new JSON line are
removed from the dataset.
For more information, see Defining JSON lines for anomaly classification in the Amazon Lookout for Vision Developer Guide.
The images you reference in the source-ref
field of a JSON line, must be in the same S3 bucket as
the existing images in the dataset.
Updating a dataset might take a while to complete. To check the current status, call DescribeDataset and
check the Status
field in the response.
This operation requires permissions to perform the lookoutvision:UpdateDatasetEntries
operation.
updateDatasetEntriesAsync
in interface AmazonLookoutforVisionAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonLookoutforVision
shutdown
in class AmazonLookoutforVisionClient