-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnJobTemplate_AbortCriteriaProperty.go
40 lines (37 loc) · 2.17 KB
/
CfnJobTemplate_AbortCriteriaProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package awsiot
// The criteria that determine when and how a job abort takes place.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// abortCriteriaProperty := &AbortCriteriaProperty{
// Action: jsii.String("action"),
// FailureType: jsii.String("failureType"),
// MinNumberOfExecutedThings: jsii.Number(123),
// ThresholdPercentage: jsii.Number(123),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-jobtemplate-abortcriteria.html
//
type CfnJobTemplate_AbortCriteriaProperty struct {
// The type of job action to take to initiate the job abort.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-jobtemplate-abortcriteria.html#cfn-iot-jobtemplate-abortcriteria-action
//
Action *string `field:"required" json:"action" yaml:"action"`
// The type of job execution failures that can initiate a job abort.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-jobtemplate-abortcriteria.html#cfn-iot-jobtemplate-abortcriteria-failuretype
//
FailureType *string `field:"required" json:"failureType" yaml:"failureType"`
// The minimum number of things which must receive job execution notifications before the job can be aborted.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-jobtemplate-abortcriteria.html#cfn-iot-jobtemplate-abortcriteria-minnumberofexecutedthings
//
MinNumberOfExecutedThings *float64 `field:"required" json:"minNumberOfExecutedThings" yaml:"minNumberOfExecutedThings"`
// The minimum percentage of job execution failures that must occur to initiate the job abort.
//
// AWS IoT Core supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-jobtemplate-abortcriteria.html#cfn-iot-jobtemplate-abortcriteria-thresholdpercentage
//
ThresholdPercentage *float64 `field:"required" json:"thresholdPercentage" yaml:"thresholdPercentage"`
}