Description
This API can be called only when the job is in Waiting or Running state.
Parameter description
| Attribute | Type | Description |
|---|---|---|
| job | CreateResponse, str | Job ID |
Response description
The stop_job method returns an ActionResponse object. ActionResponse provides only two attributes: request ID and status code.
Example
try:# Get a Client object.client = Client(......# Job ID.job = "job-xxxx"res = client.stop_job(job)print (res.RequestId)except ClientError, e:print(e)