PollForThirdPartyJobs - CodePipeline
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

PollForThirdPartyJobs

Determines whether there are any third party jobs for a job worker to act on. Used for partner actions only.

Important

When this API is called, CodePipeline returns temporary credentials for the S3 bucket used to store artifacts for the pipeline, if the action requires access to that S3 bucket for input or output artifacts.

Request Syntax

{ "actionTypeId": { "category": "string", "owner": "string", "provider": "string", "version": "string" }, "maxBatchSize": number }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

actionTypeId

Represents information about an action type.

Type: ActionTypeId object

Required: Yes

maxBatchSize

The maximum number of jobs to return in a poll for jobs call.

Type: Integer

Valid Range: Minimum value of 1.

Required: No

Response Syntax

{ "jobs": [ { "clientId": "string", "jobId": "string" } ] }

Response Elements

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

The following data is returned in JSON format by the service.

jobs

Information about the jobs to take action on.

Type: Array of ThirdPartyJob objects

Errors

For information about the errors that are common to all actions, see Common Errors.

ActionTypeNotFoundException

The specified action type cannot be found.

HTTP Status Code: 400

ValidationException

The validation was specified in an invalid format.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: