Class CfnJobTemplateProps
Properties for defining a CfnJobTemplate
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnJobTemplateProps : Object, ICfnJobTemplateProps
Syntax (vb)
Public Class CfnJobTemplateProps
Inherits Object
Implements ICfnJobTemplateProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-jobtemplate.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var abortConfig;
var jobExecutionsRolloutConfig;
var presignedUrlConfig;
var timeoutConfig;
var cfnJobTemplateProps = new CfnJobTemplateProps {
Description = "description",
JobTemplateId = "jobTemplateId",
// the properties below are optional
AbortConfig = abortConfig,
DestinationPackageVersions = new [] { "destinationPackageVersions" },
Document = "document",
DocumentSource = "documentSource",
JobArn = "jobArn",
JobExecutionsRetryConfig = new JobExecutionsRetryConfigProperty {
RetryCriteriaList = new [] { new RetryCriteriaProperty {
FailureType = "failureType",
NumberOfRetries = 123
} }
},
JobExecutionsRolloutConfig = jobExecutionsRolloutConfig,
MaintenanceWindows = new [] { new MaintenanceWindowProperty {
DurationInMinutes = 123,
StartTime = "startTime"
} },
PresignedUrlConfig = presignedUrlConfig,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TimeoutConfig = timeoutConfig
};
Synopsis
Constructors
Cfn |
Properties
Abort |
The criteria that determine when and how a job abort takes place. |
Description | A description of the job template. |
Destination |
The package version Amazon Resource Names (ARNs) that are installed on the device’s reserved named shadow ( |
Document | The job document. |
Document |
An S3 link, or S3 object URL, to the job document. |
Job |
The ARN of the job to use as the basis for the job template. |
Job |
Allows you to create the criteria to retry a job. |
Job |
Allows you to create a staged rollout of a job. |
Job |
A unique identifier for the job template. |
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 |
Configuration for pre-signed S3 URLs. |
Tags | Metadata that can be used to manage the job template. |
Timeout |
Specifies the amount of time each device has to finish its execution of the job. |
Constructors
CfnJobTemplateProps()
public CfnJobTemplateProps()
Properties
AbortConfig
The criteria that determine when and how a job abort takes place.
public object AbortConfig { get; set; }
Property Value
System.
Remarks
Description
A description of the job template.
public string Description { get; set; }
Property Value
System.
Remarks
DestinationPackageVersions
The package version Amazon Resource Names (ARNs) that are installed on the device’s reserved named shadow ( $package
) when the job successfully completes.
public string[] DestinationPackageVersions { get; set; }
Property Value
System.
Remarks
Note: Up to 25 package version ARNS are allowed.
Document
The job document.
public string Document { get; set; }
Property Value
System.
Remarks
Required if you don't specify a value for documentSource
.
DocumentSource
An S3 link, or S3 object URL, to the job document.
public string DocumentSource { get; set; }
Property Value
System.
Remarks
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
The ARN of the job to use as the basis for the job template.
public string JobArn { get; set; }
Property Value
System.
Remarks
JobExecutionsRetryConfig
Allows you to create the criteria to retry a job.
public object JobExecutionsRetryConfig { get; set; }
Property Value
System.
Remarks
JobExecutionsRolloutConfig
Allows you to create a staged rollout of a job.
public object JobExecutionsRolloutConfig { get; set; }
Property Value
System.
Remarks
JobTemplateId
A unique identifier for the job template.
public string JobTemplateId { get; set; }
Property Value
System.
Remarks
We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
MaintenanceWindows
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.
public object MaintenanceWindows { get; set; }
Property Value
System.
Remarks
PresignedUrlConfig
Configuration for pre-signed S3 URLs.
public object PresignedUrlConfig { get; set; }
Property Value
System.
Remarks
Tags
Metadata that can be used to manage the job template.
public ICfnTag[] Tags { get; set; }
Property Value
ICfn
Remarks
TimeoutConfig
Specifies the amount of time each device has to finish its execution of the job.
public object TimeoutConfig { get; set; }
Property Value
System.
Remarks
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
.