create_ota_update
¶
create_ota_update(
ota_update_id: OTAUpdateId,
targets: Targets,
files: OTAUpdateFiles,
role_arn: RoleArn,
*,
config_overrides: Optional[IoTClientConfig] = None,
description: Optional[OTAUpdateDescription] = None,
protocols: Optional[Protocols] = None,
target_selection: Optional[TargetSelection] = None,
aws_job_executions_rollout_config: Optional[AwsJobExecutionsRolloutConfig] = None,
aws_job_presigned_url_config: Optional[AwsJobPresignedUrlConfig] = None,
aws_job_abort_config: Optional[AwsJobAbortConfig] = None,
aws_job_timeout_config: Optional[AwsJobTimeoutConfig] = None,
additional_parameters: Optional[AdditionalParameterMap] = None,
tags: Optional[TagList] = None,
) -> CreateOTAUpdateResponse
Creates an IoT OTA update on a target group of things or groups.
Requires permission to access the CreateOTAUpdate action.
Parameters:
-
ota_update_id(OTAUpdateId) –The ID of the OTA update to be created.
-
description(Optional[OTAUpdateDescription], default:None) –The description of the OTA update.
-
targets(Targets) –The devices targeted to receive OTA updates.
-
protocols(Optional[Protocols], default:None) –The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
-
target_selection(Optional[TargetSelection], default:None) –Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
-
aws_job_executions_rollout_config(Optional[AwsJobExecutionsRolloutConfig], default:None) –Configuration for the rollout of OTA updates.
-
aws_job_presigned_url_config(Optional[AwsJobPresignedUrlConfig], default:None) –Configuration information for pre-signed URLs.
-
aws_job_abort_config(Optional[AwsJobAbortConfig], default:None) –The criteria that determine when and how a job abort takes place.
-
aws_job_timeout_config(Optional[AwsJobTimeoutConfig], default:None) –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. -
files(OTAUpdateFiles) –The files to be streamed by the OTA update.
-
role_arn(RoleArn) –The IAM role that grants Amazon Web Services IoT Core access to the Amazon S3, IoT jobs and Amazon Web Services Code Signing resources to create an OTA update job.
-
additional_parameters(Optional[AdditionalParameterMap], default:None) –A list of additional OTA update parameters, which are name-value pairs. They won't be sent to devices as a part of the Job document.
-
tags(Optional[TagList], default:None) –Metadata which can be used to manage updates.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
ResourceAlreadyExistsException–The resource already exists.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 | |