AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

JobExecution

import "github.com/aws/aws-sdk-go/service/iotjobsdataplane"

type JobExecution struct { ApproximateSecondsBeforeTimedOut *int64 `locationName:"approximateSecondsBeforeTimedOut" type:"long"` ExecutionNumber *int64 `locationName:"executionNumber" type:"long"` JobDocument *string `locationName:"jobDocument" type:"string"` JobId *string `locationName:"jobId" min:"1" type:"string"` LastUpdatedAt *int64 `locationName:"lastUpdatedAt" type:"long"` QueuedAt *int64 `locationName:"queuedAt" type:"long"` StartedAt *int64 `locationName:"startedAt" type:"long"` Status *string `locationName:"status" type:"string" enum:"JobExecutionStatus"` StatusDetails map[string]*string `locationName:"statusDetails" type:"map"` ThingName *string `locationName:"thingName" min:"1" type:"string"` VersionNumber *int64 `locationName:"versionNumber" type:"long"` }

Contains data about a job execution.

ApproximateSecondsBeforeTimedOut

Type: *int64

The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT.

ExecutionNumber

Type: *int64

A number that identifies a particular job execution on a particular device. It can be used later in commands that return or update job execution information.

JobDocument

Type: *string

The content of the job document.

JobId

Type: *string

The unique identifier you assigned to this job when it was created.

LastUpdatedAt

Type: *int64

The time, in milliseconds since the epoch, when the job execution was last updated.

QueuedAt

Type: *int64

The time, in milliseconds since the epoch, when the job execution was enqueued.

StartedAt

Type: *int64

The time, in milliseconds since the epoch, when the job execution was started.

Status

Type: *string

The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

StatusDetails

Type: map[string]*string

A collection of name/value pairs that describe the status of the job execution.

ThingName

Type: *string

The name of the thing that is executing the job.

VersionNumber

Type: *int64

The version of the job execution. Job execution versions are incremented each time they are updated by a device.

Method

GoString

func (s JobExecution) GoString() string

GoString returns the string representation

SetApproximateSecondsBeforeTimedOut

func (s *JobExecution) SetApproximateSecondsBeforeTimedOut(v int64) *JobExecution

SetApproximateSecondsBeforeTimedOut sets the ApproximateSecondsBeforeTimedOut field's value.

SetExecutionNumber

func (s *JobExecution) SetExecutionNumber(v int64) *JobExecution

SetExecutionNumber sets the ExecutionNumber field's value.

SetJobDocument

func (s *JobExecution) SetJobDocument(v string) *JobExecution

SetJobDocument sets the JobDocument field's value.

SetJobId

func (s *JobExecution) SetJobId(v string) *JobExecution

SetJobId sets the JobId field's value.

SetLastUpdatedAt

func (s *JobExecution) SetLastUpdatedAt(v int64) *JobExecution

SetLastUpdatedAt sets the LastUpdatedAt field's value.

SetQueuedAt

func (s *JobExecution) SetQueuedAt(v int64) *JobExecution

SetQueuedAt sets the QueuedAt field's value.

SetStartedAt

func (s *JobExecution) SetStartedAt(v int64) *JobExecution

SetStartedAt sets the StartedAt field's value.

SetStatus

func (s *JobExecution) SetStatus(v string) *JobExecution

SetStatus sets the Status field's value.

SetStatusDetails

func (s *JobExecution) SetStatusDetails(v map[string]*string) *JobExecution

SetStatusDetails sets the StatusDetails field's value.

SetThingName

func (s *JobExecution) SetThingName(v string) *JobExecution

SetThingName sets the ThingName field's value.

SetVersionNumber

func (s *JobExecution) SetVersionNumber(v int64) *JobExecution

SetVersionNumber sets the VersionNumber field's value.

String

func (s JobExecution) String() string

String returns the string representation

On this page: