Skip to content

PollForJobs

Source: src/AWS/CodePipeline/PollForJobs.ts

Runtime binding for codepipeline:PollForJobs — fetches pending jobs for a custom action type so a job worker can claim and execute them. Valid only for action types with Custom in the owner field; returned jobs include the temporary artifact-store credentials (as Redacted values) and any secret configuration values.

CodePipeline grants job-worker polling on * (the action-type sub-ARN is also honored, but the binding takes no resource — the action type is a request field).

const pollForJobs = yield* AWS.CodePipeline.PollForJobs();
const { jobs } = yield* pollForJobs({
actionTypeId: {
category: "Build",
owner: "Custom",
provider: "MyBuilder",
version: "1",
},
maxBatchSize: 1,
});