:doc:`CodePipeline <../../codepipeline>` / Client / put_job_failure_result

**********************
put_job_failure_result
**********************



.. py:method:: CodePipeline.Client.put_job_failure_result(**kwargs)

  

  Represents the failure of a job as returned to the pipeline by a job worker. Used for custom actions only.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResult>`_  


  **Request Syntax**
  ::

    response = client.put_job_failure_result(
        jobId='string',
        failureDetails={
            'type': 'JobFailed'|'ConfigurationError'|'PermissionError'|'RevisionOutOfSync'|'RevisionUnavailable'|'SystemUnavailable',
            'message': 'string',
            'externalExecutionId': 'string'
        }
    )
    
  :type jobId: string
  :param jobId: **[REQUIRED]** 

    The unique system-generated ID of the job that failed. This is the same ID returned from ``PollForJobs``.

    

  
  :type failureDetails: dict
  :param failureDetails: **[REQUIRED]** 

    The details about the failure of a job.

    

  
    - **type** *(string) --* **[REQUIRED]** 

      The type of the failure.

      

    
    - **message** *(string) --* **[REQUIRED]** 

      The message about the failure.

      

    
    - **externalExecutionId** *(string) --* 

      The external ID of the run of the action that failed.

      

    
  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CodePipeline.Client.exceptions.ValidationException`

  
  *   :py:class:`CodePipeline.Client.exceptions.JobNotFoundException`

  
  *   :py:class:`CodePipeline.Client.exceptions.InvalidJobStateException`

  