IoTJobsDataPlane
public struct IoTJobsDataPlane
Client object for interacting with AWS IoTJobsDataPlane service.
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
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the IoTJobsDataPlane client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
Gets details of a job execution.
Declaration
Swift
public func describeJobExecution(_ input: DescribeJobExecutionRequest) -> EventLoopFuture<DescribeJobExecutionResponse>
-
Gets the list of all jobs for a thing that are not in a terminal status.
Declaration
Swift
public func getPendingJobExecutions(_ input: GetPendingJobExecutionsRequest) -> EventLoopFuture<GetPendingJobExecutionsResponse>
-
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
Declaration
Swift
public func startNextPendingJobExecution(_ input: StartNextPendingJobExecutionRequest) -> EventLoopFuture<StartNextPendingJobExecutionResponse>
-
Updates the status of a job execution.
Declaration
Swift
public func updateJobExecution(_ input: UpdateJobExecutionRequest) -> EventLoopFuture<UpdateJobExecutionResponse>
-
Undocumented
See moreDeclaration
Swift
public enum JobExecutionStatus : String, CustomStringConvertible, Codable