cancel_harvest_job
¶
cancel_harvest_job(
channel_group_name: ResourceName,
channel_name: ResourceName,
origin_endpoint_name: ResourceName,
harvest_job_name: ResourceName,
*,
config_overrides: Optional[MediaPackageV2ClientConfig] = None,
e_tag: Optional[EntityTag] = None,
) -> CancelHarvestJobResponse
Cancels an in-progress harvest job.
Parameters:
-
channel_group_name(ResourceName) –The name of the channel group containing the channel from which the harvest job is running.
-
channel_name(ResourceName) –The name of the channel from which the harvest job is running.
-
origin_endpoint_name(ResourceName) –The name of the origin endpoint that the harvest job is harvesting from. This cannot be changed after the harvest job is submitted.
-
harvest_job_name(ResourceName) –The name of the harvest job to cancel. This name must be unique within the channel and cannot be changed after the harvest job is submitted.
-
e_tag(Optional[EntityTag], default:None) –The current Entity Tag (ETag) associated with the harvest job. Used for concurrency control.
Raises:
-
AccessDeniedException–Access is denied because either you don't have permissions to perform the requested operation or MediaPackage is getting throttling errors with CDN authorization. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide. Or, if you're using CDN authorization, you will receive this exception if MediaPackage receives a throttling error from Secrets Manager.
-
ConflictException–Updating or deleting this resource can cause an inconsistent state.
-
InternalServerException–Indicates that an error from the service occurred while trying to process a request.
-
ResourceNotFoundException–The specified resource doesn't exist.
-
ThrottlingException–The request throughput limit was exceeded.
-
ValidationException–The input failed to meet the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Cancel a Harvest Job
>>> client.cancel_harvest_job(channel_group_name='exampleChannelGroup', channel_name='exampleChannelName', origin_endpoint_name='exampleOriginEndpointName', harvest_job_name='HarvestJobName')
Source code in docs_src/capo_mediapackagev2/_services/media_package_v2.py
2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 | |