@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSIoTEventsClient extends AmazonWebServiceClient implements AWSIoTEvents
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_METRICENDPOINT_PREFIXaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetpublic static AWSIoTEventsClientBuilder builder()
public CreateAlarmModelResult createAlarmModel(CreateAlarmModelRequest request)
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.
createAlarmModel in interface AWSIoTEventscreateAlarmModelRequest - InvalidRequestException - The request was invalid.ResourceInUseException - The resource is in use.ResourceAlreadyExistsException - The resource already exists.LimitExceededException - A limit was exceeded.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public CreateDetectorModelResult createDetectorModel(CreateDetectorModelRequest request)
Creates a detector model.
createDetectorModel in interface AWSIoTEventscreateDetectorModelRequest - InvalidRequestException - The request was invalid.ResourceInUseException - The resource is in use.ResourceAlreadyExistsException - The resource already exists.LimitExceededException - A limit was exceeded.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public CreateInputResult createInput(CreateInputRequest request)
Creates an input.
createInput in interface AWSIoTEventscreateInputRequest - InvalidRequestException - The request was invalid.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.ResourceAlreadyExistsException - The resource already exists.public DeleteAlarmModelResult deleteAlarmModel(DeleteAlarmModelRequest request)
Deletes an alarm model. Any alarm instances that were created based on this alarm model are also deleted. This action can't be undone.
deleteAlarmModel in interface AWSIoTEventsdeleteAlarmModelRequest - InvalidRequestException - The request was invalid.ResourceInUseException - The resource is in use.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public DeleteDetectorModelResult deleteDetectorModel(DeleteDetectorModelRequest request)
Deletes a detector model. Any active instances of the detector model are also deleted.
deleteDetectorModel in interface AWSIoTEventsdeleteDetectorModelRequest - InvalidRequestException - The request was invalid.ResourceInUseException - The resource is in use.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public DeleteInputResult deleteInput(DeleteInputRequest request)
Deletes an input.
deleteInput in interface AWSIoTEventsdeleteInputRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.ResourceInUseException - The resource is in use.public DescribeAlarmModelResult describeAlarmModel(DescribeAlarmModelRequest request)
Retrieves information about an alarm model. If you don't specify a value for the alarmModelVersion
parameter, the latest version is returned.
describeAlarmModel in interface AWSIoTEventsdescribeAlarmModelRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public DescribeDetectorModelResult describeDetectorModel(DescribeDetectorModelRequest request)
Describes a detector model. If the version parameter is not specified, information about the latest
version is returned.
describeDetectorModel in interface AWSIoTEventsdescribeDetectorModelRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public DescribeDetectorModelAnalysisResult describeDetectorModelAnalysis(DescribeDetectorModelAnalysisRequest request)
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.
describeDetectorModelAnalysis in interface AWSIoTEventsdescribeDetectorModelAnalysisRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public DescribeInputResult describeInput(DescribeInputRequest request)
Describes an input.
describeInput in interface AWSIoTEventsdescribeInputRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public DescribeLoggingOptionsResult describeLoggingOptions(DescribeLoggingOptionsRequest request)
Retrieves the current settings of the AWS IoT Events logging options.
describeLoggingOptions in interface AWSIoTEventsdescribeLoggingOptionsRequest - InvalidRequestException - The request was invalid.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ResourceNotFoundException - The resource was not found.ServiceUnavailableException - The service is currently unavailable.UnsupportedOperationException - The requested operation is not supported.public GetDetectorModelAnalysisResultsResult getDetectorModelAnalysisResults(GetDetectorModelAnalysisResultsRequest request)
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.
getDetectorModelAnalysisResults in interface AWSIoTEventsgetDetectorModelAnalysisResultsRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public ListAlarmModelVersionsResult listAlarmModelVersions(ListAlarmModelVersionsRequest request)
Lists all the versions of an alarm model. The operation returns only the metadata associated with each alarm model version.
listAlarmModelVersions in interface AWSIoTEventslistAlarmModelVersionsRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public ListAlarmModelsResult listAlarmModels(ListAlarmModelsRequest request)
Lists the alarm models that you created. The operation returns only the metadata associated with each alarm model.
listAlarmModels in interface AWSIoTEventslistAlarmModelsRequest - InvalidRequestException - The request was invalid.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public ListDetectorModelVersionsResult listDetectorModelVersions(ListDetectorModelVersionsRequest request)
Lists all the versions of a detector model. Only the metadata associated with each detector model version is returned.
listDetectorModelVersions in interface AWSIoTEventslistDetectorModelVersionsRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public ListDetectorModelsResult listDetectorModels(ListDetectorModelsRequest request)
Lists the detector models you have created. Only the metadata associated with each detector model is returned.
listDetectorModels in interface AWSIoTEventslistDetectorModelsRequest - InvalidRequestException - The request was invalid.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public ListInputRoutingsResult listInputRoutings(ListInputRoutingsRequest request)
Lists one or more input routings.
listInputRoutings in interface AWSIoTEventslistInputRoutingsRequest - InvalidRequestException - The request was invalid.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.ResourceNotFoundException - The resource was not found.public ListInputsResult listInputs(ListInputsRequest request)
Lists the inputs you have created.
listInputs in interface AWSIoTEventslistInputsRequest - InvalidRequestException - The request was invalid.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags (metadata) you have assigned to the resource.
listTagsForResource in interface AWSIoTEventslistTagsForResourceRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ResourceInUseException - The resource is in use.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.public PutLoggingOptionsResult putLoggingOptions(PutLoggingOptionsRequest request)
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.
putLoggingOptions in interface AWSIoTEventsputLoggingOptionsRequest - InvalidRequestException - The request was invalid.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.UnsupportedOperationException - The requested operation is not supported.ResourceInUseException - The resource is in use.public StartDetectorModelAnalysisResult startDetectorModelAnalysis(StartDetectorModelAnalysisRequest request)
Performs an analysis of your detector model. For more information, see Troubleshooting a detector model in the AWS IoT Events Developer Guide.
startDetectorModelAnalysis in interface AWSIoTEventsstartDetectorModelAnalysisRequest - InvalidRequestException - The request was invalid.LimitExceededException - A limit was exceeded.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public TagResourceResult tagResource(TagResourceRequest request)
Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
tagResource in interface AWSIoTEventstagResourceRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ResourceInUseException - The resource is in use.ThrottlingException - The request could not be completed due to throttling.LimitExceededException - A limit was exceeded.InternalFailureException - An internal failure occurred.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes the given tags (metadata) from the resource.
untagResource in interface AWSIoTEventsuntagResourceRequest - InvalidRequestException - The request was invalid.ResourceNotFoundException - The resource was not found.ResourceInUseException - The resource is in use.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.public UpdateAlarmModelResult updateAlarmModel(UpdateAlarmModelRequest request)
Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
updateAlarmModel in interface AWSIoTEventsupdateAlarmModelRequest - InvalidRequestException - The request was invalid.ResourceInUseException - The resource is in use.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public UpdateDetectorModelResult updateDetectorModel(UpdateDetectorModelRequest request)
Updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive.
updateDetectorModel in interface AWSIoTEventsupdateDetectorModelRequest - InvalidRequestException - The request was invalid.ResourceInUseException - The resource is in use.ResourceNotFoundException - The resource was not found.ThrottlingException - The request could not be completed due to throttling.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.public UpdateInputResult updateInput(UpdateInputRequest request)
Updates an input.
updateInput in interface AWSIoTEventsupdateInputRequest - InvalidRequestException - The request was invalid.ThrottlingException - The request could not be completed due to throttling.ResourceNotFoundException - The resource was not found.InternalFailureException - An internal failure occurred.ServiceUnavailableException - The service is currently unavailable.ResourceInUseException - The resource is in use.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AWSIoTEventsrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AWSIoTEventsshutdown in class AmazonWebServiceClient