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.

AbortCriteria

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

type AbortCriteria struct { Action *string `locationName:"action" type:"string" required:"true" enum:"AbortAction"` FailureType *string `locationName:"failureType" type:"string" required:"true" enum:"JobExecutionFailureType"` MinNumberOfExecutedThings *int64 `locationName:"minNumberOfExecutedThings" min:"1" type:"integer" required:"true"` ThresholdPercentage *float64 `locationName:"thresholdPercentage" type:"double" required:"true"` }

Details of abort criteria to define rules to abort the job.

Action

Type: *string

The type of abort action to initiate a job abort.

Action is a required field

FailureType

Type: *string

The type of job execution failure to define a rule to initiate a job abort.

FailureType is a required field

MinNumberOfExecutedThings

Type: *int64

Minimum number of executed things before evaluating an abort rule.

MinNumberOfExecutedThings is a required field

ThresholdPercentage

Type: *float64

The threshold as a percentage of the total number of executed things that will initiate a job abort.

AWS IoT supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).

ThresholdPercentage is a required field

Method

GoString

func (s AbortCriteria) GoString() string

GoString returns the string representation

SetAction

func (s *AbortCriteria) SetAction(v string) *AbortCriteria

SetAction sets the Action field's value.

SetFailureType

func (s *AbortCriteria) SetFailureType(v string) *AbortCriteria

SetFailureType sets the FailureType field's value.

SetMinNumberOfExecutedThings

func (s *AbortCriteria) SetMinNumberOfExecutedThings(v int64) *AbortCriteria

SetMinNumberOfExecutedThings sets the MinNumberOfExecutedThings field's value.

SetThresholdPercentage

func (s *AbortCriteria) SetThresholdPercentage(v float64) *AbortCriteria

SetThresholdPercentage sets the ThresholdPercentage field's value.

String

func (s AbortCriteria) String() string

String returns the string representation

Validate

func (s *AbortCriteria) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: