CreateJobRequest
¶
Source code in docs_src/capo_iot/types/create_job_request.py
abort_config
instance-attribute
¶
abort_config: NotRequired[AbortConfig]
Allows you to create the criteria to abort a job.
description
instance-attribute
¶
description: NotRequired[JobDescription]
A short text description of the job.
destination_package_versions
instance-attribute
¶
destination_package_versions: NotRequired[DestinationPackageVersions]
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
document
instance-attribute
¶
document: NotRequired[JobDocument]
The job document. Required if you don't specify a value for documentSource.
document_parameters
instance-attribute
¶
document_parameters: NotRequired[ParameterMap]
Parameters of an Amazon Web Services managed template that you can specify to create the job document.
documentParameters can only be used when creating jobs from Amazon Web Services managed templates. This parameter can't be used with custom job templates or to create jobs from them.
document_source
instance-attribute
¶
document_source: NotRequired[JobDocumentSource]
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.
For example, --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
For more information, see Methods for accessing a bucket.
job_executions_retry_config
instance-attribute
¶
job_executions_retry_config: NotRequired[JobExecutionsRetryConfig]
Allows you to create the criteria to retry a job.
job_executions_rollout_config
instance-attribute
¶
job_executions_rollout_config: NotRequired[JobExecutionsRolloutConfig]
Allows you to create a staged rollout of the job.
job_id
instance-attribute
¶
job_id: JobId
A job identifier which must be unique for your account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.
job_template_arn
instance-attribute
¶
job_template_arn: NotRequired[JobTemplateArn]
The ARN of the job template used to create the job.
namespace_id
instance-attribute
¶
namespace_id: NotRequired[NamespaceId]
The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
The namespaceId feature is only supported by IoT Greengrass at this time. For more information, see Setting up IoT Greengrass core devices.
presigned_url_config
instance-attribute
¶
presigned_url_config: NotRequired[PresignedUrlConfig]
Configuration information for pre-signed S3 URLs.
scheduling_config
instance-attribute
¶
scheduling_config: NotRequired[SchedulingConfig]
The configuration that allows you to schedule a job for a future date and time in addition to specifying the end behavior for each job execution.
target_selection
instance-attribute
¶
target_selection: NotRequired[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). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets. By using continuous jobs, devices that join the group receive the job execution even after the job has been created.
targets
instance-attribute
¶
targets: JobTargets
A list of things and thing groups to which the job should be sent.
timeout_config
instance-attribute
¶
timeout_config: NotRequired[TimeoutConfig]
Specifies the amount of time each device has to finish its execution of the job. The 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 time expires, it will be automatically set to TIMED_OUT.