Class CfnJobTemplate
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.iot.CfnJobTemplate
- All Implemented Interfaces:
IInspectable,ITaggable,IJobTemplateRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:40.078Z")
@Stability(Stable)
public class CfnJobTemplate
extends CfnResource
implements IInspectable, IJobTemplateRef, ITaggable
Represents a job template.
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;
CfnJobTemplate cfnJobTemplate = CfnJobTemplate.Builder.create(this, "MyCfnJobTemplate")
.description("description")
.jobTemplateId("jobTemplateId")
// the properties below are optional
.abortConfig(abortConfig)
.destinationPackageVersions(List.of("destinationPackageVersions"))
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe criteria that determine when and how a job abort takes place.static interfaceThe criteria that determine when and how a job abort takes place.static final classA fluent builder forCfnJobTemplate.static interfaceAllows you to create an exponential rate of rollout for a job.static interfaceThe configuration that determines how many retries are allowed for each failure type for a job.static interfaceAllows you to create a staged rollout of a job.static interfaceAn optional configuration within theSchedulingConfigto 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.static interfaceConfiguration for pre-signed S3 URLs.static interfaceAllows you to define a criteria to initiate the increase in rate of rollout for a job.static interfaceThe criteria that determines how many retries are allowed for each failure type for a job.static interfaceSpecifies the amount of time each device has to finish its execution of the job.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iot.IJobTemplateRef
IJobTemplateRef.Jsii$Default, IJobTemplateRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnJobTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnJobTemplate(software.amazon.jsii.JsiiObjectRef objRef) CfnJobTemplate(software.constructs.Construct scope, String id, CfnJobTemplateProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IJobTemplateReffromJobTemplateArn(software.constructs.Construct scope, String id, String arn) Creates a new IJobTemplateRef from an ARN.static IJobTemplateReffromJobTemplateId(software.constructs.Construct scope, String id, String jobTemplateId) Creates a new IJobTemplateRef from a jobTemplateId.The criteria that determine when and how a job abort takes place.The ARN of the job to use as the basis for the job template.A description of the job template.The package version Amazon Resource Names (ARNs) that are installed on the device’s reserved named shadow ($package) when the job successfully completes.The job document.An S3 link, or S3 object URL, to the job document.The ARN of the job to use as the basis for the job template.Allows you to create the criteria to retry a job.Allows you to create a staged rollout of a job.A unique identifier for the job template.A reference to a JobTemplate resource.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.Configuration for pre-signed S3 URLs.getTags()Tag Manager which manages the tags for this resource.Metadata that can be used to manage the job template.Specifies the amount of time each device has to finish its execution of the job.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAbortConfig(Object value) The criteria that determine when and how a job abort takes place.voidsetDescription(String value) A description of the job template.voidsetDestinationPackageVersions(List<String> value) The package version Amazon Resource Names (ARNs) that are installed on the device’s reserved named shadow ($package) when the job successfully completes.voidsetDocument(String value) The job document.voidsetDocumentSource(String value) An S3 link, or S3 object URL, to the job document.voidThe ARN of the job to use as the basis for the job template.voidAllows you to create the criteria to retry a job.voidAllows you to create the criteria to retry a job.voidAllows you to create a staged rollout of a job.voidsetJobTemplateId(String value) A unique identifier for the job template.voidsetMaintenanceWindows(List<Object> value) 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.voidsetMaintenanceWindows(IResolvable value) 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.voidsetPresignedUrlConfig(Object value) Configuration for pre-signed S3 URLs.voidsetTagsRaw(List<CfnTag> value) Metadata that can be used to manage the job template.voidsetTimeoutConfig(Object value) Specifies the amount of time each device has to finish its execution of the job.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnJobTemplate
protected CfnJobTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnJobTemplate
protected CfnJobTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnJobTemplate
@Stability(Stable) public CfnJobTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnJobTemplateProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromJobTemplateArn
@Stability(Stable) @NotNull public static IJobTemplateRef fromJobTemplateArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IJobTemplateRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromJobTemplateId
@Stability(Stable) @NotNull public static IJobTemplateRef fromJobTemplateId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String jobTemplateId) Creates a new IJobTemplateRef from a jobTemplateId.- Parameters:
scope- This parameter is required.id- This parameter is required.jobTemplateId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN of the job to use as the basis for the job template. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getJobTemplateRef
A reference to a JobTemplate resource.- Specified by:
getJobTemplateRefin interfaceIJobTemplateRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDescription
A description of the job template. -
setDescription
A description of the job template. -
getJobTemplateId
A unique identifier for the job template. -
setJobTemplateId
A unique identifier for the job template. -
getAbortConfig
The criteria that determine when and how a job abort takes place. -
setAbortConfig
The criteria that determine when and how a job abort takes place. -
getDestinationPackageVersions
The package version Amazon Resource Names (ARNs) that are installed on the device’s reserved named shadow ($package) when the job successfully completes. -
setDestinationPackageVersions
The package version Amazon Resource Names (ARNs) that are installed on the device’s reserved named shadow ($package) when the job successfully completes. -
getDocument
The job document. -
setDocument
The job document. -
getDocumentSource
An S3 link, or S3 object URL, to the job document. -
setDocumentSource
An S3 link, or S3 object URL, to the job document. -
getJobArn
The ARN of the job to use as the basis for the job template. -
setJobArn
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.Returns union: either
IResolvableorCfnJobTemplate.JobExecutionsRetryConfigProperty -
setJobExecutionsRetryConfig
Allows you to create the criteria to retry a job. -
setJobExecutionsRetryConfig
@Stability(Stable) public void setJobExecutionsRetryConfig(@Nullable CfnJobTemplate.JobExecutionsRetryConfigProperty value) Allows you to create the criteria to retry a job. -
getJobExecutionsRolloutConfig
Allows you to create a staged rollout of a job. -
setJobExecutionsRolloutConfig
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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnJobTemplate.MaintenanceWindowProperty> -
setMaintenanceWindows
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. -
setMaintenanceWindows
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. -
setPresignedUrlConfig
Configuration for pre-signed S3 URLs. -
getTagsRaw
Metadata that can be used to manage the job template. -
setTagsRaw
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. -
setTimeoutConfig
Specifies the amount of time each device has to finish its execution of the job.
-