Interface CfnJobTemplateProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJobTemplateProps.Jsii$Proxy
CfnJobTemplate
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.iot.*; Object abortConfig; Object jobExecutionsRolloutConfig; Object presignedUrlConfig; Object timeoutConfig; CfnJobTemplateProps cfnJobTemplateProps = CfnJobTemplateProps.builder() .description("description") .jobTemplateId("jobTemplateId") // the properties below are optional .abortConfig(abortConfig) .document("document") .documentSource("documentSource") .jobArn("jobArn") .jobExecutionsRetryConfig(JobExecutionsRetryConfigProperty.builder() .retryCriteriaList(List.of(RetryCriteriaProperty.builder() .failureType("failureType") .numberOfRetries(123) .build())) .build()) .jobExecutionsRolloutConfig(jobExecutionsRolloutConfig) .maintenanceWindows(List.of(MaintenanceWindowProperty.builder() .durationInMinutes(123) .startTime("startTime") .build())) .presignedUrlConfig(presignedUrlConfig) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .timeoutConfig(timeoutConfig) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnJobTemplateProps
static final class
An implementation forCfnJobTemplateProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnJobTemplateProps.Builder
builder()
default Object
The criteria that determine when and how a job abort takes place.A description of the job template.default String
The job document.default String
An S3 link to the job document to use in the template.default String
The ARN of the job to use as the basis for the job template.default Object
Allows you to create the criteria to retry a job.default Object
Allows you to create a staged rollout of a job.A unique identifier for the job template.default Object
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.default Object
Configuration for pre-signed S3 URLs.getTags()
Metadata that can be used to manage the job template.default Object
Specifies the amount of time each device has to finish its execution of the job.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
A description of the job template. -
getJobTemplateId
A unique identifier for the job template.We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
-
getAbortConfig
The criteria that determine when and how a job abort takes place. -
getDocument
The job document.Required if you don't specify a value for
documentSource
. -
getDocumentSource
An S3 link to the job document to use in the template.Required if you don't specify a value for
document
.If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/ *bucket* / *key* }
where bucket is your bucket name and key is the object in the bucket to which you are linking.
-
getJobArn
The ARN of the job to use as the basis for the job template. -
getJobExecutionsRetryConfig
Allows you to create the criteria to retry a job. -
getJobExecutionsRolloutConfig
Allows you to create a staged rollout of a job. -
getMaintenanceWindows
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. -
getPresignedUrlConfig
Configuration for pre-signed S3 URLs. -
getTags
Metadata that can be used to manage the job template. -
getTimeoutConfig
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 toTIMED_OUT
. -
builder
- Returns:
- a
CfnJobTemplateProps.Builder
ofCfnJobTemplateProps
-