Class CfnJobTemplate
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::IoT::JobTemplate.
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)
.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
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnJobTemplate(Construct scope, String id, CfnJobTemplateProps props) Create a newAWS::IoT::JobTemplate.protectedCfnJobTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnJobTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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 job document.An S3 link to the job document to use in the template.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.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()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.voidsetDocument(String value) The job document.voidsetDocumentSource(String value) An S3 link to the job document to use in the template.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.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnJobTemplateProps props) Create a newAWS::IoT::JobTemplate.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getTags
Metadata that can be used to manage 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. -
getDescription
A description of the job template. -
setDescription
A description of the job template. -
getJobExecutionsRolloutConfig
Allows you to create a staged rollout of a job. -
setJobExecutionsRolloutConfig
Allows you to create a staged rollout of a job. -
getJobTemplateId
A unique identifier for the job template.We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
-
setJobTemplateId
A unique identifier for the job template.We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
-
getPresignedUrlConfig
Configuration for pre-signed S3 URLs. -
setPresignedUrlConfig
Configuration for pre-signed S3 URLs. -
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. -
setTimeoutConfig
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. -
getDocument
The job document.Required if you don't specify a value for
documentSource. -
setDocument
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.
-
setDocumentSource
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. -
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. -
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. -
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. -
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.
-