@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.859Z") @Stability(value=Stable) public class CfnJobTemplate extends CfnResource implements IInspectable
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 jobExecutionsRetryConfig;
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(jobExecutionsRetryConfig)
.jobExecutionsRolloutConfig(jobExecutionsRolloutConfig)
.presignedUrlConfig(presignedUrlConfig)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeoutConfig(timeoutConfig)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnJobTemplate.Builder
A fluent builder for
CfnJobTemplate. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnJobTemplate(software.constructs.Construct scope,
String id,
CfnJobTemplateProps props)
Create a new `AWS::IoT::JobTemplate`.
|
protected |
CfnJobTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnJobTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAbortConfig()
The criteria that determine when and how a job abort takes place.
|
String |
getAttrArn()
The ARN of the job to use as the basis for the job template.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description of the job template.
|
String |
getDocument()
The job document.
|
String |
getDocumentSource()
An S3 link to the job document to use in the template.
|
String |
getJobArn()
The ARN of the job to use as the basis for the job template.
|
Object |
getJobExecutionsRetryConfig()
Allows you to create the criteria to retry a job.
|
Object |
getJobExecutionsRolloutConfig()
Allows you to create a staged rollout of a job.
|
String |
getJobTemplateId()
A unique identifier for the job template.
|
Object |
getPresignedUrlConfig()
Configuration for pre-signed S3 URLs.
|
TagManager |
getTags()
Metadata that can be used to manage the job template.
|
Object |
getTimeoutConfig()
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.
|
protected Map<String,Object> |
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 |
setJobArn(String value)
The ARN of the job to use as the basis for the job template.
|
void |
setJobExecutionsRetryConfig(Object value)
Allows you to create the criteria to retry a job.
|
void |
setJobExecutionsRolloutConfig(Object value)
Allows you to create a staged rollout of a job.
|
void |
setJobTemplateId(String value)
A unique identifier for the job template.
|
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnJobTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnJobTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnJobTemplate(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnJobTemplateProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getAbortConfig()
@Stability(value=Stable)
public void setAbortConfig(@NotNull
Object value)
@Stability(value=Stable) @NotNull public String getDescription()
@Stability(value=Stable)
public void setDescription(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getJobExecutionsRetryConfig()
@Stability(value=Stable)
public void setJobExecutionsRetryConfig(@NotNull
Object value)
@Stability(value=Stable) @NotNull public Object getJobExecutionsRolloutConfig()
@Stability(value=Stable)
public void setJobExecutionsRolloutConfig(@NotNull
Object value)
@Stability(value=Stable) @NotNull public String getJobTemplateId()
We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
@Stability(value=Stable)
public void setJobTemplateId(@NotNull
String value)
We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
@Stability(value=Stable) @NotNull public Object getPresignedUrlConfig()
@Stability(value=Stable)
public void setPresignedUrlConfig(@NotNull
Object value)
@Stability(value=Stable) @NotNull public Object getTimeoutConfig()
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 .
@Stability(value=Stable)
public void setTimeoutConfig(@NotNull
Object value)
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 .
@Stability(value=Stable) @Nullable public String getDocument()
Required if you don't specify a value for documentSource .
@Stability(value=Stable)
public void setDocument(@Nullable
String value)
Required if you don't specify a value for documentSource .
@Stability(value=Stable) @Nullable public String getDocumentSource()
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.
@Stability(value=Stable)
public void setDocumentSource(@Nullable
String value)
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.
@Stability(value=Stable) @Nullable public String getJobArn()
@Stability(value=Stable)
public void setJobArn(@Nullable
String value)
Copyright © 2022. All rights reserved.