interface CfnJobTemplateProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IoT.CfnJobTemplateProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnJobTemplateProps |
![]() | software.amazon.awscdk.services.iot.CfnJobTemplateProps |
![]() | aws_cdk.aws_iot.CfnJobTemplateProps |
![]() | aws-cdk-lib » aws_iot » CfnJobTemplateProps |
Properties for defining a CfnJobTemplate
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-jobtemplate.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
declare const abortConfig: any;
declare const jobExecutionsRolloutConfig: any;
declare const presignedUrlConfig: any;
declare const timeoutConfig: any;
const cfnJobTemplateProps: iot.CfnJobTemplateProps = {
description: 'description',
jobTemplateId: 'jobTemplateId',
// the properties below are optional
abortConfig: abortConfig,
destinationPackageVersions: ['destinationPackageVersions'],
document: 'document',
documentSource: 'documentSource',
jobArn: 'jobArn',
jobExecutionsRetryConfig: {
retryCriteriaList: [{
failureType: 'failureType',
numberOfRetries: 123,
}],
},
jobExecutionsRolloutConfig: jobExecutionsRolloutConfig,
maintenanceWindows: [{
durationInMinutes: 123,
startTime: 'startTime',
}],
presignedUrlConfig: presignedUrlConfig,
tags: [{
key: 'key',
value: 'value',
}],
timeoutConfig: timeoutConfig,
};
Properties
Name | Type | Description |
---|---|---|
description | string | A description of the job template. |
job | string | A unique identifier for the job template. |
abort | any | The criteria that determine when and how a job abort takes place. |
destination | string[] | The package version Amazon Resource Names (ARNs) that are installed on the device’s reserved named shadow ( $package ) when the job successfully completes. |
document? | string | The job document. |
document | string | An S3 link, or S3 object URL, to the job document. |
job | string | The ARN of the job to use as the basis for the job template. |
job | IResolvable | Job | Allows you to create the criteria to retry a job. |
job | any | Allows you to create a staged rollout of a job. |
maintenance | IResolvable | IResolvable | Maintenance [] | An optional configuration within the SchedulingConfig to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job. |
presigned | any | Configuration for pre-signed S3 URLs. |
tags? | Cfn [] | Metadata that can be used to manage the job template. |
timeout | any | Specifies the amount of time each device has to finish its execution of the job. |
description
Type:
string
A description of the job template.
jobTemplateId
Type:
string
A unique identifier for the job template.
We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
abortConfig?
Type:
any
(optional)
The criteria that determine when and how a job abort takes place.
destinationPackageVersions?
Type:
string[]
(optional)
The package version Amazon Resource Names (ARNs) that are installed on the device’s reserved named shadow ( $package
) when the job successfully completes.
Note: Up to 25 package version ARNS are allowed.
document?
Type:
string
(optional)
The job document.
Required if you don't specify a value for documentSource
.
documentSource?
Type:
string
(optional)
An S3 link, or S3 object URL, to the job document.
The link is an Amazon S3 object URL and is required if you don't specify a value for document
.
For example, --document-source https://s3. *region-code* .amazonaws.com/example-firmware/device-firmware.1.0
For more information, see Methods for accessing a bucket .
jobArn?
Type:
string
(optional)
The ARN of the job to use as the basis for the job template.
jobExecutionsRetryConfig?
Type:
IResolvable
|
Job
(optional)
Allows you to create the criteria to retry a job.
jobExecutionsRolloutConfig?
Type:
any
(optional)
Allows you to create a staged rollout of a job.
maintenanceWindows?
Type:
IResolvable
|
IResolvable
|
Maintenance
[]
(optional)
An optional configuration within the SchedulingConfig to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.
presignedUrlConfig?
Type:
any
(optional)
Configuration for pre-signed S3 URLs.
tags?
Type:
Cfn
[]
(optional)
Metadata that can be used to manage the job template.
timeoutConfig?
Type:
any
(optional)
Specifies the amount of time each device has to finish its execution of the job.
A timer is started when the job execution status is set to IN_PROGRESS
. If the job execution status is not set to another terminal state before the timer expires, it will be automatically set to TIMED_OUT
.