@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSIoTEventsAsyncClient extends AWSIoTEventsClient implements AWSIoTEventsAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and triggers actions when such events occur. You can use AWS IoT Events API operations to create, read, update, and delete inputs and detector models, and to list their versions.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
builder, createAlarmModel, createDetectorModel, createInput, deleteAlarmModel, deleteDetectorModel, deleteInput, describeAlarmModel, describeDetectorModel, describeDetectorModelAnalysis, describeInput, describeLoggingOptions, getCachedResponseMetadata, getDetectorModelAnalysisResults, listAlarmModels, listAlarmModelVersions, listDetectorModels, listDetectorModelVersions, listInputRoutings, listInputs, listTagsForResource, putLoggingOptions, startDetectorModelAnalysis, tagResource, untagResource, updateAlarmModel, updateDetectorModel, updateInput
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
createAlarmModel, createDetectorModel, createInput, deleteAlarmModel, deleteDetectorModel, deleteInput, describeAlarmModel, describeDetectorModel, describeDetectorModelAnalysis, describeInput, describeLoggingOptions, getCachedResponseMetadata, getDetectorModelAnalysisResults, listAlarmModels, listAlarmModelVersions, listDetectorModels, listDetectorModelVersions, listInputRoutings, listInputs, listTagsForResource, putLoggingOptions, startDetectorModelAnalysis, tagResource, untagResource, updateAlarmModel, updateDetectorModel, updateInput
public static AWSIoTEventsAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateAlarmModelResult> createAlarmModelAsync(CreateAlarmModelRequest request)
AWSIoTEventsAsync
Creates an alarm model to monitor an AWS IoT Events input attribute. You can use the alarm to get notified when the value is outside a specified range. For more information, see Create an alarm model in the AWS IoT Events Developer Guide.
createAlarmModelAsync
in interface AWSIoTEventsAsync
public Future<CreateAlarmModelResult> createAlarmModelAsync(CreateAlarmModelRequest request, AsyncHandler<CreateAlarmModelRequest,CreateAlarmModelResult> asyncHandler)
AWSIoTEventsAsync
Creates an alarm model to monitor an AWS IoT Events input attribute. You can use the alarm to get notified when the value is outside a specified range. For more information, see Create an alarm model in the AWS IoT Events Developer Guide.
createAlarmModelAsync
in interface AWSIoTEventsAsync
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<CreateDetectorModelResult> createDetectorModelAsync(CreateDetectorModelRequest request)
AWSIoTEventsAsync
Creates a detector model.
createDetectorModelAsync
in interface AWSIoTEventsAsync
public Future<CreateDetectorModelResult> createDetectorModelAsync(CreateDetectorModelRequest request, AsyncHandler<CreateDetectorModelRequest,CreateDetectorModelResult> asyncHandler)
AWSIoTEventsAsync
Creates a detector model.
createDetectorModelAsync
in interface AWSIoTEventsAsync
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<CreateInputResult> createInputAsync(CreateInputRequest request)
AWSIoTEventsAsync
Creates an input.
createInputAsync
in interface AWSIoTEventsAsync
public Future<CreateInputResult> createInputAsync(CreateInputRequest request, AsyncHandler<CreateInputRequest,CreateInputResult> asyncHandler)
AWSIoTEventsAsync
Creates an input.
createInputAsync
in interface AWSIoTEventsAsync
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<DeleteAlarmModelResult> deleteAlarmModelAsync(DeleteAlarmModelRequest request)
AWSIoTEventsAsync
Deletes an alarm model. Any alarm instances that were created based on this alarm model are also deleted. This action can't be undone.
deleteAlarmModelAsync
in interface AWSIoTEventsAsync
public Future<DeleteAlarmModelResult> deleteAlarmModelAsync(DeleteAlarmModelRequest request, AsyncHandler<DeleteAlarmModelRequest,DeleteAlarmModelResult> asyncHandler)
AWSIoTEventsAsync
Deletes an alarm model. Any alarm instances that were created based on this alarm model are also deleted. This action can't be undone.
deleteAlarmModelAsync
in interface AWSIoTEventsAsync
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<DeleteDetectorModelResult> deleteDetectorModelAsync(DeleteDetectorModelRequest request)
AWSIoTEventsAsync
Deletes a detector model. Any active instances of the detector model are also deleted.
deleteDetectorModelAsync
in interface AWSIoTEventsAsync
public Future<DeleteDetectorModelResult> deleteDetectorModelAsync(DeleteDetectorModelRequest request, AsyncHandler<DeleteDetectorModelRequest,DeleteDetectorModelResult> asyncHandler)
AWSIoTEventsAsync
Deletes a detector model. Any active instances of the detector model are also deleted.
deleteDetectorModelAsync
in interface AWSIoTEventsAsync
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<DeleteInputResult> deleteInputAsync(DeleteInputRequest request)
AWSIoTEventsAsync
Deletes an input.
deleteInputAsync
in interface AWSIoTEventsAsync
public Future<DeleteInputResult> deleteInputAsync(DeleteInputRequest request, AsyncHandler<DeleteInputRequest,DeleteInputResult> asyncHandler)
AWSIoTEventsAsync
Deletes an input.
deleteInputAsync
in interface AWSIoTEventsAsync
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<DescribeAlarmModelResult> describeAlarmModelAsync(DescribeAlarmModelRequest request)
AWSIoTEventsAsync
Retrieves information about an alarm model. If you don't specify a value for the alarmModelVersion
parameter, the latest version is returned.
describeAlarmModelAsync
in interface AWSIoTEventsAsync
public Future<DescribeAlarmModelResult> describeAlarmModelAsync(DescribeAlarmModelRequest request, AsyncHandler<DescribeAlarmModelRequest,DescribeAlarmModelResult> asyncHandler)
AWSIoTEventsAsync
Retrieves information about an alarm model. If you don't specify a value for the alarmModelVersion
parameter, the latest version is returned.
describeAlarmModelAsync
in interface AWSIoTEventsAsync
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<DescribeDetectorModelResult> describeDetectorModelAsync(DescribeDetectorModelRequest request)
AWSIoTEventsAsync
Describes a detector model. If the version
parameter is not specified, information about the latest
version is returned.
describeDetectorModelAsync
in interface AWSIoTEventsAsync
public Future<DescribeDetectorModelResult> describeDetectorModelAsync(DescribeDetectorModelRequest request, AsyncHandler<DescribeDetectorModelRequest,DescribeDetectorModelResult> asyncHandler)
AWSIoTEventsAsync
Describes a detector model. If the version
parameter is not specified, information about the latest
version is returned.
describeDetectorModelAsync
in interface AWSIoTEventsAsync
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<DescribeDetectorModelAnalysisResult> describeDetectorModelAnalysisAsync(DescribeDetectorModelAnalysisRequest request)
AWSIoTEventsAsync
Retrieves runtime information about a detector model analysis.
After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
describeDetectorModelAnalysisAsync
in interface AWSIoTEventsAsync
public Future<DescribeDetectorModelAnalysisResult> describeDetectorModelAnalysisAsync(DescribeDetectorModelAnalysisRequest request, AsyncHandler<DescribeDetectorModelAnalysisRequest,DescribeDetectorModelAnalysisResult> asyncHandler)
AWSIoTEventsAsync
Retrieves runtime information about a detector model analysis.
After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
describeDetectorModelAnalysisAsync
in interface AWSIoTEventsAsync
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<DescribeInputResult> describeInputAsync(DescribeInputRequest request)
AWSIoTEventsAsync
Describes an input.
describeInputAsync
in interface AWSIoTEventsAsync
public Future<DescribeInputResult> describeInputAsync(DescribeInputRequest request, AsyncHandler<DescribeInputRequest,DescribeInputResult> asyncHandler)
AWSIoTEventsAsync
Describes an input.
describeInputAsync
in interface AWSIoTEventsAsync
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<DescribeLoggingOptionsResult> describeLoggingOptionsAsync(DescribeLoggingOptionsRequest request)
AWSIoTEventsAsync
Retrieves the current settings of the AWS IoT Events logging options.
describeLoggingOptionsAsync
in interface AWSIoTEventsAsync
public Future<DescribeLoggingOptionsResult> describeLoggingOptionsAsync(DescribeLoggingOptionsRequest request, AsyncHandler<DescribeLoggingOptionsRequest,DescribeLoggingOptionsResult> asyncHandler)
AWSIoTEventsAsync
Retrieves the current settings of the AWS IoT Events logging options.
describeLoggingOptionsAsync
in interface AWSIoTEventsAsync
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<GetDetectorModelAnalysisResultsResult> getDetectorModelAnalysisResultsAsync(GetDetectorModelAnalysisResultsRequest request)
AWSIoTEventsAsync
Retrieves one or more analysis results of the detector model.
After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
getDetectorModelAnalysisResultsAsync
in interface AWSIoTEventsAsync
public Future<GetDetectorModelAnalysisResultsResult> getDetectorModelAnalysisResultsAsync(GetDetectorModelAnalysisResultsRequest request, AsyncHandler<GetDetectorModelAnalysisResultsRequest,GetDetectorModelAnalysisResultsResult> asyncHandler)
AWSIoTEventsAsync
Retrieves one or more analysis results of the detector model.
After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
getDetectorModelAnalysisResultsAsync
in interface AWSIoTEventsAsync
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<ListAlarmModelVersionsResult> listAlarmModelVersionsAsync(ListAlarmModelVersionsRequest request)
AWSIoTEventsAsync
Lists all the versions of an alarm model. The operation returns only the metadata associated with each alarm model version.
listAlarmModelVersionsAsync
in interface AWSIoTEventsAsync
public Future<ListAlarmModelVersionsResult> listAlarmModelVersionsAsync(ListAlarmModelVersionsRequest request, AsyncHandler<ListAlarmModelVersionsRequest,ListAlarmModelVersionsResult> asyncHandler)
AWSIoTEventsAsync
Lists all the versions of an alarm model. The operation returns only the metadata associated with each alarm model version.
listAlarmModelVersionsAsync
in interface AWSIoTEventsAsync
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<ListAlarmModelsResult> listAlarmModelsAsync(ListAlarmModelsRequest request)
AWSIoTEventsAsync
Lists the alarm models that you created. The operation returns only the metadata associated with each alarm model.
listAlarmModelsAsync
in interface AWSIoTEventsAsync
public Future<ListAlarmModelsResult> listAlarmModelsAsync(ListAlarmModelsRequest request, AsyncHandler<ListAlarmModelsRequest,ListAlarmModelsResult> asyncHandler)
AWSIoTEventsAsync
Lists the alarm models that you created. The operation returns only the metadata associated with each alarm model.
listAlarmModelsAsync
in interface AWSIoTEventsAsync
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<ListDetectorModelVersionsResult> listDetectorModelVersionsAsync(ListDetectorModelVersionsRequest request)
AWSIoTEventsAsync
Lists all the versions of a detector model. Only the metadata associated with each detector model version is returned.
listDetectorModelVersionsAsync
in interface AWSIoTEventsAsync
public Future<ListDetectorModelVersionsResult> listDetectorModelVersionsAsync(ListDetectorModelVersionsRequest request, AsyncHandler<ListDetectorModelVersionsRequest,ListDetectorModelVersionsResult> asyncHandler)
AWSIoTEventsAsync
Lists all the versions of a detector model. Only the metadata associated with each detector model version is returned.
listDetectorModelVersionsAsync
in interface AWSIoTEventsAsync
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<ListDetectorModelsResult> listDetectorModelsAsync(ListDetectorModelsRequest request)
AWSIoTEventsAsync
Lists the detector models you have created. Only the metadata associated with each detector model is returned.
listDetectorModelsAsync
in interface AWSIoTEventsAsync
public Future<ListDetectorModelsResult> listDetectorModelsAsync(ListDetectorModelsRequest request, AsyncHandler<ListDetectorModelsRequest,ListDetectorModelsResult> asyncHandler)
AWSIoTEventsAsync
Lists the detector models you have created. Only the metadata associated with each detector model is returned.
listDetectorModelsAsync
in interface AWSIoTEventsAsync
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<ListInputRoutingsResult> listInputRoutingsAsync(ListInputRoutingsRequest request)
AWSIoTEventsAsync
Lists one or more input routings.
listInputRoutingsAsync
in interface AWSIoTEventsAsync
public Future<ListInputRoutingsResult> listInputRoutingsAsync(ListInputRoutingsRequest request, AsyncHandler<ListInputRoutingsRequest,ListInputRoutingsResult> asyncHandler)
AWSIoTEventsAsync
Lists one or more input routings.
listInputRoutingsAsync
in interface AWSIoTEventsAsync
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<ListInputsResult> listInputsAsync(ListInputsRequest request)
AWSIoTEventsAsync
Lists the inputs you have created.
listInputsAsync
in interface AWSIoTEventsAsync
public Future<ListInputsResult> listInputsAsync(ListInputsRequest request, AsyncHandler<ListInputsRequest,ListInputsResult> asyncHandler)
AWSIoTEventsAsync
Lists the inputs you have created.
listInputsAsync
in interface AWSIoTEventsAsync
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)
AWSIoTEventsAsync
Lists the tags (metadata) you have assigned to the resource.
listTagsForResourceAsync
in interface AWSIoTEventsAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSIoTEventsAsync
Lists the tags (metadata) you have assigned to the resource.
listTagsForResourceAsync
in interface AWSIoTEventsAsync
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<PutLoggingOptionsResult> putLoggingOptionsAsync(PutLoggingOptionsRequest request)
AWSIoTEventsAsync
Sets or updates the AWS IoT Events logging options.
If you update the value of any loggingOptions
field, it takes up to one minute for the change to
take effect. If you change the policy attached to the role you specified in the roleArn
field (for
example, to correct an invalid policy), it takes up to five minutes for that change to take effect.
putLoggingOptionsAsync
in interface AWSIoTEventsAsync
public Future<PutLoggingOptionsResult> putLoggingOptionsAsync(PutLoggingOptionsRequest request, AsyncHandler<PutLoggingOptionsRequest,PutLoggingOptionsResult> asyncHandler)
AWSIoTEventsAsync
Sets or updates the AWS IoT Events logging options.
If you update the value of any loggingOptions
field, it takes up to one minute for the change to
take effect. If you change the policy attached to the role you specified in the roleArn
field (for
example, to correct an invalid policy), it takes up to five minutes for that change to take effect.
putLoggingOptionsAsync
in interface AWSIoTEventsAsync
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<StartDetectorModelAnalysisResult> startDetectorModelAnalysisAsync(StartDetectorModelAnalysisRequest request)
AWSIoTEventsAsync
Performs an analysis of your detector model. For more information, see Troubleshooting a detector model in the AWS IoT Events Developer Guide.
startDetectorModelAnalysisAsync
in interface AWSIoTEventsAsync
public Future<StartDetectorModelAnalysisResult> startDetectorModelAnalysisAsync(StartDetectorModelAnalysisRequest request, AsyncHandler<StartDetectorModelAnalysisRequest,StartDetectorModelAnalysisResult> asyncHandler)
AWSIoTEventsAsync
Performs an analysis of your detector model. For more information, see Troubleshooting a detector model in the AWS IoT Events Developer Guide.
startDetectorModelAnalysisAsync
in interface AWSIoTEventsAsync
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)
AWSIoTEventsAsync
Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
tagResourceAsync
in interface AWSIoTEventsAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSIoTEventsAsync
Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
tagResourceAsync
in interface AWSIoTEventsAsync
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)
AWSIoTEventsAsync
Removes the given tags (metadata) from the resource.
untagResourceAsync
in interface AWSIoTEventsAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSIoTEventsAsync
Removes the given tags (metadata) from the resource.
untagResourceAsync
in interface AWSIoTEventsAsync
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<UpdateAlarmModelResult> updateAlarmModelAsync(UpdateAlarmModelRequest request)
AWSIoTEventsAsync
Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
updateAlarmModelAsync
in interface AWSIoTEventsAsync
public Future<UpdateAlarmModelResult> updateAlarmModelAsync(UpdateAlarmModelRequest request, AsyncHandler<UpdateAlarmModelRequest,UpdateAlarmModelResult> asyncHandler)
AWSIoTEventsAsync
Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
updateAlarmModelAsync
in interface AWSIoTEventsAsync
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<UpdateDetectorModelResult> updateDetectorModelAsync(UpdateDetectorModelRequest request)
AWSIoTEventsAsync
Updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive.
updateDetectorModelAsync
in interface AWSIoTEventsAsync
public Future<UpdateDetectorModelResult> updateDetectorModelAsync(UpdateDetectorModelRequest request, AsyncHandler<UpdateDetectorModelRequest,UpdateDetectorModelResult> asyncHandler)
AWSIoTEventsAsync
Updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive.
updateDetectorModelAsync
in interface AWSIoTEventsAsync
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<UpdateInputResult> updateInputAsync(UpdateInputRequest request)
AWSIoTEventsAsync
Updates an input.
updateInputAsync
in interface AWSIoTEventsAsync
public Future<UpdateInputResult> updateInputAsync(UpdateInputRequest request, AsyncHandler<UpdateInputRequest,UpdateInputResult> asyncHandler)
AWSIoTEventsAsync
Updates an input.
updateInputAsync
in interface AWSIoTEventsAsync
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 AWSIoTEvents
shutdown
in class AWSIoTEventsClient