

# PutJobSuccessResult
<a name="API_PutJobSuccessResult"></a>

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

## Request Syntax
<a name="API_PutJobSuccessResult_RequestSyntax"></a>

```
{
   "continuationToken": "string",
   "currentRevision": { 
      "changeIdentifier": "string",
      "created": number,
      "revision": "string",
      "revisionSummary": "string"
   },
   "executionDetails": { 
      "externalExecutionId": "string",
      "percentComplete": number,
      "summary": "string"
   },
   "jobId": "string",
   "outputVariables": { 
      "string" : "string" 
   }
}
```

## Request Parameters
<a name="API_PutJobSuccessResult_RequestParameters"></a>

For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [continuationToken](#API_PutJobSuccessResult_RequestSyntax) **   <a name="CodePipeline-PutJobSuccessResult-request-continuationToken"></a>
A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful job provides to identify a custom action in progress. Future jobs use this token to identify the running instance of the action. It can be reused to return more information about the progress of the custom action. When the action is complete, no continuation token should be supplied.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Required: No

 ** [currentRevision](#API_PutJobSuccessResult_RequestSyntax) **   <a name="CodePipeline-PutJobSuccessResult-request-currentRevision"></a>
The ID of the current revision of the artifact successfully worked on by the job.  
Type: [CurrentRevision](API_CurrentRevision.md) object  
Required: No

 ** [executionDetails](#API_PutJobSuccessResult_RequestSyntax) **   <a name="CodePipeline-PutJobSuccessResult-request-executionDetails"></a>
The execution details of the successful job, such as the actions taken by the job worker.  
Type: [ExecutionDetails](API_ExecutionDetails.md) object  
Required: No

 ** [jobId](#API_PutJobSuccessResult_RequestSyntax) **   <a name="CodePipeline-PutJobSuccessResult-request-jobId"></a>
The unique system-generated ID of the job that succeeded. This is the same ID returned from `PollForJobs`.  
Type: String  
Pattern: `[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`   
Required: Yes

 ** [outputVariables](#API_PutJobSuccessResult_RequestSyntax) **   <a name="CodePipeline-PutJobSuccessResult-request-outputVariables"></a>
Key-value pairs produced as output by a job worker that can be made available to a downstream action configuration. `outputVariables` can be included only when there is no continuation token on the request.  
Type: String to string map  
Key Pattern: `[A-Za-z0-9@\-_]+`   
Required: No

## Response Elements
<a name="API_PutJobSuccessResult_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

## Errors
<a name="API_PutJobSuccessResult_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** InvalidJobStateException **   
The job state was specified in an invalid format.  
HTTP Status Code: 400

 ** JobNotFoundException **   
The job was specified in an invalid format or cannot be found.  
HTTP Status Code: 400

 ** OutputVariablesSizeExceededException **   
Exceeded the total size limit for all variables in the pipeline.  
HTTP Status Code: 400

 ** ValidationException **   
The validation was specified in an invalid format.  
HTTP Status Code: 400

## See Also
<a name="API_PutJobSuccessResult_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/codepipeline-2015-07-09/PutJobSuccessResult) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/codepipeline-2015-07-09/PutJobSuccessResult) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/codepipeline-2015-07-09/PutJobSuccessResult) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/codepipeline-2015-07-09/PutJobSuccessResult) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/codepipeline-2015-07-09/PutJobSuccessResult) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/codepipeline-2015-07-09/PutJobSuccessResult) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/codepipeline-2015-07-09/PutJobSuccessResult) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/codepipeline-2015-07-09/PutJobSuccessResult) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/codepipeline-2015-07-09/PutJobSuccessResult) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/codepipeline-2015-07-09/PutJobSuccessResult) 