Class CfnJob.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnJob.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJob>
- Enclosing class:
CfnJob
@Stability(Stable)
public static final class CfnJob.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJob>
A fluent builder for
CfnJob.-
Method Summary
Modifier and TypeMethodDescriptionabortConfig(IResolvable abortConfig) The criteria that determine when and how a job abort takes place.abortConfig(CfnJob.AbortConfigProperty abortConfig) The criteria that determine when and how a job abort takes place.build()static CfnJob.Builderdescription(String description) A short text description of the job.destinationPackageVersions(List<String> destinationPackageVersions) The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes.The job document.documentParameters(Map<String, String> documentParameters) Parameters of an Amazon Web Services managed template that you can specify to create the job document.documentParameters(IResolvable documentParameters) Parameters of an Amazon Web Services managed template that you can specify to create the job document.documentSource(String documentSource) An S3 link, or S3 object URL, to the job document.jobExecutionsRetryConfig(IResolvable jobExecutionsRetryConfig) The configuration that determines how many retries are allowed for each failure type for a job.jobExecutionsRetryConfig(CfnJob.JobExecutionsRetryConfigProperty jobExecutionsRetryConfig) The configuration that determines how many retries are allowed for each failure type for a job.jobExecutionsRolloutConfig(IResolvable jobExecutionsRolloutConfig) Allows you to create a staged rollout of a job.jobExecutionsRolloutConfig(CfnJob.JobExecutionsRolloutConfigProperty jobExecutionsRolloutConfig) Allows you to create a staged rollout of a job.A job identifier which must be unique for your AWS account.jobTemplateArn(String jobTemplateArn) The ARN of the job template used to create the job.presignedUrlConfig(IResolvable presignedUrlConfig) Configuration for pre-signed S3 URLs.presignedUrlConfig(CfnJob.PresignedUrlConfigProperty presignedUrlConfig) Configuration for pre-signed S3 URLs.schedulingConfig(IResolvable schedulingConfig) Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group.schedulingConfig(CfnJob.SchedulingConfigProperty schedulingConfig) Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group.Metadata which can be used to manage the job.A list of things and thing groups to which the job should be sent.targetSelection(String targetSelection) Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT).timeoutConfig(IResolvable timeoutConfig) Specifies the amount of time each device has to finish its execution of the job.timeoutConfig(CfnJob.TimeoutConfigProperty timeoutConfig) Specifies the amount of time each device has to finish its execution of the job.
-
Method Details
-
create
@Stability(Stable) public static CfnJob.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnJob.Builder.
-
jobId
A job identifier which must be unique for your AWS account.We recommend using a UUID. Alpha-numeric characters, '-' and '_' are valid for use here.
- Parameters:
jobId- A job identifier which must be unique for your AWS account. This parameter is required.- Returns:
this- See Also:
-
targets
A list of things and thing groups to which the job should be sent.- Parameters:
targets- A list of things and thing groups to which the job should be sent. This parameter is required.- Returns:
this- See Also:
-
abortConfig
The criteria that determine when and how a job abort takes place.- Parameters:
abortConfig- The criteria that determine when and how a job abort takes place. This parameter is required.- Returns:
this- See Also:
-
abortConfig
The criteria that determine when and how a job abort takes place.- Parameters:
abortConfig- The criteria that determine when and how a job abort takes place. This parameter is required.- Returns:
this- See Also:
-
description
A short text description of the job.- Parameters:
description- A short text description of the job. This parameter is required.- Returns:
this- See Also:
-
destinationPackageVersions
@Stability(Stable) public CfnJob.Builder destinationPackageVersions(List<String> destinationPackageVersions) The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes.- Parameters:
destinationPackageVersions- The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. This parameter is required.- Returns:
this- See Also:
-
document
The job document.Required if you don't specify a value for documentSource.
- Parameters:
document- The job document. This parameter is required.- Returns:
this- See Also:
-
documentParameters
Parameters of an Amazon Web Services managed template that you can specify to create the job document.- Parameters:
documentParameters- Parameters of an Amazon Web Services managed template that you can specify to create the job document. This parameter is required.- Returns:
this- See Also:
-
documentParameters
Parameters of an Amazon Web Services managed template that you can specify to create the job document.- Parameters:
documentParameters- Parameters of an Amazon Web Services managed template that you can specify to create the job document. This parameter is required.- Returns:
this- See Also:
-
documentSource
An S3 link, or S3 object URL, to the job document.The link is an Amazon S3 object URL and is required if you don't specify a value for document.
- Parameters:
documentSource- An S3 link, or S3 object URL, to the job document. This parameter is required.- Returns:
this- See Also:
-
jobExecutionsRetryConfig
@Stability(Stable) public CfnJob.Builder jobExecutionsRetryConfig(IResolvable jobExecutionsRetryConfig) The configuration that determines how many retries are allowed for each failure type for a job.- Parameters:
jobExecutionsRetryConfig- The configuration that determines how many retries are allowed for each failure type for a job. This parameter is required.- Returns:
this- See Also:
-
jobExecutionsRetryConfig
@Stability(Stable) public CfnJob.Builder jobExecutionsRetryConfig(CfnJob.JobExecutionsRetryConfigProperty jobExecutionsRetryConfig) The configuration that determines how many retries are allowed for each failure type for a job.- Parameters:
jobExecutionsRetryConfig- The configuration that determines how many retries are allowed for each failure type for a job. This parameter is required.- Returns:
this- See Also:
-
jobExecutionsRolloutConfig
@Stability(Stable) public CfnJob.Builder jobExecutionsRolloutConfig(IResolvable jobExecutionsRolloutConfig) Allows you to create a staged rollout of a job.- Parameters:
jobExecutionsRolloutConfig- Allows you to create a staged rollout of a job. This parameter is required.- Returns:
this- See Also:
-
jobExecutionsRolloutConfig
@Stability(Stable) public CfnJob.Builder jobExecutionsRolloutConfig(CfnJob.JobExecutionsRolloutConfigProperty jobExecutionsRolloutConfig) Allows you to create a staged rollout of a job.- Parameters:
jobExecutionsRolloutConfig- Allows you to create a staged rollout of a job. This parameter is required.- Returns:
this- See Also:
-
jobTemplateArn
The ARN of the job template used to create the job.- Parameters:
jobTemplateArn- The ARN of the job template used to create the job. This parameter is required.- Returns:
this- See Also:
-
presignedUrlConfig
Configuration for pre-signed S3 URLs.- Parameters:
presignedUrlConfig- Configuration for pre-signed S3 URLs. This parameter is required.- Returns:
this- See Also:
-
presignedUrlConfig
@Stability(Stable) public CfnJob.Builder presignedUrlConfig(CfnJob.PresignedUrlConfigProperty presignedUrlConfig) Configuration for pre-signed S3 URLs.- Parameters:
presignedUrlConfig- Configuration for pre-signed S3 URLs. This parameter is required.- Returns:
this- See Also:
-
schedulingConfig
Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group.- Parameters:
schedulingConfig- Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group. This parameter is required.- Returns:
this- See Also:
-
schedulingConfig
@Stability(Stable) public CfnJob.Builder schedulingConfig(CfnJob.SchedulingConfigProperty schedulingConfig) Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group.- Parameters:
schedulingConfig- Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group. This parameter is required.- Returns:
this- See Also:
-
tags
Metadata which can be used to manage the job.- Parameters:
tags- Metadata which can be used to manage the job. This parameter is required.- Returns:
this- See Also:
-
targetSelection
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT).- Parameters:
targetSelection- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). This parameter is required.- Returns:
this- See Also:
-
timeoutConfig
Specifies the amount of time each device has to finish its execution of the job.- Parameters:
timeoutConfig- Specifies the amount of time each device has to finish its execution of the job. This parameter is required.- Returns:
this- See Also:
-
timeoutConfig
Specifies the amount of time each device has to finish its execution of the job.- Parameters:
timeoutConfig- Specifies the amount of time each device has to finish its execution of the job. This parameter is required.- Returns:
this- See Also:
-
build
-