@Generated(value="software.amazon.awssdk:codegen") public interface IotJobsDataPlaneClient extends SdkClient
builder()
method.
AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform remote troubleshooting operations.
To create a job, you make a job document which is a description of the remote operations to be performed, and you specify a list of targets that should perform the operations. The targets can be individual things, thing groups or both.
AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the execution of the job by downloading the job document, performing the operations it specifies, and reporting its progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and for all the targets of the job
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static IotJobsDataPlaneClientBuilder |
builder()
Create a builder that can be used to configure and create a
IotJobsDataPlaneClient . |
static IotJobsDataPlaneClient |
create()
Create a
IotJobsDataPlaneClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default DescribeJobExecutionResponse |
describeJobExecution(Consumer<DescribeJobExecutionRequest.Builder> describeJobExecutionRequest)
Gets details of a job execution.
|
default DescribeJobExecutionResponse |
describeJobExecution(DescribeJobExecutionRequest describeJobExecutionRequest)
Gets details of a job execution.
|
default GetPendingJobExecutionsResponse |
getPendingJobExecutions(Consumer<GetPendingJobExecutionsRequest.Builder> getPendingJobExecutionsRequest)
Gets the list of all jobs for a thing that are not in a terminal status.
|
default GetPendingJobExecutionsResponse |
getPendingJobExecutions(GetPendingJobExecutionsRequest getPendingJobExecutionsRequest)
Gets the list of all jobs for a thing that are not in a terminal status.
|
static ServiceMetadata |
serviceMetadata() |
default StartNextPendingJobExecutionResponse |
startNextPendingJobExecution(Consumer<StartNextPendingJobExecutionRequest.Builder> startNextPendingJobExecutionRequest)
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
|
default StartNextPendingJobExecutionResponse |
startNextPendingJobExecution(StartNextPendingJobExecutionRequest startNextPendingJobExecutionRequest)
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
|
default UpdateJobExecutionResponse |
updateJobExecution(Consumer<UpdateJobExecutionRequest.Builder> updateJobExecutionRequest)
Updates the status of a job execution.
|
default UpdateJobExecutionResponse |
updateJobExecution(UpdateJobExecutionRequest updateJobExecutionRequest)
Updates the status of a job execution.
|
serviceName
close
static final String SERVICE_NAME
static IotJobsDataPlaneClient create()
IotJobsDataPlaneClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static IotJobsDataPlaneClientBuilder builder()
IotJobsDataPlaneClient
.default DescribeJobExecutionResponse describeJobExecution(DescribeJobExecutionRequest describeJobExecutionRequest) throws InvalidRequestException, ResourceNotFoundException, ThrottlingException, ServiceUnavailableException, CertificateValidationException, TerminalStateException, AwsServiceException, SdkClientException, IotJobsDataPlaneException
Gets details of a job execution.
describeJobExecutionRequest
- InvalidRequestException
- The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution
request contains invalid status details. The message contains details about the error.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The rate exceeds the limit.ServiceUnavailableException
- The service is temporarily unavailable.CertificateValidationException
- The certificate is invalid.TerminalStateException
- The job is in a terminal state.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.IotJobsDataPlaneException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribeJobExecutionResponse describeJobExecution(Consumer<DescribeJobExecutionRequest.Builder> describeJobExecutionRequest) throws InvalidRequestException, ResourceNotFoundException, ThrottlingException, ServiceUnavailableException, CertificateValidationException, TerminalStateException, AwsServiceException, SdkClientException, IotJobsDataPlaneException
Gets details of a job execution.
This is a convenience which creates an instance of the DescribeJobExecutionRequest.Builder
avoiding the
need to create one manually via DescribeJobExecutionRequest.builder()
describeJobExecutionRequest
- A Consumer
that will call methods on DescribeJobExecutionRequest.Builder
to create a
request.InvalidRequestException
- The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution
request contains invalid status details. The message contains details about the error.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The rate exceeds the limit.ServiceUnavailableException
- The service is temporarily unavailable.CertificateValidationException
- The certificate is invalid.TerminalStateException
- The job is in a terminal state.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.IotJobsDataPlaneException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetPendingJobExecutionsResponse getPendingJobExecutions(GetPendingJobExecutionsRequest getPendingJobExecutionsRequest) throws InvalidRequestException, ResourceNotFoundException, ThrottlingException, ServiceUnavailableException, CertificateValidationException, AwsServiceException, SdkClientException, IotJobsDataPlaneException
Gets the list of all jobs for a thing that are not in a terminal status.
getPendingJobExecutionsRequest
- InvalidRequestException
- The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution
request contains invalid status details. The message contains details about the error.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The rate exceeds the limit.ServiceUnavailableException
- The service is temporarily unavailable.CertificateValidationException
- The certificate is invalid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.IotJobsDataPlaneException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetPendingJobExecutionsResponse getPendingJobExecutions(Consumer<GetPendingJobExecutionsRequest.Builder> getPendingJobExecutionsRequest) throws InvalidRequestException, ResourceNotFoundException, ThrottlingException, ServiceUnavailableException, CertificateValidationException, AwsServiceException, SdkClientException, IotJobsDataPlaneException
Gets the list of all jobs for a thing that are not in a terminal status.
This is a convenience which creates an instance of the GetPendingJobExecutionsRequest.Builder
avoiding
the need to create one manually via GetPendingJobExecutionsRequest.builder()
getPendingJobExecutionsRequest
- A Consumer
that will call methods on GetPendingJobExecutionsRequest.Builder
to create a
request.InvalidRequestException
- The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution
request contains invalid status details. The message contains details about the error.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The rate exceeds the limit.ServiceUnavailableException
- The service is temporarily unavailable.CertificateValidationException
- The certificate is invalid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.IotJobsDataPlaneException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default StartNextPendingJobExecutionResponse startNextPendingJobExecution(StartNextPendingJobExecutionRequest startNextPendingJobExecutionRequest) throws InvalidRequestException, ResourceNotFoundException, ThrottlingException, ServiceUnavailableException, CertificateValidationException, AwsServiceException, SdkClientException, IotJobsDataPlaneException
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
startNextPendingJobExecutionRequest
- InvalidRequestException
- The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution
request contains invalid status details. The message contains details about the error.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The rate exceeds the limit.ServiceUnavailableException
- The service is temporarily unavailable.CertificateValidationException
- The certificate is invalid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.IotJobsDataPlaneException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default StartNextPendingJobExecutionResponse startNextPendingJobExecution(Consumer<StartNextPendingJobExecutionRequest.Builder> startNextPendingJobExecutionRequest) throws InvalidRequestException, ResourceNotFoundException, ThrottlingException, ServiceUnavailableException, CertificateValidationException, AwsServiceException, SdkClientException, IotJobsDataPlaneException
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
This is a convenience which creates an instance of the StartNextPendingJobExecutionRequest.Builder
avoiding the need to create one manually via StartNextPendingJobExecutionRequest.builder()
startNextPendingJobExecutionRequest
- A Consumer
that will call methods on StartNextPendingJobExecutionRequest.Builder
to create
a request.InvalidRequestException
- The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution
request contains invalid status details. The message contains details about the error.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The rate exceeds the limit.ServiceUnavailableException
- The service is temporarily unavailable.CertificateValidationException
- The certificate is invalid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.IotJobsDataPlaneException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateJobExecutionResponse updateJobExecution(UpdateJobExecutionRequest updateJobExecutionRequest) throws InvalidRequestException, ResourceNotFoundException, ThrottlingException, ServiceUnavailableException, CertificateValidationException, InvalidStateTransitionException, AwsServiceException, SdkClientException, IotJobsDataPlaneException
Updates the status of a job execution.
updateJobExecutionRequest
- InvalidRequestException
- The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution
request contains invalid status details. The message contains details about the error.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The rate exceeds the limit.ServiceUnavailableException
- The service is temporarily unavailable.CertificateValidationException
- The certificate is invalid.InvalidStateTransitionException
- An update attempted to change the job execution to a state that is invalid because of the job execution's
current state (for example, an attempt to change a request in state SUCCESS to state IN_PROGRESS). In
this case, the body of the error message also contains the executionState field.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.IotJobsDataPlaneException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateJobExecutionResponse updateJobExecution(Consumer<UpdateJobExecutionRequest.Builder> updateJobExecutionRequest) throws InvalidRequestException, ResourceNotFoundException, ThrottlingException, ServiceUnavailableException, CertificateValidationException, InvalidStateTransitionException, AwsServiceException, SdkClientException, IotJobsDataPlaneException
Updates the status of a job execution.
This is a convenience which creates an instance of the UpdateJobExecutionRequest.Builder
avoiding the
need to create one manually via UpdateJobExecutionRequest.builder()
updateJobExecutionRequest
- A Consumer
that will call methods on UpdateJobExecutionRequest.Builder
to create a
request.InvalidRequestException
- The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution
request contains invalid status details. The message contains details about the error.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The rate exceeds the limit.ServiceUnavailableException
- The service is temporarily unavailable.CertificateValidationException
- The certificate is invalid.InvalidStateTransitionException
- An update attempted to change the job execution to a state that is invalid because of the job execution's
current state (for example, an attempt to change a request in state SUCCESS to state IN_PROGRESS). In
this case, the body of the error message also contains the executionState field.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.IotJobsDataPlaneException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.