Expand description
Overview
This is the AWS CodePipeline API Reference. This guide provides descriptions of the actions and data types for AWS CodePipeline. Some functionality for your pipeline can only be configured through the API. For more information, see the AWS CodePipeline User Guide.
You can use the AWS CodePipeline API to work with pipelines, stages, actions, and transitions.
Pipelines are models of automated release processes. Each pipeline is uniquely named, and consists of stages, actions, and transitions.
You can work with pipelines by calling:
-
CreatePipeline, which creates a uniquely named pipeline.
-
DeletePipeline, which deletes the specified pipeline.
-
GetPipeline, which returns information about the pipeline structure and pipeline metadata, including the pipeline Amazon Resource Name (ARN).
-
GetPipelineExecution, which returns information about a specific execution of a pipeline.
-
GetPipelineState, which returns information about the current state of the stages and actions of a pipeline.
-
ListActionExecutions, which returns action-level details for past executions. The details include full stage and action-level details, including individual action duration, status, any errors that occurred during the execution, and input and output artifact location details.
-
ListPipelines, which gets a summary of all of the pipelines associated with your account.
-
ListPipelineExecutions, which gets a summary of the most recent executions for a pipeline.
-
StartPipelineExecution, which runs the most recent revision of an artifact through the pipeline.
-
StopPipelineExecution, which stops the specified pipeline execution from continuing through the pipeline.
-
UpdatePipeline, which updates a pipeline with edits or changes to the structure of the pipeline.
Pipelines include stages. Each stage contains one or more actions that must complete before the next stage begins. A stage results in success or failure. If a stage fails, the pipeline stops at that stage and remains stopped until either a new version of an artifact appears in the source location, or a user takes action to rerun the most recent artifact through the pipeline. You can call GetPipelineState, which displays the status of a pipeline, including the status of stages in the pipeline, or GetPipeline, which returns the entire structure of the pipeline, including the stages of that pipeline. For more information about the structure of stages and actions, see AWS CodePipeline Pipeline Structure Reference.
Pipeline stages include actions that are categorized into categories such as source or build actions performed in a stage of a pipeline. For example, you can use a source action to import artifacts into a pipeline from a source such as Amazon S3. Like stages, you do not work with actions directly in most cases, but you do define and interact with actions when working with pipeline operations such as CreatePipeline and GetPipelineState. Valid action categories are:
-
Source
-
Build
-
Test
-
Deploy
-
Approval
-
Invoke
Pipelines also include transitions, which allow the transition of artifacts from one stage to the next in a pipeline after the actions in one stage complete.
You can work with transitions by calling:
-
DisableStageTransition, which prevents artifacts from transitioning to the next stage in a pipeline.
-
EnableStageTransition, which enables transition of artifacts between stages in a pipeline.
Using the API to integrate with AWS CodePipeline
For third-party integrators or developers who want to create their own integrations with AWS CodePipeline, the expected sequence varies from the standard API user. To integrate with AWS CodePipeline, developers need to work with the following items:
Jobs, which are instances of an action. For example, a job for a source action might import a revision of an artifact from a source.
You can work with jobs by calling:
-
AcknowledgeJob, which confirms whether a job worker has received the specified job.
-
GetJobDetails, which returns the details of a job.
-
PollForJobs, which determines whether there are any jobs to act on.
-
PutJobFailureResult, which provides details of a job failure.
-
PutJobSuccessResult, which provides details of a job success.
Third party jobs, which are instances of an action created by a partner action and integrated into AWS CodePipeline. Partner actions are created by members of the AWS Partner Network.
You can work with third party jobs by calling:
-
AcknowledgeThirdPartyJob, which confirms whether a job worker has received the specified job.
-
GetThirdPartyJobDetails, which requests the details of a job for a partner action.
-
PollForThirdPartyJobs, which determines whether there are any jobs to act on.
-
PutThirdPartyJobFailureResult, which provides details of a job failure.
-
PutThirdPartyJobSuccessResult, which provides details of a job success.
If you’re using the service, you’re probably looking for CodePipelineClient and CodePipeline.
Structs§
- AWSSession
Credentials Represents an AWS session credentials object. These credentials are temporary credentials that are issued by AWS Secure Token Service (STS). They can be used to access input and output artifacts in the S3 bucket used to store artifact for the pipeline in AWS CodePipeline.
- Acknowledge
JobInput Represents the input of an AcknowledgeJob action.
- Acknowledge
JobOutput Represents the output of an AcknowledgeJob action.
- Acknowledge
Third Party JobInput Represents the input of an AcknowledgeThirdPartyJob action.
- Acknowledge
Third Party JobOutput Represents the output of an AcknowledgeThirdPartyJob action.
- Action
Configuration Represents information about an action configuration.
- Action
Configuration Property Represents information about an action configuration property.
- Action
Context Represents the context of an action in the stage of a pipeline to a job worker.
- Action
Declaration Represents information about an action declaration.
- Action
Execution Represents information about the run of an action.
- Action
Execution Detail Returns information about an execution of an action, including the action execution ID, and the name, version, and timing of the action.
- Action
Execution Filter Filter values for the action execution.
- Action
Execution Input Input information used for an action execution.
- Action
Execution Output Output details listed for an action execution, such as the action execution result.
- Action
Execution Result Execution result information, such as the external execution ID.
- Action
Revision Represents information about the version (or revision) of an action.
- Action
State Represents information about the state of an action.
- Action
Type Returns information about the details of an action type.
- Action
Type Id Represents information about an action type.
- Action
Type Settings Returns information about the settings for an action type.
- Approval
Result Represents information about the result of an approval request.
- Artifact
Represents information about an artifact that is worked on by actions in the pipeline.
- Artifact
Detail Artifact details for the action execution, such as the artifact location.
- Artifact
Details Returns information about the details of an artifact.
- Artifact
Location Represents information about the location of an artifact.
- Artifact
Revision Represents revision details of an artifact.
- Artifact
Store The S3 bucket where artifacts for the pipeline are stored.
You must include either
artifactStore
orartifactStores
in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores
.- Blocker
Declaration Reserved for future use.
- Code
Pipeline Client - A client for the CodePipeline API.
- Create
Custom Action Type Input Represents the input of a CreateCustomActionType operation.
- Create
Custom Action Type Output Represents the output of a
CreateCustomActionType
operation.- Create
Pipeline Input Represents the input of a
CreatePipeline
action.- Create
Pipeline Output Represents the output of a
CreatePipeline
action.- Current
Revision Represents information about a current revision.
- Delete
Custom Action Type Input Represents the input of a
DeleteCustomActionType
operation. The custom action will be marked as deleted.- Delete
Pipeline Input Represents the input of a
DeletePipeline
action.- Delete
Webhook Input - Delete
Webhook Output - Deregister
Webhook With Third Party Input - Deregister
Webhook With Third Party Output - Disable
Stage Transition Input Represents the input of a
DisableStageTransition
action.- Enable
Stage Transition Input Represents the input of an
EnableStageTransition
action.- Encryption
Key Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key.
- Error
Details Represents information about an error in AWS CodePipeline.
- Execution
Details The details of the actions taken and results produced on an artifact as it passes through stages in the pipeline.
- Execution
Trigger The interaction or event that started a pipeline execution.
- Failure
Details Represents information about failure details.
- GetJob
Details Input Represents the input of a
GetJobDetails
action.- GetJob
Details Output Represents the output of a
GetJobDetails
action.- GetPipeline
Execution Input Represents the input of a
GetPipelineExecution
action.- GetPipeline
Execution Output Represents the output of a
GetPipelineExecution
action.- GetPipeline
Input Represents the input of a
GetPipeline
action.- GetPipeline
Output Represents the output of a
GetPipeline
action.- GetPipeline
State Input Represents the input of a
GetPipelineState
action.- GetPipeline
State Output Represents the output of a
GetPipelineState
action.- GetThird
Party JobDetails Input Represents the input of a
GetThirdPartyJobDetails
action.- GetThird
Party JobDetails Output Represents the output of a
GetThirdPartyJobDetails
action.- Input
Artifact Represents information about an artifact to be worked on, such as a test or build artifact.
- Job
Represents information about a job.
- JobData
Represents other information about a job required for a job worker to complete the job.
- JobDetails
Represents information about the details of a job.
- List
Action Executions Input - List
Action Executions Output - List
Action Types Input Represents the input of a
ListActionTypes
action.- List
Action Types Output Represents the output of a
ListActionTypes
action.- List
Pipeline Executions Input Represents the input of a
ListPipelineExecutions
action.- List
Pipeline Executions Output Represents the output of a
ListPipelineExecutions
action.- List
Pipelines Input Represents the input of a
ListPipelines
action.- List
Pipelines Output Represents the output of a
ListPipelines
action.- List
Tags ForResource Input - List
Tags ForResource Output - List
Webhook Item The detail returned for each webhook after listing webhooks, such as the webhook URL, the webhook name, and the webhook ARN.
- List
Webhooks Input - List
Webhooks Output - Output
Artifact Represents information about the output of an action.
- Pipeline
Context Represents information about a pipeline to a job worker.
PipelineContext contains
pipelineArn
andpipelineExecutionId
for custom action jobs. ThepipelineArn
andpipelineExecutionId
fields are not populated for ThirdParty action jobs.- Pipeline
Declaration Represents the structure of actions and stages to be performed in the pipeline.
- Pipeline
Execution Represents information about an execution of a pipeline.
- Pipeline
Execution Summary Summary information about a pipeline execution.
- Pipeline
Metadata Information about a pipeline.
- Pipeline
Summary Returns a summary of a pipeline.
- Poll
ForJobs Input Represents the input of a
PollForJobs
action.- Poll
ForJobs Output Represents the output of a
PollForJobs
action.- Poll
ForThird Party Jobs Input Represents the input of a
PollForThirdPartyJobs
action.- Poll
ForThird Party Jobs Output Represents the output of a
PollForThirdPartyJobs
action.- PutAction
Revision Input Represents the input of a
PutActionRevision
action.- PutAction
Revision Output Represents the output of a
PutActionRevision
action.- PutApproval
Result Input Represents the input of a
PutApprovalResult
action.- PutApproval
Result Output Represents the output of a
PutApprovalResult
action.- PutJob
Failure Result Input Represents the input of a
PutJobFailureResult
action.- PutJob
Success Result Input Represents the input of a
PutJobSuccessResult
action.- PutThird
Party JobFailure Result Input Represents the input of a
PutThirdPartyJobFailureResult
action.- PutThird
Party JobSuccess Result Input Represents the input of a
PutThirdPartyJobSuccessResult
action.- PutWebhook
Input - PutWebhook
Output - Register
Webhook With Third Party Input - Register
Webhook With Third Party Output - Retry
Stage Execution Input Represents the input of a
RetryStageExecution
action.- Retry
Stage Execution Output Represents the output of a
RetryStageExecution
action.- S3Artifact
Location The location of the S3 bucket that contains a revision.
- S3Location
The Amazon S3 artifact location for an action's artifacts.
- Source
Revision Information about the version (or revision) of a source artifact that initiated a pipeline execution.
- Stage
Context Represents information about a stage to a job worker.
- Stage
Declaration Represents information about a stage and its definition.
- Stage
Execution Represents information about the run of a stage.
- Stage
State Represents information about the state of the stage.
- Start
Pipeline Execution Input Represents the input of a
StartPipelineExecution
action.- Start
Pipeline Execution Output Represents the output of a
StartPipelineExecution
action.- Stop
Execution Trigger The interaction that stopped a pipeline execution.
- Stop
Pipeline Execution Input - Stop
Pipeline Execution Output - Tag
A tag is a key-value pair that is used to manage the resource.
- TagResource
Input - TagResource
Output - Third
Party Job A response to a
PollForThirdPartyJobs
request returned by AWS CodePipeline when there is a job to be worked on by a partner action.- Third
Party JobData Represents information about the job data for a partner action.
- Third
Party JobDetails The details of a job sent in response to a
GetThirdPartyJobDetails
request.- Transition
State Represents information about the state of transitions between one stage and another stage.
- Untag
Resource Input - Untag
Resource Output - Update
Pipeline Input Represents the input of an
UpdatePipeline
action.- Update
Pipeline Output Represents the output of an
UpdatePipeline
action.- Webhook
Auth Configuration The authentication applied to incoming webhook trigger requests.
- Webhook
Definition Represents information about a webhook and its definition.
- Webhook
Filter Rule The event criteria that specify when a webhook notification is sent to your URL.
Enums§
- Acknowledge
JobError - Errors returned by AcknowledgeJob
- Acknowledge
Third Party JobError - Errors returned by AcknowledgeThirdPartyJob
- Create
Custom Action Type Error - Errors returned by CreateCustomActionType
- Create
Pipeline Error - Errors returned by CreatePipeline
- Delete
Custom Action Type Error - Errors returned by DeleteCustomActionType
- Delete
Pipeline Error - Errors returned by DeletePipeline
- Delete
Webhook Error - Errors returned by DeleteWebhook
- Deregister
Webhook With Third Party Error - Errors returned by DeregisterWebhookWithThirdParty
- Disable
Stage Transition Error - Errors returned by DisableStageTransition
- Enable
Stage Transition Error - Errors returned by EnableStageTransition
- GetJob
Details Error - Errors returned by GetJobDetails
- GetPipeline
Error - Errors returned by GetPipeline
- GetPipeline
Execution Error - Errors returned by GetPipelineExecution
- GetPipeline
State Error - Errors returned by GetPipelineState
- GetThird
Party JobDetails Error - Errors returned by GetThirdPartyJobDetails
- List
Action Executions Error - Errors returned by ListActionExecutions
- List
Action Types Error - Errors returned by ListActionTypes
- List
Pipeline Executions Error - Errors returned by ListPipelineExecutions
- List
Pipelines Error - Errors returned by ListPipelines
- List
Tags ForResource Error - Errors returned by ListTagsForResource
- List
Webhooks Error - Errors returned by ListWebhooks
- Poll
ForJobs Error - Errors returned by PollForJobs
- Poll
ForThird Party Jobs Error - Errors returned by PollForThirdPartyJobs
- PutAction
Revision Error - Errors returned by PutActionRevision
- PutApproval
Result Error - Errors returned by PutApprovalResult
- PutJob
Failure Result Error - Errors returned by PutJobFailureResult
- PutJob
Success Result Error - Errors returned by PutJobSuccessResult
- PutThird
Party JobFailure Result Error - Errors returned by PutThirdPartyJobFailureResult
- PutThird
Party JobSuccess Result Error - Errors returned by PutThirdPartyJobSuccessResult
- PutWebhook
Error - Errors returned by PutWebhook
- Register
Webhook With Third Party Error - Errors returned by RegisterWebhookWithThirdParty
- Retry
Stage Execution Error - Errors returned by RetryStageExecution
- Start
Pipeline Execution Error - Errors returned by StartPipelineExecution
- Stop
Pipeline Execution Error - Errors returned by StopPipelineExecution
- TagResource
Error - Errors returned by TagResource
- Untag
Resource Error - Errors returned by UntagResource
- Update
Pipeline Error - Errors returned by UpdatePipeline
Traits§
- Code
Pipeline - Trait representing the capabilities of the CodePipeline API. CodePipeline clients implement this trait.