create_job_template
¶
create_job_template(
job_template_id: JobTemplateId,
description: JobDescription,
*,
config_overrides: Optional[IoTClientConfig] = None,
job_arn: Optional[JobArn] = None,
document_source: Optional[JobDocumentSource] = None,
document: Optional[JobDocument] = None,
presigned_url_config: Optional[PresignedUrlConfig] = None,
job_executions_rollout_config: Optional[JobExecutionsRolloutConfig] = None,
abort_config: Optional[AbortConfig] = None,
timeout_config: Optional[TimeoutConfig] = None,
tags: Optional[TagList] = None,
job_executions_retry_config: Optional[JobExecutionsRetryConfig] = None,
maintenance_windows: Optional[MaintenanceWindows] = None,
destination_package_versions: Optional[DestinationPackageVersions] = None,
) -> CreateJobTemplateResponse
Creates a job template.
Requires permission to access the CreateJobTemplate action.
Parameters:
-
job_template_id(JobTemplateId) –A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
-
job_arn(Optional[JobArn], default:None) –The ARN of the job to use as the basis for the job template.
-
document_source(Optional[JobDocumentSource], default:None) –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.0For more information, see Methods for accessing a bucket.
-
document(Optional[JobDocument], default:None) –The job document. Required if you don't specify a value for
documentSource. -
description(JobDescription) –A description of the job document.
-
tags(Optional[TagList], default:None) –Metadata that can be used to manage the job template.
-
job_executions_retry_config(Optional[JobExecutionsRetryConfig], default:None) –Allows you to create the criteria to retry a job.
-
maintenance_windows(Optional[MaintenanceWindows], default:None) –Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.
-
destination_package_versions(Optional[DestinationPackageVersions], default:None) –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.
Raises:
-
ConflictException–The request conflicts with the current state of the resource.
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 | |