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
Modifier and TypeClassDescriptionstatic interface
The criteria that determine when and how a job abort takes place.static interface
The criteria that determine when and how a job abort takes place.static final class
A fluent builder forCfnJobTemplate
.static interface
Allows you to create an exponential rate of rollout for a job.static interface
The configuration that determines how many retries are allowed for each failure type for a job.static interface
Allows you to create a staged rollout of a job.static interface
An optional configuration within theSchedulingConfig
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.static interface
Configuration for pre-signed S3 URLs.static interface
Allows you to define a criteria to initiate the increase in rate of rollout for a job.static interface
The criteria that determines how many retries are allowed for each failure type for a job.static interface
Specifies 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnJobTemplate
(Construct scope, String id, CfnJobTemplateProps props) Create a newAWS::IoT::JobTemplate
.protected
CfnJobTemplate
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnJobTemplate
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAbortConfig
(Object value) The criteria that determine when and how a job abort takes place.void
setDescription
(String value) A description of the job template.void
setDocument
(String value) The job document.void
setDocumentSource
(String value) An S3 link to the job document to use in the template.void
The ARN of the job to use as the basis for the job template.void
Allows you to create the criteria to retry a job.void
Allows you to create the criteria to retry a job.void
Allows you to create a staged rollout of a job.void
setJobTemplateId
(String value) A unique identifier for the job template.void
setMaintenanceWindows
(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.void
setMaintenanceWindows
(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.void
setPresignedUrlConfig
(Object value) Configuration for pre-signed S3 URLs.void
setTimeoutConfig
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The ARN of the job to use as the basis for the job template. -
getCfnProperties
- Overrides:
getCfnProperties
in 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.
-