Codepipeline API
Codepipeline API
CodePipeline
Amazon's trademarks and trade dress may not be used in connection with any product or service
that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any
manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are
the property of their respective owners, who may or may not be affiliated with, connected to, or
sponsored by Amazon.
CodePipeline API Reference
Table of Contents
Welcome ........................................................................................................................................... 1
Actions .............................................................................................................................................. 4
AcknowledgeJob ........................................................................................................................................... 6
Request Syntax ........................................................................................................................................ 6
Request Parameters ................................................................................................................................ 6
Response Syntax ...................................................................................................................................... 7
Response Elements ................................................................................................................................. 7
Errors .......................................................................................................................................................... 7
Examples ................................................................................................................................................... 8
See Also ..................................................................................................................................................... 8
AcknowledgeThirdPartyJob ...................................................................................................................... 10
Request Syntax ...................................................................................................................................... 10
Request Parameters .............................................................................................................................. 10
Response Syntax ................................................................................................................................... 11
Response Elements ............................................................................................................................... 11
Errors ....................................................................................................................................................... 11
See Also .................................................................................................................................................. 12
CreateCustomActionType .......................................................................................................................... 13
Request Syntax ...................................................................................................................................... 13
Request Parameters .............................................................................................................................. 14
Response Syntax ................................................................................................................................... 16
Response Elements ............................................................................................................................... 17
Errors ....................................................................................................................................................... 17
Examples ................................................................................................................................................. 18
See Also .................................................................................................................................................. 20
CreatePipeline ............................................................................................................................................. 21
Request Syntax ...................................................................................................................................... 21
Request Parameters .............................................................................................................................. 23
Response Syntax ................................................................................................................................... 24
Response Elements ............................................................................................................................... 26
Errors ....................................................................................................................................................... 26
Examples ................................................................................................................................................. 28
See Also .................................................................................................................................................. 31
DeleteCustomActionType .......................................................................................................................... 33
Errors ....................................................................................................................................................... 49
Examples ................................................................................................................................................. 49
See Also .................................................................................................................................................. 50
GetActionType ............................................................................................................................................. 52
Request Syntax ...................................................................................................................................... 52
Request Parameters .............................................................................................................................. 52
Response Syntax ................................................................................................................................... 53
Response Elements ............................................................................................................................... 55
Errors ....................................................................................................................................................... 55
See Also .................................................................................................................................................. 55
GetJobDetails .............................................................................................................................................. 57
Request Syntax ...................................................................................................................................... 57
Request Parameters .............................................................................................................................. 57
Response Syntax ................................................................................................................................... 57
Response Elements ............................................................................................................................... 59
Errors ....................................................................................................................................................... 59
Examples ................................................................................................................................................. 60
See Also .................................................................................................................................................. 62
GetPipeline ................................................................................................................................................... 63
Request Syntax ...................................................................................................................................... 63
Request Parameters .............................................................................................................................. 63
Response Syntax ................................................................................................................................... 64
Response Elements ............................................................................................................................... 66
Errors ....................................................................................................................................................... 66
Examples ................................................................................................................................................. 67
See Also .................................................................................................................................................. 69
GetPipelineExecution ................................................................................................................................. 70
Request Syntax ...................................................................................................................................... 70
Request Parameters .............................................................................................................................. 70
Response Syntax ................................................................................................................................... 70
Response Elements ............................................................................................................................... 71
Errors ....................................................................................................................................................... 72
Examples ................................................................................................................................................. 72
See Also .................................................................................................................................................. 73
GetPipelineState ......................................................................................................................................... 75
Request Syntax ...................................................................................................................................... 75
Welcome
Overview
This is the AWS CodePipeline API Reference. This guide provides descriptions of the actions and
data types for 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.
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.
For third-party integrators or developers who want to create their own integrations with
CodePipeline, the expected sequence varies from the standard API user. To integrate with
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.
• 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
CodePipeline. Partner actions are created by members of the AWS Partner Network.
• 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.
Actions
The following actions are supported:
• AcknowledgeJob
• AcknowledgeThirdPartyJob
• CreateCustomActionType
• CreatePipeline
• DeleteCustomActionType
• DeletePipeline
• DeleteWebhook
• DeregisterWebhookWithThirdParty
• DisableStageTransition
• EnableStageTransition
• GetActionType
• GetJobDetails
• GetPipeline
• GetPipelineExecution
• GetPipelineState
• GetThirdPartyJobDetails
• ListActionExecutions
• ListActionTypes
• ListPipelineExecutions
• ListPipelines
• ListTagsForResource
• ListWebhooks
• PollForJobs
• PollForThirdPartyJobs
• PutActionRevision
• PutApprovalResult
• PutJobFailureResult
• PutJobSuccessResult
• PutThirdPartyJobFailureResult
• PutThirdPartyJobSuccessResult
• PutWebhook
• RegisterWebhookWithThirdParty
• RetryStageExecution
• StartPipelineExecution
• StopPipelineExecution
• TagResource
• UntagResource
• UpdateActionType
• UpdatePipeline
AcknowledgeJob
Returns information about a specified job and whether that job has been received by the job
worker. Used for custom actions only.
Request Syntax
{
"jobId": "string",
"nonce": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
jobId
The unique system-generated ID of the job for which you want to confirm receipt.
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
nonce
A system-generated random number that CodePipeline uses to ensure that the job is being
worked on by only one job worker. Get this number from the response of the PollForJobs
request that returned this job.
Type: String
Required: Yes
Response Syntax
{
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
status
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNonceException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 63
X-Amz-Target: CodePipeline_20150709.AcknowledgeJob
X-Amz-Date: 20160707T205252Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"nonce": "3",
"jobId": "f4f4ff82-2d11-EXAMPLE"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 23
{
"status": "InProgress"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AcknowledgeThirdPartyJob
Confirms a job worker has received the specified job. Used for partner actions only.
Request Syntax
{
"clientToken": "string",
"jobId": "string",
"nonce": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
clientToken
The clientToken portion of the clientId and clientToken pair used to verify that the calling entity
is allowed access to the job and its details.
Type: String
Required: Yes
jobId
Type: String
Required: Yes
nonce
A system-generated random number that CodePipeline uses to ensure that the job
is being worked on by only one job worker. Get this number from the response to a
GetThirdPartyJobDetails request.
Type: String
Required: Yes
Response Syntax
{
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
status
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidClientTokenException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateCustomActionType
Creates a new custom action that can be used in all pipelines associated with the AWS account.
Only used for custom actions.
Request Syntax
{
"category": "string",
"configurationProperties": [
{
"description": "string",
"key": boolean,
"name": "string",
"queryable": boolean,
"required": boolean,
"secret": boolean,
"type": "string"
}
],
"inputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"outputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"provider": "string",
"settings": {
"entityUrlTemplate": "string",
"executionUrlTemplate": "string",
"revisionUrlTemplate": "string",
"thirdPartyConfigurationUrl": "string"
},
"tags": [
{
"key": "string",
"value": "string"
}
],
"version": "string"
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
category
The category of the custom action, such as a build action or a test action.
Type: String
Required: Yes
configurationProperties
Note
You can refer to a name in the configuration properties of the custom action within the
URL templates by following the format of {Config:name}, as long as the configuration
property is both required and not secret. For more information, see Create a Custom
Action for a Pipeline.
Required: No
inputArtifactDetails
The details of the input artifact for the action, such as its commit ID.
Required: Yes
outputArtifactDetails
The details of the output artifact of the action, such as its commit ID.
Required: Yes
provider
The provider of the service used in the custom action, such as CodeDeploy.
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
settings
Required: No
tags
Required: No
version
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
Response Syntax
{
"actionType": {
"actionConfigurationProperties": [
{
"description": "string",
"key": boolean,
"name": "string",
"queryable": boolean,
"required": boolean,
"secret": boolean,
"type": "string"
}
],
"id": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"inputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"outputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"settings": {
"entityUrlTemplate": "string",
"executionUrlTemplate": "string",
"revisionUrlTemplate": "string",
"thirdPartyConfigurationUrl": "string"
}
},
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
actionType
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The number of pipelines associated with the AWS account has exceeded the limit allowed for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 665
X-Amz-Target: CodePipeline_20150709.CreateCustomActionType
X-Amz-Date: 20160707T203658Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"category": "Build",
"settings": {
"entityUrlTemplate": "https://192.0.2.4/job/{Config:ProjectName}/",
"executionUrlTemplate": "https://192.0.2.4/job/{Config:ProjectName}/
lastSuccessfulBuild/{ExternalExecutionId}/"
},
"configurationProperties": [
{
"description": "The name of the build project must be provided when this action
is added to the pipeline.",
"required": true,
"secret": false,
"key": true,
"type": "String",
"queryable": false,
"name": "ProjectName"
}
],
"version": "1",
"provider": "JenkinsProviderName",
"inputArtifactDetails": {
"maximumCount": 1,
"minimumCount": 0
},
"outputArtifactDetails": {
"maximumCount": 1,
"minimumCount": 0
}
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 683
{
"actionType": {
"actionConfigurationProperties": [
{
"description": "The name of the build project must be provided when this action
is added to the pipeline.",
"key": true,
"name": "ProjectName",
"queryable": false,
"required": true,
"secret": false
}
],
"id": {
"__type": "ActionTypeId",
"category": "Build",
"owner": "Custom",
"provider": "JenkinsProviderName",
"version": "1"
},
"inputArtifactDetails": {
"maximumCount": 1,
"minimumCount": 0
},
"outputArtifactDetails": {
"maximumCount": 1,
"minimumCount": 0
},
"settings": {
"entityUrlTemplate": "https://192.0.2.4/job/{Config:ProjectName}/",
"executionUrlTemplate": "https://192.0.2.4/job/{Config:ProjectName}/
lastSuccessfulBuild/{ExternalExecutionId}/"
}
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreatePipeline
Creates a pipeline.
Note
In the pipeline structure, you must include either artifactStore or artifactStores in
your pipeline, but you cannot use both. If you create a cross-region action in your pipeline,
you must use artifactStores.
Request Syntax
{
"pipeline": {
"artifactStore": {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
},
"artifactStores": {
"string" : {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
}
},
"name": "string",
"pipelineType": "string",
"roleArn": "string",
"stages": [
{
"actions": [
{
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"configuration": {
"string" : "string"
},
"inputArtifacts": [
{
"name": "string"
}
],
"name": "string",
"namespace": "string",
"outputArtifacts": [
{
"name": "string"
}
],
"region": "string",
"roleArn": "string",
"runOrder": number
}
],
"blockers": [
{
"name": "string",
"type": "string"
}
],
"name": "string"
}
],
"triggers": [
{
"gitConfiguration": {
"push": [
{
"tags": {
"excludes": [ "string" ],
"includes": [ "string" ]
}
}
],
"sourceActionName": "string"
},
"providerType": "string"
}
],
"variables": [
{
"defaultValue": "string",
"description": "string",
"name": "string"
}
],
"version": number
},
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
pipeline
Required: Yes
tags
Required: No
Response Syntax
{
"pipeline": {
"artifactStore": {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
},
"artifactStores": {
"string" : {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
}
},
"name": "string",
"pipelineType": "string",
"roleArn": "string",
"stages": [
{
"actions": [
{
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"configuration": {
"string" : "string"
},
"inputArtifacts": [
{
"name": "string"
}
],
"name": "string",
"namespace": "string",
"outputArtifacts": [
{
"name": "string"
}
],
"region": "string",
"roleArn": "string",
"runOrder": number
}
],
"blockers": [
{
"name": "string",
"type": "string"
}
],
"name": "string"
}
],
"triggers": [
{
"gitConfiguration": {
"push": [
{
"tags": {
"excludes": [ "string" ],
"includes": [ "string" ]
}
}
],
"sourceActionName": "string"
},
"providerType": "string"
}
],
"variables": [
{
"defaultValue": "string",
"description": "string",
"name": "string"
}
],
"version": number
},
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
pipeline
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
InvalidBlockerDeclarationException
The number of pipelines associated with the AWS account has exceeded the limit allowed for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 923
X-Amz-Target: CodePipeline_20150709.CreatePipeline
X-Amz-Date: 20160707T175936Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"pipeline": {
"roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service",
"stages": [
{
"name": "Source",
"actions": [
{
"inputArtifacts": [],
"name": "Source",
"actionTypeId": {
"category": "Source",
"owner": "AWS",
"version": "1",
"provider": "S3"
},
"outputArtifacts": [
{
"name": "MyApp"
}
],
"configuration": {
"S3Bucket": "awscodepipeline-demo-bucket",
"S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip"
},
"runOrder": 1
}
]
},
{
"name": "Staging",
"actions": [
{
"inputArtifacts": [
{
"name": "MyApp"
}
],
"name": "CodePipelineDemoFleet",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"version": "1",
"provider": "CodeDeploy"
},
"outputArtifacts": [],
"configuration": {
"ApplicationName": "CodePipelineDemoApplication",
"DeploymentGroupName": "CodePipelineDemoFleet"
},
"runOrder": 1
}
]
}
],
"artifactStore": {
"type": "S3",
"location": "codepipeline-us-east-1-11EXAMPLE11"
},
"name": "MySecondPipeline",
"version": 1
}
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 907
{
"pipeline": {
"artifactStore": {
"location": "codepipeline-us-east-1-11EXAMPLE11",
"type": "S3"
},
"name": "MySecondPipeline",
"roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service",
"stages": [
{
"actions": [
{
"actionTypeId": {
"__type": "ActionTypeId",
"category": "Source",
"owner": "AWS",
"provider": "S3",
"version": "1"
},
"configuration": {
"S3Bucket": "awscodepipeline-demo-bucket",
"S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip"
},
"inputArtifacts": [],
"name": "Source",
"outputArtifacts": [
{
"name": "MyApp"
}
],
"runOrder": 1
}
],
"name": "Source"
},
{
"actions": [
{
"actionTypeId": {
"__type": "ActionTypeId",
"category": "Deploy",
"owner": "AWS",
"provider": "CodeDeploy",
"version": "1"
},
"configuration": {
"ApplicationName": "CodePipelineDemoApplication",
"DeploymentGroupName": "CodePipelineDemoFleet"
},
"inputArtifacts": [
{
"name": "MyApp"
}
],
"name": "CodePipelineDemoFleet",
"outputArtifacts": [],
"runOrder": 1
}
],
"name": "Staging"
}
],
"version": 1
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteCustomActionType
Marks a custom action as deleted. PollForJobs for the custom action fails after the action is
marked for deletion. Used for custom actions only.
Important
To re-create a custom action after it has been deleted you must use a string in the version
field that has never been used before. This string can be an incremented version number,
for example. To restore a deleted custom action, use a JSON file that is identical to the
deleted action, including the original string in the version field.
Request Syntax
{
"category": "string",
"provider": "string",
"version": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
category
The category of the custom action that you want to delete, such as source or deploy.
Type: String
Required: Yes
provider
The provider of the service used in the custom action, such as CodeDeploy.
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
version
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 68
X-Amz-Target: CodePipeline_20150709.DeleteCustomActionType
X-Amz-Date: 20151030T233944Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20151030/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"category": "Build",
"version": "1",
"provider": "JenkinsProviderName"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 0
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeletePipeline
Deletes the specified pipeline.
Request Syntax
{
"name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
ValidationException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 25
X-Amz-Target: CodePipeline_20150709.DeletePipeline
X-Amz-Date: 20160707T202402Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"name": "MySecondPipeline"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 0
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteWebhook
Deletes a previously created webhook by name. Deleting the webhook stops CodePipeline
from starting a pipeline every time an external event occurs. The API returns successfully when
trying to delete a webhook that is already deleted. If a deleted webhook is re-created by calling
PutWebhook with the same name, it will have a different URL.
Request Syntax
{
"name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeregisterWebhookWithThirdParty
Removes the connection between the webhook that was created by CodePipeline and the external
tool with events to be detected. Currently supported only for webhooks that target an action type
of GitHub.
Request Syntax
{
"webhookName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
webhookName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ValidationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DisableStageTransition
Prevents artifacts in a pipeline from transitioning to the next stage in the pipeline.
Request Syntax
{
"pipelineName": "string",
"reason": "string",
"stageName": "string",
"transitionType": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
pipelineName
The name of the pipeline in which you want to disable the flow of artifacts from one stage to
another.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
reason
The reason given to the user that a stage is disabled, such as waiting for manual approval or
manual tests. This message is displayed in the pipeline console UI.
Type: String
Required: Yes
stageName
The name of the stage where you want to disable the inbound or outbound transition of
artifacts.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
transitionType
Specifies whether artifacts are prevented from transitioning into the stage and being processed
by the actions in that stage (inbound), or prevented from transitioning from the stage after they
have been processed by the actions in that stage (outbound).
Type: String
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
PipelineNotFoundException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 108
X-Amz-Target: CodePipeline_20150709.DisableStageTransition
X-Amz-Date: 20160707T182043Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"reason": "An example reason",
"pipelineName": "MyFirstPipeline",
"stageName": "Staging",
"transitionType": "Inbound"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 0
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EnableStageTransition
Enables artifacts in a pipeline to transition to a stage in a pipeline.
Request Syntax
{
"pipelineName": "string",
"stageName": "string",
"transitionType": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
pipelineName
The name of the pipeline in which you want to enable the flow of artifacts from one stage to
another.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
stageName
The name of the stage where you want to enable the transition of artifacts, either into the
stage (inbound) or from that stage to the next stage (outbound).
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
transitionType
Specifies whether artifacts are allowed to enter the stage and be processed by the actions in
that stage (inbound) or whether already processed artifacts are allowed to transition to the next
stage (outbound).
Type: String
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
PipelineNotFoundException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 85
X-Amz-Target: CodePipeline_20150709.EnableStageTransition
X-Amz-Date: 20160707T182342Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"pipelineName": "MyFirstPipeline",
"stageName": "Staging",
"transitionType": "Inbound"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 0
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetActionType
Returns information about an action type created for an external provider, where the action is
to be used by customers of the external provider. The action can be created with any supported
integration model.
Request Syntax
{
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
category
Defines what kind of action can be taken in the stage. The following are the valid values:
• Source
• Build
• Test
• Deploy
• Approval
• Invoke
Type: String
Required: Yes
owner
The creator of an action type that was created with any supported integration model. There are
two valid values: AWS and ThirdParty.
Type: String
Pattern: AWS|ThirdParty
Required: Yes
provider
The provider of the action type being called. The provider name is specified when the action
type is created.
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
version
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
Response Syntax
{
"actionType": {
"description": "string",
"executor": {
"configuration": {
"jobWorkerExecutorConfiguration": {
"pollingAccounts": [ "string" ],
"pollingServicePrincipals": [ "string" ]
},
"lambdaExecutorConfiguration": {
"lambdaFunctionArn": "string"
}
},
"jobTimeout": number,
"policyStatementsTemplate": "string",
"type": "string"
},
"id": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"inputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"outputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"permissions": {
"allowedAccounts": [ "string" ]
},
"properties": [
{
"description": "string",
"key": boolean,
"name": "string",
"noEcho": boolean,
"optional": boolean,
"queryable": boolean
}
],
"urls": {
"configurationUrl": "string",
"entityUrlTemplate": "string",
"executionUrlTemplate": "string",
"revisionUrlTemplate": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
actionType
The action type information for the requested action type, such as the action type ID.
Errors
For information about the errors that are common to all actions, see Common Errors.
ActionTypeNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetJobDetails
Returns information about a job. Used for custom 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. This API also returns any secret values defined for the action.
Request Syntax
{
"jobId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
jobId
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
Response Syntax
{
"jobDetails": {
"accountId": "string",
"data": {
"actionConfiguration": {
"configuration": {
"string" : "string"
}
},
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"artifactCredentials": {
"accessKeyId": "string",
"secretAccessKey": "string",
"sessionToken": "string"
},
"continuationToken": "string",
"encryptionKey": {
"id": "string",
"type": "string"
},
"inputArtifacts": [
{
"location": {
"s3Location": {
"bucketName": "string",
"objectKey": "string"
},
"type": "string"
},
"name": "string",
"revision": "string"
}
],
"outputArtifacts": [
{
"location": {
"s3Location": {
"bucketName": "string",
"objectKey": "string"
},
"type": "string"
},
"name": "string",
"revision": "string"
}
],
"pipelineContext": {
"action": {
"actionExecutionId": "string",
"name": "string"
},
"pipelineArn": "string",
"pipelineExecutionId": "string",
"pipelineName": "string",
"stage": {
"name": "string"
}
}
},
"id": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
jobDetails
Note
If AWSSessionCredentials is used, a long-running job can call GetJobDetails again to
obtain new credentials.
Errors
For information about the errors that are common to all actions, see Common Errors.
JobNotFoundException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 49
X-Amz-Target: CodePipeline_20150709.GetJobDetails
X-Amz-Date: 20151030T230237Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20151030/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"jobId": "ef66c259-EXAMPLE"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 1822
{
"jobDetails": {
"accountId": "111111111111",
"data": {
"actionConfiguration": {
"__type": "ActionConfiguration",
"configuration": {
"ProjectName": "JenkinsTestProject"
}
},
"actionTypeId": {
"__type": "ActionTypeId",
"category": "Test",
"owner": "Custom",
"provider": "JenkinsProviderName",
"version": "1"
},
"artifactCredentials": {
"__type": "AWSSessionCredentials",
"accessKeyId": "AKIAIOSFODNN7EXAMPLE",
"secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"sessionToken":
"fICCQD6m7oRw0uXOjANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZW
+a4GmWIWJ21uUSfwfEvySWtC2XADZ4nB+BLYgVIk60CpiwsZ3G93vUEIO3IyNoH/
f0wYK8m9TrDHudUZg3qX4waLG5M43q7Wgc/
MbQITxOUSQv7c7ugFFDzQGBzZswY6786m86gpEIbb3OhjZnzcvQAaRHhdlQWIMm2nrAgMBAAEwDQYJKoZIhvcNAQEFBQADg
+auNKyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0FkbFFBjvSfpJIlJ00zbhNYS5f6GuoEDmFJl0ZxBHjJnyp378OD8uTs7fL
},
"inputArtifacts": [
{
"__type": "Artifact",
"location": {
"s3Location": {
"bucketName": "codepipeline-us-east-1-11EXAMPLE11",
"objectKey": "MySecondPipeline/MyAppBuild/EXAMPLE"
},
"type": "S3"
},
"name": "MyAppBuild"
}
],
"outputArtifacts": [],
"pipelineContext": {
"__type": "PipelineContext",
"action": {
"name": "JenkinsTestAction"
},
"pipelineName": "MySecondPipeline",
"stage": {
"name": "Testing"
}
}
},
"id": "ef66c259-EXAMPLE"
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetPipeline
Returns the metadata, structure, stages, and actions of a pipeline. Can be used to return the entire
structure of a pipeline in JSON format, which can then be modified and used to update the pipeline
structure with UpdatePipeline.
Request Syntax
{
"name": "string",
"version": number
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
name
The name of the pipeline for which you want to get information. Pipeline names must be
unique in an AWS account.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
version
The version number of the pipeline. If you do not specify a version, defaults to the current
version.
Type: Integer
Required: No
Response Syntax
{
"metadata": {
"created": number,
"pipelineArn": "string",
"pollingDisabledAt": number,
"updated": number
},
"pipeline": {
"artifactStore": {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
},
"artifactStores": {
"string" : {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
}
},
"name": "string",
"pipelineType": "string",
"roleArn": "string",
"stages": [
{
"actions": [
{
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"configuration": {
"string" : "string"
},
"inputArtifacts": [
{
"name": "string"
}
],
"name": "string",
"namespace": "string",
"outputArtifacts": [
{
"name": "string"
}
],
"region": "string",
"roleArn": "string",
"runOrder": number
}
],
"blockers": [
{
"name": "string",
"type": "string"
}
],
"name": "string"
}
],
"triggers": [
{
"gitConfiguration": {
"push": [
{
"tags": {
"excludes": [ "string" ],
"includes": [ "string" ]
}
}
],
"sourceActionName": "string"
},
"providerType": "string"
}
],
"variables": [
{
"defaultValue": "string",
"description": "string",
"name": "string"
}
],
"version": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
metadata
Errors
For information about the errors that are common to all actions, see Common Errors.
PipelineNotFoundException
ValidationException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 27
X-Amz-Target: CodePipeline_20150709.GetPipeline
X-Amz-Date: 20160707T171559Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"name": "MyFirstPipeline"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 898
{
"pipeline": {
"roleArn": "arn:aws:iam::11111EXAMPLE:role/AWS-CodePipeline-Service",
"stages": [
{
"name": "Source",
"actions": [
{
"actionTypeId": {
"category": "Source",
"owner": "AWS",
"provider": "S3",
"version": "1"
},
"configuration": {
"PollForSourceChanges": "true",
"S3Bucket": "awscodepipeline-demo-bucket",
"S3ObjectKey": "aws-codepipeline-s3-aws-
codedeploy_linux.zip"
},
"inputArtifacts": [],
"name": "Source",
"outputArtifacts": [
{
"name": "MyApp"
}
],
"runOrder": 1
}
]
},
{
"name": "Build",
"actions": [
{
"actionTypeId": {
"category": "Build",
"owner": "AWS",
"provider": "CodeBuild",
"version": "1"
},
"configuration": {
"ProjectName": "BuildProject"
},
"inputArtifacts": [
{
"name": "MyApp"
}
],
"name": "CodeBuild",
"outputArtifacts": [
{
"name": "MyAppBuild"
}
],
"runOrder": 1
}
]
}
],
"artifactStore": {
"type": "S3",
"location": "codepipeline-us-east-2-250656481468"
},
"name": "MyFirstPipeline",
"version": 1
},
"metadata": {
"pipelineArn": "arn:aws:codepipeline:us-east-2:80398EXAMPLE:MyFirstPipeline",
"updated": 1501626591.112,
"created": 1501626591.112
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetPipelineExecution
Returns information about an execution of a pipeline, including details about artifacts, the pipeline
execution ID, and the name, version, and status of the pipeline.
Request Syntax
{
"pipelineExecutionId": "string",
"pipelineName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
pipelineExecutionId
The ID of the pipeline execution about which you want to get execution details.
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
pipelineName
The name of the pipeline about which you want to get execution details.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
Response Syntax
"pipelineExecution": {
"artifactRevisions": [
{
"created": number,
"name": "string",
"revisionChangeIdentifier": "string",
"revisionId": "string",
"revisionSummary": "string",
"revisionUrl": "string"
}
],
"pipelineExecutionId": "string",
"pipelineName": "string",
"pipelineVersion": number,
"status": "string",
"statusSummary": "string",
"trigger": {
"triggerDetail": "string",
"triggerType": "string"
},
"variables": [
{
"name": "string",
"resolvedValue": "string"
}
]
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
pipelineExecution
Errors
For information about the errors that are common to all actions, see Common Errors.
PipelineExecutionNotFoundException
The pipeline execution was specified in an invalid format or cannot be found, or an execution ID
does not belong to the specified pipeline.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 27
X-Amz-Target: CodePipeline_20150709.GetPipelineExecution
X-Amz-Date: 20160707T171559Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"pipelineExecutionId": "42ee4d10-e4de-a37c-82b7-36c11EXAMPLE",
"pipelineName": "MyFirstPipeline"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 318
{
"pipelineExecution": {
"artifactRevisions": [
{
"created": 1427298837.7689769,
"name": "MyApp",
"revisionChangeIdentifier": "1427298921.3976923",
"revisionId": "7636d59f3c461cEXAMPLE8417dbc6371",
"revisionSummary": "Updating the application for feature 12-4820",
"revisionUrl": "https://api.github.com/repos/anycompany/MyApp/git/
commits/7636d59f3c461cEXAMPLE8417dbc6371"
}
],
"pipelineExecutionId": "3137f7cb-7cf7-039j-s83l-d7eu3EXAMPLE",
"pipelineName": "MyFirstPipeline",
"pipelineVersion": 2,
"status": "Succeeded"
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetPipelineState
Returns information about the state of a pipeline, including the stages and actions.
Note
Values returned in the revisionId and revisionUrl fields indicate the source revision
information, such as the commit ID, for the current state.
Request Syntax
{
"name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
name
The name of the pipeline about which you want to get information.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
Response Syntax
{
"created": number,
"pipelineName": "string",
"pipelineVersion": number,
"stageStates": [
{
"actionStates": [
{
"actionName": "string",
"currentRevision": {
"created": number,
"revisionChangeId": "string",
"revisionId": "string"
},
"entityUrl": "string",
"latestExecution": {
"actionExecutionId": "string",
"errorDetails": {
"code": "string",
"message": "string"
},
"externalExecutionId": "string",
"externalExecutionUrl": "string",
"lastStatusChange": number,
"lastUpdatedBy": "string",
"percentComplete": number,
"status": "string",
"summary": "string",
"token": "string"
},
"revisionUrl": "string"
}
],
"inboundExecution": {
"pipelineExecutionId": "string",
"status": "string"
},
"inboundTransitionState": {
"disabledReason": "string",
"enabled": boolean,
"lastChangedAt": number,
"lastChangedBy": "string"
},
"latestExecution": {
"pipelineExecutionId": "string",
"status": "string"
},
"stageName": "string"
}
],
"updated": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
created
The date and time the pipeline was created, in timestamp format.
Type: Timestamp
pipelineName
The name of the pipeline for which you want to get the state.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
pipelineVersion
Note
A newly created pipeline is always assigned a version number of 1.
Type: Integer
A list of the pipeline stage output information, including stage name, state, most recent run
details, whether the stage is disabled, and other data.
The date and time the pipeline was last updated, in timestamp format.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors.
PipelineNotFoundException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 27
X-Amz-Target: CodePipeline_20150709.GetPipelineState
X-Amz-Date: 20160707T172005Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"name": "MyFirstPipeline"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 827
{
"created": 1446137312.204,
"pipelineName": "MyFirstPipeline",
"pipelineVersion": 1,
"stageStates": [
{
"actionStates": [
{
"actionName": "Source",
"currentRevision": {
"created": 1446726163.571,
"revisionId": "HYGp7zmwbCPPwo234xsCEM7d6ToeAqIl"
},
"entityUrl": "https://console.aws.amazon.com/s3/home?#",
"latestExecution": {
"lastStatusChange": 1446137358.328,
"status": "Succeeded"
}
}
],
"stageName": "Source"
},
{
"actionStates": [
{
"actionName": "CodePipelineDemoFleet",
"currentRevision": {
"created": 1466726263.189,
"revisionId": "{\"bucket\":\"codepipeline-us-east-1-2770EXAMPLE
\",\"key\":\"MyFirstPipeline/MyApp/QI8RTZY.zip\",\"bundleType\":\"zip\",\"version
\":null,\"etag\":\"f51889bff5402b0249676e48cEXAMPLE\"}"
},
"entityUrl": "https://console.aws.amazon.com/codedeploy/home?#/
applications/CodePipelineDemoApplication/deployment-groups/CodePipelineDemoFleet",
"latestExecution": {
"externalExecutionId": "d-EXAMPLE",
"externalExecutionUrl": "https://console.aws.amazon.com/
codedeploy/home?#/deployments/d-EXAMPLE",
"lastStatusChange": 1446137493.131,
"status": "Succeeded",
"summary": "Deployment Succeeded"
}
}
],
"inboundTransitionState": {
"enabled": true,
"lastChangedAt": 1470779534.135,
"lastChangedBy": "arn:aws:iam::111111111111:user/johndoe"
},
"stageName": "Staging"
}
],
"updated": 1446137312.204
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GetThirdPartyJobDetails
Requests the details of a job for a third party action. 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. This API also returns any secret values defined for the action.
Request Syntax
{
"clientToken": "string",
"jobId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
clientToken
The clientToken portion of the clientId and clientToken pair used to verify that the calling entity
is allowed access to the job and its details.
Type: String
Required: Yes
jobId
Type: String
Required: Yes
Response Syntax
{
"jobDetails": {
"data": {
"actionConfiguration": {
"configuration": {
"string" : "string"
}
},
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"artifactCredentials": {
"accessKeyId": "string",
"secretAccessKey": "string",
"sessionToken": "string"
},
"continuationToken": "string",
"encryptionKey": {
"id": "string",
"type": "string"
},
"inputArtifacts": [
{
"location": {
"s3Location": {
"bucketName": "string",
"objectKey": "string"
},
"type": "string"
},
"name": "string",
"revision": "string"
}
],
"outputArtifacts": [
{
"location": {
"s3Location": {
"bucketName": "string",
"objectKey": "string"
},
"type": "string"
},
"name": "string",
"revision": "string"
}
],
"pipelineContext": {
"action": {
"actionExecutionId": "string",
"name": "string"
},
"pipelineArn": "string",
"pipelineExecutionId": "string",
"pipelineName": "string",
"stage": {
"name": "string"
}
}
},
"id": "string",
"nonce": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
jobDetails
The details of the job, including any protected values defined for the job.
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidClientTokenException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListActionExecutions
Lists the action executions that have occurred in a pipeline.
Request Syntax
{
"filter": {
"pipelineExecutionId": "string"
},
"maxResults": number,
"nextToken": "string",
"pipelineName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
filter
Required: No
maxResults
The maximum number of results to return in a single call. To retrieve the remaining results,
make another call with the returned nextToken value. Action execution history is retained for up
to 12 months, based on action execution start times. Default value is 100.
Note
Detailed execution history is available for executions run on or after February 21, 2019.
Type: Integer
Required: No
nextToken
The token that was returned from the previous ListActionExecutions call, which can be
used to return the next set of action executions in the list.
Type: String
Required: No
pipelineName
The name of the pipeline for which you want to list action execution history.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
Response Syntax
{
"actionExecutionDetails": [
{
"actionExecutionId": "string",
"actionName": "string",
"input": {
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"configuration": {
"string" : "string"
},
"inputArtifacts": [
{
"name": "string",
"s3location": {
"bucket": "string",
"key": "string"
}
}
],
"namespace": "string",
"region": "string",
"resolvedConfiguration": {
"string" : "string"
},
"roleArn": "string"
},
"lastUpdateTime": number,
"output": {
"executionResult": {
"externalExecutionId": "string",
"externalExecutionSummary": "string",
"externalExecutionUrl": "string"
},
"outputArtifacts": [
{
"name": "string",
"s3location": {
"bucket": "string",
"key": "string"
}
}
],
"outputVariables": {
"string" : "string"
}
},
"pipelineExecutionId": "string",
"pipelineVersion": number,
"stageName": "string",
"startTime": number,
"status": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
actionExecutionDetails
The details for a list of recent executions, such as action execution ID.
If the amount of returned information is significantly large, an identifier is also returned and
can be used in a subsequent ListActionExecutions call to return the next set of action
executions in the list.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
The next token was specified in an invalid format. Make sure that the next token you provide is
the token returned by a previous call.
The pipeline execution was specified in an invalid format or cannot be found, or an execution ID
does not belong to the specified pipeline.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListActionTypes
Gets a summary of all CodePipeline action types associated with your account.
Request Syntax
{
"actionOwnerFilter": "string",
"nextToken": "string",
"regionFilter": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
actionOwnerFilter
Type: String
Required: No
nextToken
An identifier that was returned from the previous list action types call, which can be used to
return the next set of action types in the list.
Type: String
Required: No
regionFilter
Type: String
Required: No
Response Syntax
{
"actionTypes": [
{
"actionConfigurationProperties": [
{
"description": "string",
"key": boolean,
"name": "string",
"queryable": boolean,
"required": boolean,
"secret": boolean,
"type": "string"
}
],
"id": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"inputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"outputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"settings": {
"entityUrlTemplate": "string",
"executionUrlTemplate": "string",
"revisionUrlTemplate": "string",
"thirdPartyConfigurationUrl": "string"
}
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
actionTypes
If the amount of returned information is significantly large, an identifier is also returned. It can
be used in a subsequent list action types call to return the next set of action types in the list.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
The next token was specified in an invalid format. Make sure that the next token you provide is
the token returned by a previous call.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 2
X-Amz-Target: CodePipeline_20150709.ListActionTypes
X-Amz-Date: 20160707T160551Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 8363
{
"actionTypes": [
{
"inputArtifactDetails": {
"maximumCount": 0,
"minimumCount": 0
},
"actionConfigurationProperties": [
{
"description": "The S3 Bucket",
"required": true,
"secret": false,
"key": true,
"queryable": false,
"name": "S3Bucket"
},
{
"description": "The Amazon S3 object key",
"required": true,
"secret": false,
"key": true,
"queryable": false,
"name": "S3ObjectKey"
}
],
"outputArtifactDetails": {
"maximumCount": 1,
"minimumCount": 1
},
"id": {
"category": "Source",
"owner": "AWS",
"version": "1",
"provider": "S3"
},
"settings": {
"entityUrlTemplate": "https://console.aws.amazon.com/s3/home?#"
}
},
{
"inputArtifactDetails": {
"maximumCount": 1,
"minimumCount": 1
},
"actionConfigurationProperties": [
{
"description": "The Elastic Beanstalk Application name",
"required": true,
"secret": false,
"key": true,
"queryable": false,
"name": "ApplicationName"
},
{
"description": "The Elastic Beanstalk Environment name",
"required": true,
"secret": false,
"key": true,
"queryable": false,
"name": "EnvironmentName"
}
],
"outputArtifactDetails": {
"maximumCount": 0,
"minimumCount": 0
},
"id": {
"category": "Deploy",
"owner": "AWS",
"version": "1",
"provider": "ElasticBeanstalk"
},
"settings": {
"entityUrlTemplate": "https://console.aws.amazon.com/elasticbeanstalk/
r/application/{Config:ApplicationName}",
"executionUrlTemplate": "https://console.aws.amazon.com/
elasticbeanstalk/r/application/{Config:ApplicationName}"
}
},
{
"inputArtifactDetails": {
"maximumCount": 1,
"minimumCount": 1
},
"actionConfigurationProperties": [
{
"description": "The deployment application name",
"required": true,
"secret": false,
"key": true,
"queryable": false,
"name": "ApplicationName"
},
{
"description": "The deployment group name",
"required": true,
"secret": false,
"key": true,
"queryable": false,
"name": "DeploymentGroupName"
}
],
"outputArtifactDetails": {
"maximumCount": 0,
"minimumCount": 0
},
"id": {
"category": "Deploy",
"owner": "AWS",
"version": "1",
"provider": "CodeDeploy"
},
"settings": {
"entityUrlTemplate": "https://console.aws.amazon.com/codedeploy/home?#/
applications/{Config:ApplicationName}/deployment-groups/{Config:DeploymentGroupName}",
"executionUrlTemplate": "https://console.aws.amazon.com/codedeploy/
home?#/deployments/{ExternalExecutionId}"
}
},
{
"inputArtifactDetails": {
"maximumCount": 0,
"minimumCount": 0
},
"actionConfigurationProperties": [
{
"description": "The repository owner (username or organization)",
"required": true,
"secret": false,
"key": true,
"queryable": false,
"name": "Owner"
},
{
"description": "The name of the repository",
"required": true,
"secret": false,
"key": true,
"queryable": false,
"name": "Repo"
},
{
"description": "The tracked branch",
"required": true,
"secret": false,
"key": true,
"queryable": false,
"name": "Branch"
},
{
"description": "The OAuth2 token",
"required": true,
"secret": true,
"key": false,
"queryable": false,
"name": "OAuthToken"
}
],
"outputArtifactDetails": {
"maximumCount": 1,
"minimumCount": 1
},
"id": {
"category": "Source",
"owner": "ThirdParty",
"version": "1",
"provider": "GitHub"
},
"settings": {
"entityUrlTemplate": "https://github.com/{Config:Owner}/{Config:Repo}/
tree/{Config:Branch}",
"revisionUrlTemplate": "https://github.com/{Config:Owner}/
{Config:Repo}/commit/{RevisionId}"
}
},
{
"inputArtifactDetails": {
"maximumCount": 5,
"minimumCount": 0
},
"actionConfigurationProperties": [
{
"secret": false,
"required": true,
"name": "JenkinsBuildProject",
"key": true,
"queryable": true
}
],
"outputArtifactDetails": {
"maximumCount": 5,
"minimumCount": 0
},
"id": {
"category": "Build",
"owner": "Custom",
"version": "1",
"provider": "JenkinsProviderName"
},
"settings": {
"entityUrlTemplate": "http://192.0.2.4/job/{Config:ProjectName}",
"executionUrlTemplate": "http://192.0.2.4/job/{Config:ProjectName}/
{ExternalExecutionId}"
}
},
{
"inputArtifactDetails": {
"maximumCount": 5,
"minimumCount": 0
},
"actionConfigurationProperties": [
{
"secret": false,
"required": true,
"name": "JenkinsTestProject",
"key": true,
"queryable": true
}
],
"outputArtifactDetails": {
"maximumCount": 5,
"minimumCount": 0
},
"id": {
"category": "Test",
"owner": "Custom",
"version": "1",
"provider": "JenkinsProviderName"
},
"settings": {
"entityUrlTemplate": "http://192.0.2.4/job/{Config:ProjectName}",
"executionUrlTemplate": "http://192.0.2.4/job/{Config:ProjectName}/
{ExternalExecutionId}"
}
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListPipelineExecutions
Gets a summary of the most recent executions for a pipeline.
Request Syntax
{
"maxResults": number,
"nextToken": "string",
"pipelineName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
maxResults
The maximum number of results to return in a single call. To retrieve the remaining results,
make another call with the returned nextToken value. Pipeline history is limited to the most
recent 12 months, based on pipeline execution start times. Default value is 100.
Type: Integer
Required: No
nextToken
The token that was returned from the previous ListPipelineExecutions call, which can be
used to return the next set of pipeline executions in the list.
Type: String
Required: No
pipelineName
The name of the pipeline for which you want to get execution summary information.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
Response Syntax
{
"nextToken": "string",
"pipelineExecutionSummaries": [
{
"lastUpdateTime": number,
"pipelineExecutionId": "string",
"sourceRevisions": [
{
"actionName": "string",
"revisionId": "string",
"revisionSummary": "string",
"revisionUrl": "string"
}
],
"startTime": number,
"status": "string",
"stopTrigger": {
"reason": "string"
},
"trigger": {
"triggerDetail": "string",
"triggerType": "string"
}
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
nextToken
A token that can be used in the next ListPipelineExecutions call. To view all items in the
list, continue to call this operation with each subsequent token until no more nextToken values
are returned.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
The next token was specified in an invalid format. Make sure that the next token you provide is
the token returned by a previous call.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListPipelines
Gets a summary of all of the pipelines associated with your account.
Request Syntax
{
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
maxResults
The maximum number of pipelines to return in a single call. To retrieve the remaining pipelines,
make another call with the returned nextToken value. The minimum value you can specify is 1.
The maximum accepted value is 1000.
Type: Integer
Required: No
nextToken
An identifier that was returned from the previous list pipelines call. It can be used to return the
next set of pipelines in the list.
Type: String
Required: No
Response Syntax
{
"nextToken": "string",
"pipelines": [
{
"created": number,
"name": "string",
"pipelineType": "string",
"updated": number,
"version": number
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
nextToken
If the amount of returned information is significantly large, an identifier is also returned. It can
be used in a subsequent list pipelines call to return the next set of pipelines in the list.
Type: String
pipelines
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
The next token was specified in an invalid format. Make sure that the next token you provide is
the token returned by a previous call.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 2
X-Amz-Target: CodePipeline_20150709.ListPipelines
X-Amz-Date: 20160707T160211Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 668
{
"pipelines": [
{
"updated": 1444681408.094,
"version": 1,
"name": "MyFirstPipeline",
"created": 1444681408.094
},
{
"updated": 1443048299.639,
"version": 3,
"name": "MySecondPipeline",
"created": 1443046290.003
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTagsForResource
Gets the set of key-value pairs (metadata) that are used to manage the resource.
Request Syntax
{
"maxResults": number,
"nextToken": "string",
"resourceArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
maxResults
Type: Integer
Required: No
nextToken
The token that was returned from the previous API call, which would be used to return the next
page of the list. The ListTagsforResource call lists all available tags in one call and does not use
pagination.
Type: String
Required: No
resourceArn
The Amazon Resource Name (ARN) of the resource to get tags for.
Type: String
Pattern: arn:aws(-[\w]+)*:codepipeline:.+:[0-9]{12}:.+
Required: Yes
Response Syntax
{
"nextToken": "string",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
nextToken
If the amount of returned information is significantly large, an identifier is also returned and
can be used in a subsequent API call to return the next page of the list. The ListTagsforResource
call lists all available tags in one call and does not use pagination.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidArnException
The next token was specified in an invalid format. Make sure that the next token you provide is
the token returned by a previous call.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListWebhooks
Gets a listing of all the webhooks in this AWS Region for this account. The output lists all webhooks
and includes the webhook URL and ARN and the configuration for each webhook.
Request Syntax
{
"MaxResults": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
MaxResults
The maximum number of results to return in a single call. To retrieve the remaining results,
make another call with the returned nextToken value.
Type: Integer
Required: No
NextToken
The token that was returned from the previous ListWebhooks call, which can be used to return
the next set of webhooks in the list.
Type: String
Required: No
Response Syntax
{
"NextToken": "string",
"webhooks": [
{
"arn": "string",
"definition": {
"authentication": "string",
"authenticationConfiguration": {
"AllowedIPRange": "string",
"SecretToken": "string"
},
"filters": [
{
"jsonPath": "string",
"matchEquals": "string"
}
],
"name": "string",
"targetAction": "string",
"targetPipeline": "string"
},
"errorCode": "string",
"errorMessage": "string",
"lastTriggered": number,
"tags": [
{
"key": "string",
"value": "string"
}
],
"url": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
If the amount of returned information is significantly large, an identifier is also returned and
can be used in a subsequent ListWebhooks call to return the next set of webhooks in the list.
Type: String
The JSON detail returned for each webhook in the list output for the ListWebhooks call.
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidNextTokenException
The next token was specified in an invalid format. Make sure that the next token you provide is
the token returned by a previous call.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PollForJobs
Returns information about any jobs for CodePipeline to act on. PollForJobs is valid only for
action types with "Custom" in the owner field. If the action type contains AWS or ThirdParty in
the owner field, the PollForJobs action returns an error.
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. This API also returns any secret values defined for the action.
Request Syntax
{
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"maxBatchSize": number,
"queryParam": {
"string" : "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
actionTypeId
Required: Yes
maxBatchSize
Type: Integer
Required: No
queryParam
A map of property names and values. For an action type with no queryable properties, this
value must be null or an empty map. For an action type with a queryable property, you must
supply that property as a key in the map. Only jobs whose action configuration matches the
mapped value are returned.
Required: No
Response Syntax
{
"jobs": [
{
"accountId": "string",
"data": {
"actionConfiguration": {
"configuration": {
"string" : "string"
}
},
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"artifactCredentials": {
"accessKeyId": "string",
"secretAccessKey": "string",
"sessionToken": "string"
},
"continuationToken": "string",
"encryptionKey": {
"id": "string",
"type": "string"
},
"inputArtifacts": [
{
"location": {
"s3Location": {
"bucketName": "string",
"objectKey": "string"
},
"type": "string"
},
"name": "string",
"revision": "string"
}
],
"outputArtifacts": [
{
"location": {
"s3Location": {
"bucketName": "string",
"objectKey": "string"
},
"type": "string"
},
"name": "string",
"revision": "string"
}
],
"pipelineContext": {
"action": {
"actionExecutionId": "string",
"name": "string"
},
"pipelineArn": "string",
"pipelineExecutionId": "string",
"pipelineName": "string",
"stage": {
"name": "string"
}
}
},
"id": "string",
"nonce": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
jobs
Errors
For information about the errors that are common to all actions, see Common Errors.
ActionTypeNotFoundException
ValidationException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 173
X-Amz-Target: CodePipeline_20150709.PollForJobs
X-Amz-Date: 20151030T230047Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20151030/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"actionTypeId": {
"category": "Test",
"owner": "Custom",
"version": "1",
"provider": "JenkinsProviderName"
},
"maxBatchSize": 5,
"queryParam": {
"ProjectName": "JenkinsTestProject"
}
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 1830
{
"jobs": [
{
"accountId": "111111111111",
"data": {
"actionConfiguration": {
"__type": "ActionConfiguration",
"configuration": {
"ProjectName": "JenkinsTestProject"
}
},
"actionTypeId": {
"__type": "ActionTypeId",
"category": "Test",
"owner": "Custom",
"provider": "JenkinsProviderName",
"version": "1"
},
"artifactCredentials": {
"__type": "AWSSessionCredentials",
"accessKeyId": "AKIAIOSFODNN7EXAMPLE",
"secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"sessionToken":
"fICCQD6m7oRw0uXOjANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZW
+a4GmWIWJ21uUSfwfEvySWtC2XADZ4nB+BLYgVIk60CpiwsZ3G93vUEIO3IyNoH/
f0wYK8m9TrDHudUZg3qX4waLG5M43q7Wgc/
MbQITxOUSQv7c7ugFFDzQGBzZswY6786m86gpEIbb3OhjZnzcvQAaRHhdlQWIMm2nrAgMBAAEwDQYJKoZIhvcNAQEFBQADg
+auNKyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0FkbFFBjvSfpJIlJ00zbhNYS5f6GuoEDmFJl0ZxBHjJnyp378OD8uTs7fL
},
"inputArtifacts": [
{
"__type": "Artifact",
"location": {
"s3Location": {
"bucketName": "codepipeline-us-east-1-11EXAMPLE11",
"objectKey": "MySecondPipeline/MyAppBuild/EXAMPLE"
},
"type": "S3"
},
"name": "MyAppBuild"
}
],
"outputArtifacts": [],
"pipelineContext": {
"__type": "PipelineContext",
"action": {
"name": "JenkinsTestAction"
},
"pipelineName": "MySecondPipeline",
"stage": {
"name": "Testing"
}
}
},
"id": "ef66c259-64f9-EXAMPLE",
"nonce": "3"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
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.
actionTypeId
Required: Yes
maxBatchSize
Type: Integer
Required: No
Response Syntax
{
"jobs": [
{
"clientId": "string",
"jobId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
jobs
Errors
For information about the errors that are common to all actions, see Common Errors.
ActionTypeNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutActionRevision
Provides information to CodePipeline about new revisions to a source.
Request Syntax
{
"actionName": "string",
"actionRevision": {
"created": number,
"revisionChangeId": "string",
"revisionId": "string"
},
"pipelineName": "string",
"stageName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
actionName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
actionRevision
Required: Yes
pipelineName
The name of the pipeline that starts processing the revision to the source.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
stageName
The name of the stage that contains the action that acts on the revision.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
Response Syntax
{
"newRevision": boolean,
"pipelineExecutionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
newRevision
Indicates whether the artifact revision was previously used in an execution of the specified
pipeline.
Type: Boolean
pipelineExecutionId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Errors
For information about the errors that are common to all actions, see Common Errors.
ActionNotFoundException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 173
X-Amz-Target: CodePipeline_20150709.PutActionRevision
X-Amz-Date: 20151030T230047Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20151030/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"actionName": "Source",
"actionRevision": {
"created": 1446726163.571,
"revisionChangeId": "3fdd7b9196697a096d5af1d649e26a4a",
"revisionId": "HYGp7zmwbCPPwo234xsCEM7d6ToeAqIl"
},
"pipelineName": "MyFirstPipeline",
"stageName": "Staging"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 1830
{
"newRevision": true,
"pipelineExecutionId": "42ee4d10-e4de-a37c-82b7-36c11EXAMPLE"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutApprovalResult
Provides the response to a manual approval request to CodePipeline. Valid responses include
Approved and Rejected.
Request Syntax
{
"actionName": "string",
"pipelineName": "string",
"result": {
"status": "string",
"summary": "string"
},
"stageName": "string",
"token": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
actionName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
pipelineName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
result
Required: Yes
stageName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
token
The system-generated token used to identify a unique approval request. The token for each
open approval request can be obtained using the GetPipelineState action. It is used to validate
that the approval request corresponding to this token is still valid.
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
Response Syntax
{
"approvedAt": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
approvedAt
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors.
ActionNotFoundException
ValidationException
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 173
X-Amz-Target: CodePipeline_20150709.PutApprovalResult
X-Amz-Date: 20151030T230047Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20151030/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"actionName": "MyApprovalAction",
"pipelineName": "MyFirstPipeline",
"result": {
"status": "Approved",
"summary": "Latest changes meet the bar. Ship it!"
},
"stageName": "MyApprovalStage",
"token": "1a2b3c4d-573f-4ea7-a67E-XAMPLETOKEN"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 24
{
"approvedAt": 1466137312.204
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutJobFailureResult
Represents the failure of a job as returned to the pipeline by a job worker. Used for custom actions
only.
Request Syntax
{
"failureDetails": {
"externalExecutionId": "string",
"message": "string",
"type": "string"
},
"jobId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
failureDetails
Required: Yes
jobId
The unique system-generated ID of the job that failed. 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
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidJobStateException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutJobSuccessResult
Represents the success of a job as returned to the pipeline by a job worker. Used for custom actions
only.
Request Syntax
{
"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
For information about the parameters that are common to all actions, see Common Parameters.
continuationToken
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
Required: No
currentRevision
The ID of the current revision of the artifact successfully worked on by the job.
Required: No
executionDetails
The execution details of the successful job, such as the actions taken by the job worker.
Required: No
jobId
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
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.
Required: No
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidJobStateException
Exceeded the total size limit for all variables in the pipeline.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutThirdPartyJobFailureResult
Represents the failure of a third party job as returned to the pipeline by a job worker. Used for
partner actions only.
Request Syntax
{
"clientToken": "string",
"failureDetails": {
"externalExecutionId": "string",
"message": "string",
"type": "string"
},
"jobId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
clientToken
The clientToken portion of the clientId and clientToken pair used to verify that the calling entity
is allowed access to the job and its details.
Type: String
Required: Yes
failureDetails
Required: Yes
jobId
The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs.
Type: String
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidClientTokenException
InvalidJobStateException
JobNotFoundException
ValidationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutThirdPartyJobSuccessResult
Represents the success of a third party job as returned to the pipeline by a job worker. Used for
partner actions only.
Request Syntax
{
"clientToken": "string",
"continuationToken": "string",
"currentRevision": {
"changeIdentifier": "string",
"created": number,
"revision": "string",
"revisionSummary": "string"
},
"executionDetails": {
"externalExecutionId": "string",
"percentComplete": number,
"summary": "string"
},
"jobId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
clientToken
The clientToken portion of the clientId and clientToken pair used to verify that the calling entity
is allowed access to the job and its details.
Type: String
Required: Yes
continuationToken
A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful
job provides to identify a partner 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 partner action. When the action is complete, no continuation token should be supplied.
Type: String
Required: No
currentRevision
Required: No
executionDetails
The details of the actions taken and results produced on an artifact as it passes through stages
in the pipeline.
Required: No
jobId
The ID of the job that successfully completed. This is the same ID returned from
PollForThirdPartyJobs.
Type: String
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidClientTokenException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutWebhook
Defines a webhook and returns a unique webhook URL generated by CodePipeline. This URL can
be supplied to third party source hosting providers to call every time there's a code change. When
CodePipeline receives a POST request on this URL, the pipeline defined in the webhook is started
as long as the POST request satisfied the authentication and filtering requirements supplied when
defining the webhook. RegisterWebhookWithThirdParty and DeregisterWebhookWithThirdParty
APIs can be used to automatically configure supported third parties to call the generated webhook
URL.
Request Syntax
{
"tags": [
{
"key": "string",
"value": "string"
}
],
"webhook": {
"authentication": "string",
"authenticationConfiguration": {
"AllowedIPRange": "string",
"SecretToken": "string"
},
"filters": [
{
"jsonPath": "string",
"matchEquals": "string"
}
],
"name": "string",
"targetAction": "string",
"targetPipeline": "string"
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
tags
Required: No
webhook
The detail provided in an input file to create the webhook, such as the webhook name, the
pipeline name, and the action name. Give the webhook a unique name that helps you identify
it. You might name the webhook after the pipeline and action it targets so that you can easily
recognize what it's used for later.
Required: Yes
Response Syntax
{
"webhook": {
"arn": "string",
"definition": {
"authentication": "string",
"authenticationConfiguration": {
"AllowedIPRange": "string",
"SecretToken": "string"
},
"filters": [
{
"jsonPath": "string",
"matchEquals": "string"
}
],
"name": "string",
"targetAction": "string",
"targetPipeline": "string"
},
"errorCode": "string",
"errorMessage": "string",
"lastTriggered": number,
"tags": [
{
"key": "string",
"value": "string"
}
],
"url": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
webhook
The detail returned from creating the webhook, such as the webhook name, webhook URL, and
webhook ARN.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The number of pipelines associated with the AWS account has exceeded the limit allowed for
the account.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RegisterWebhookWithThirdParty
Configures a connection between the webhook that was created and the external tool with events
to be detected.
Request Syntax
{
"webhookName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
webhookName
The name of an existing webhook created with PutWebhook to register with a supported third
party.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ValidationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RetryStageExecution
You can retry a stage that has failed without having to run a pipeline again from the beginning.
You do this by either retrying the failed actions in a stage or by retrying all actions in the stage
starting from the first action in the stage. When you retry the failed actions in a stage, all actions
that are still in progress continue working, and failed actions are triggered again. When you retry
a failed stage from the first action in the stage, the stage cannot have any actions in progress.
Before a stage can be retried, it must either have all actions failed or some actions failed and some
succeeded.
Request Syntax
{
"pipelineExecutionId": "string",
"pipelineName": "string",
"retryMode": "string",
"stageName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
pipelineExecutionId
The ID of the pipeline execution in the failed stage to be retried. Use the GetPipelineState
action to retrieve the current pipelineExecutionId of the failed stage
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
pipelineName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
retryMode
Type: String
Required: Yes
stageName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
Response Syntax
{
"pipelineExecutionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
pipelineExecutionId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
Your request cannot be handled because the pipeline is busy handling ongoing activities. Try
again later.
The stage has failed in a later run of the pipeline and the pipelineExecutionId associated
with the request is out of date.
Unable to retry. The pipeline structure or stage state might have changed while actions awaited
retry, or the stage contains no failed actions.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 173
X-Amz-Target: CodePipeline_20150709.RetryStageExecution
X-Amz-Date: 20151030T230047Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20151030/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"pipelineExecutionId": "3137f7cb-7cf7-EXAMPLE",
"pipelineName": "MyFirstPipeline",
"retryMode": "FAILED_ACTIONS",
"stageName": "Staging"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 30
{
"pipelineExecutionId": "3137f7cb-7cf7-EXAMPLE"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StartPipelineExecution
Starts the specified pipeline. Specifically, it begins processing the latest commit to the source
location specified as part of the pipeline.
Request Syntax
{
"clientRequestToken": "string",
"name": "string",
"sourceRevisions": [
{
"actionName": "string",
"revisionType": "string",
"revisionValue": "string"
}
],
"variables": [
{
"name": "string",
"value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
clientRequestToken
Type: String
Pattern: ^[a-zA-Z0-9-]+$
Required: No
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
sourceRevisions
A list that allows you to specify, or override, the source revision for a pipeline execution that's
being started. A source revision is the version with all the changes to your application code, or
source artifact, for the pipeline execution.
Required: No
variables
A list that overrides pipeline variables for a pipeline execution that's being started. Variable
names must match [A-Za-z0-9@\-_]+, and the values can be anything except an empty
string.
Required: No
Response Syntax
{
"pipelineExecutionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
pipelineExecutionId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
Your request cannot be handled because the pipeline is busy handling ongoing activities. Try
again later.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 27
X-Amz-Target: CodePipeline_20150709.StartPipelineExecution
X-Amz-Date: 20160707T172713Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"name": "MyFirstPipeline"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 62
{
"pipelineExecutionId": "3137f7cb-7cf7-EXAMPLE"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StopPipelineExecution
Stops the specified pipeline execution. You choose to either stop the pipeline execution by
completing in-progress actions without starting subsequent actions, or by abandoning in-progress
actions. While completing or abandoning in-progress actions, the pipeline execution is in a
Stopping state. After all in-progress actions are completed or abandoned, the pipeline execution
is in a Stopped state.
Request Syntax
{
"abandon": boolean,
"pipelineExecutionId": "string",
"pipelineName": "string",
"reason": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
abandon
Use this option to stop the pipeline execution by abandoning, rather than finishing, in-progress
actions.
Note
This option can lead to failed or out-of-sequence tasks.
Type: Boolean
Required: No
pipelineExecutionId
The ID of the pipeline execution to be stopped in the current stage. Use the
GetPipelineState action to retrieve the current pipelineExecutionId.
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
pipelineName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
reason
Use this option to enter comments, such as the reason the pipeline was stopped.
Type: String
Required: No
Response Syntax
{
"pipelineExecutionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
pipelineExecutionId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Errors
For information about the errors that are common to all actions, see Common Errors.
ConflictException
Your request cannot be handled because the pipeline is busy handling ongoing activities. Try
again later.
The pipeline execution is already in a Stopping state. If you already chose to stop and wait,
you cannot make that request again. You can choose to stop and abandon now, but be aware
that this option can lead to failed tasks or out of sequence tasks. If you already chose to stop
and abandon, you cannot make that request again.
Unable to stop the pipeline execution. The execution might already be in a Stopped state, or it
might no longer be in progress.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagResource
Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage
a resource.
Request Syntax
{
"resourceArn": "string",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
resourceArn
The Amazon Resource Name (ARN) of the resource you want to add tags to.
Type: String
Pattern: arn:aws(-[\w]+)*:codepipeline:.+:[0-9]{12}:.+
Required: Yes
tags
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UntagResource
Removes tags from an AWS resource.
Request Syntax
{
"resourceArn": "string",
"tagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
resourceArn
The Amazon Resource Name (ARN) of the resource to remove tags from.
Type: String
Pattern: arn:aws(-[\w]+)*:codepipeline:.+:[0-9]{12}:.+
Required: Yes
tagKeys
The list of keys for the tags to be removed from the resource.
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateActionType
Updates an action type that was created with any supported integration model, where the action
type is to be used by customers of the action type provider. Use a JSON file with the action
definition and UpdateActionType to provide the full structure.
Request Syntax
{
"actionType": {
"description": "string",
"executor": {
"configuration": {
"jobWorkerExecutorConfiguration": {
"pollingAccounts": [ "string" ],
"pollingServicePrincipals": [ "string" ]
},
"lambdaExecutorConfiguration": {
"lambdaFunctionArn": "string"
}
},
"jobTimeout": number,
"policyStatementsTemplate": "string",
"type": "string"
},
"id": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"inputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"outputArtifactDetails": {
"maximumCount": number,
"minimumCount": number
},
"permissions": {
"allowedAccounts": [ "string" ]
},
"properties": [
{
"description": "string",
"key": boolean,
"name": "string",
"noEcho": boolean,
"optional": boolean,
"queryable": boolean
}
],
"urls": {
"configurationUrl": "string",
"entityUrlTemplate": "string",
"executionUrlTemplate": "string",
"revisionUrlTemplate": "string"
}
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
actionType
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ActionTypeNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdatePipeline
Updates a specified pipeline with edits or changes to its structure. Use a JSON file with the pipeline
structure and UpdatePipeline to provide the full structure of the pipeline. Updating the pipeline
increases the version number of the pipeline by 1.
Request Syntax
{
"pipeline": {
"artifactStore": {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
},
"artifactStores": {
"string" : {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
}
},
"name": "string",
"pipelineType": "string",
"roleArn": "string",
"stages": [
{
"actions": [
{
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"configuration": {
"string" : "string"
},
"inputArtifacts": [
{
"name": "string"
}
],
"name": "string",
"namespace": "string",
"outputArtifacts": [
{
"name": "string"
}
],
"region": "string",
"roleArn": "string",
"runOrder": number
}
],
"blockers": [
{
"name": "string",
"type": "string"
}
],
"name": "string"
}
],
"triggers": [
{
"gitConfiguration": {
"push": [
{
"tags": {
"excludes": [ "string" ],
"includes": [ "string" ]
}
}
],
"sourceActionName": "string"
},
"providerType": "string"
}
],
"variables": [
{
"defaultValue": "string",
"description": "string",
"name": "string"
}
],
"version": number
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
pipeline
Required: Yes
Response Syntax
{
"pipeline": {
"artifactStore": {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
},
"artifactStores": {
"string" : {
"encryptionKey": {
"id": "string",
"type": "string"
},
"location": "string",
"type": "string"
}
},
"name": "string",
"pipelineType": "string",
"roleArn": "string",
"stages": [
{
"actions": [
{
"actionTypeId": {
"category": "string",
"owner": "string",
"provider": "string",
"version": "string"
},
"configuration": {
"string" : "string"
},
"inputArtifacts": [
{
"name": "string"
}
],
"name": "string",
"namespace": "string",
"outputArtifacts": [
{
"name": "string"
}
],
"region": "string",
"roleArn": "string",
"runOrder": number
}
],
"blockers": [
{
"name": "string",
"type": "string"
}
],
"name": "string"
}
],
"triggers": [
{
"gitConfiguration": {
"push": [
{
"tags": {
"excludes": [ "string" ],
"includes": [ "string" ]
}
}
],
"sourceActionName": "string"
},
"providerType": "string"
}
],
"variables": [
{
"defaultValue": "string",
"description": "string",
"name": "string"
}
],
"version": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
pipeline
Errors
For information about the errors that are common to all actions, see Common Errors.
InvalidActionDeclarationException
The number of pipelines associated with the AWS account has exceeded the limit allowed for
the account.
Examples
Example
Sample Request
POST / HTTP/1.1
Host: codepipeline.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 914
X-Amz-Target: CodePipeline_20150709.UpdatePipeline
X-Amz-Date: 20160707T174930Z
User-Agent: aws-cli/1.7.38 Python/2.7.9 Windows/7
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160707/us-east-1/
codepipeline/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-
target, Signature=8d9b5998EXAMPLE
{
"pipeline": {
"roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service",
"stages": [
{
"name": "Source",
"actions": [
{
"inputArtifacts": [],
"name": "Source",
"actionTypeId": {
"category": "Source",
"owner": "AWS",
"version": "1",
"provider": "S3"
},
"outputArtifacts": [
{
"name": "MyApp"
}
],
"configuration": {
"S3Bucket": "awscodepipeline-demo-bucket2",
"S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip"
},
"runOrder": 1
}
]
},
{
"name": "Staging",
"actions": [
{
"inputArtifacts": [
{
"name": "MyApp"
}
],
"name": "CodePipelineDemoFleet",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"version": "1",
"provider": "CodeDeploy"
},
"outputArtifacts": [],
"configuration": {
"ApplicationName": "CodePipelineDemoApplication",
"DeploymentGroupName": "CodePipelineDemoFleet"
},
"runOrder": 1
}
]
}
],
"artifactStore": {
"type": "S3",
"location": "codepipeline-us-east-1-11EXAMPLE11"
},
"name": "MyFirstPipeline",
"version": 1
}
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: 620484b7-88cb-11e5-b497-75c49EXAMPLE
Content-Type: application/x-amz-json-1.1
Content-Length: 898
{
"pipeline": {
"artifactStore": {
"location": "codepipeline-us-east-1-11EXAMPLE11",
"type": "S3"
},
"name": "MyFirstPipeline",
"roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service",
"stages": [
{
"actions": [
{
"actionTypeId": {
"__type": "ActionTypeId",
"category": "Source",
"owner": "AWS",
"provider": "S3",
"version": "1"
},
"configuration": {
"S3Bucket": "awscodepipeline-demo-bucket2",
"S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip"
},
"inputArtifacts": [],
"name": "Source",
"outputArtifacts": [
{
"name": "MyApp"
}
],
"runOrder": 1
}
],
"name": "Source"
},
{
"actions": [
{
"actionTypeId": {
"__type": "ActionTypeId",
"category": "Deploy",
"owner": "AWS",
"provider": "CodeDeploy",
"version": "1"
},
"configuration": {
"ApplicationName": "CodePipelineDemoApplication",
"DeploymentGroupName": "CodePipelineDemoFleet"
},
"inputArtifacts": [
{
"name": "MyApp"
}
],
"name": "CodePipelineDemoFleet",
"outputArtifacts": [],
"runOrder": 1
}
],
"name": "Staging"
}
],
"version": 3
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Data Types
The CodePipeline API contains several data types that various actions use. This section describes
each data type in detail.
Note
The order of each element in a data type structure is not guaranteed. Applications should
not assume a particular order.
• ActionConfiguration
• ActionConfigurationProperty
• ActionContext
• ActionDeclaration
• ActionExecution
• ActionExecutionDetail
• ActionExecutionFilter
• ActionExecutionInput
• ActionExecutionOutput
• ActionExecutionResult
• ActionRevision
• ActionState
• ActionType
• ActionTypeArtifactDetails
• ActionTypeDeclaration
• ActionTypeExecutor
• ActionTypeId
• ActionTypeIdentifier
• ActionTypePermissions
• ActionTypeProperty
• ActionTypeSettings
• ActionTypeUrls
• ApprovalResult
• Artifact
• ArtifactDetail
• ArtifactDetails
• ArtifactLocation
• ArtifactRevision
• ArtifactStore
• AWSSessionCredentials
• BlockerDeclaration
• CurrentRevision
• EncryptionKey
• ErrorDetails
• ExecutionDetails
• ExecutionTrigger
• ExecutorConfiguration
• FailureDetails
• GitConfiguration
• GitPushFilter
• GitTagFilterCriteria
• InputArtifact
• Job
• JobData
• JobDetails
• JobWorkerExecutorConfiguration
• LambdaExecutorConfiguration
• ListWebhookItem
• OutputArtifact
• PipelineContext
• PipelineDeclaration
• PipelineExecution
• PipelineExecutionSummary
• PipelineMetadata
• PipelineSummary
• PipelineTriggerDeclaration
• PipelineVariable
• PipelineVariableDeclaration
• ResolvedPipelineVariable
• S3ArtifactLocation
• S3Location
• SourceRevision
• SourceRevisionOverride
• StageContext
• StageDeclaration
• StageExecution
• StageState
• StopExecutionTrigger
• Tag
• ThirdPartyJob
• ThirdPartyJobData
• ThirdPartyJobDetails
• TransitionState
• WebhookAuthConfiguration
• WebhookDefinition
• WebhookFilterRule
ActionConfiguration
Represents information about an action configuration.
Contents
configuration
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionConfigurationProperty
Represents information about an action configuration property.
Contents
key
Type: Boolean
Required: Yes
name
Type: String
Required: Yes
required
Type: Boolean
Required: Yes
secret
Whether the configuration property is secret. Secrets are hidden from all calls
except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and
PollForThirdPartyJobs.
When updating a pipeline, passing * * * * * without changing any other values of the action
preserves the previous value of the secret.
Type: Boolean
Required: Yes
description
Type: String
Required: No
queryable
Indicates that the property is used with PollForJobs. When creating a custom action, an
action can have up to one queryable property. If it has one, that property must be both required
and not secret.
If you create a pipeline with a custom action type, and that custom action contains a queryable
property, the value for that configuration property is subject to other restrictions. The value
must be less than or equal to twenty (20) characters. The value can contain only alphanumeric
characters, underscores, and hyphens.
Type: Boolean
Required: No
type
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionContext
Represents the context of an action in the stage of a pipeline to a job worker.
Contents
actionExecutionId
Type: String
Required: No
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionDeclaration
Represents information about an action declaration.
Contents
actionTypeId
Required: Yes
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
configuration
The action's configuration. These are key-value pairs that specify input values for an action.
For more information, see Action Structure Requirements in CodePipeline. For the list of
configuration properties for the AWS CloudFormation action type in CodePipeline, see
Configuration Properties Reference in the AWS CloudFormation User Guide. For template
snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in
the AWS CloudFormation User Guide.
The values can be represented in either JSON or YAML format. For example, the JSON
configuration item format is as follows:
JSON:
Required: No
inputArtifacts
The name or ID of the artifact consumed by the action, such as a test or build artifact.
Required: No
namespace
The variable namespace associated with the action. All variables produced as output by this
action fall under this namespace.
Type: String
Pattern: [A-Za-z0-9@\-_]+
Required: No
outputArtifacts
The name or ID of the result of the action declaration, such as a test or build artifact.
Required: No
region
Type: String
Required: No
roleArn
The ARN of the IAM service role that performs the declared action. This is assumed through the
roleArn for the pipeline.
Type: String
Pattern: arn:aws(-[\w]+)*:iam::[0-9]{12}:role/.*
Required: No
runOrder
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionExecution
Represents information about the run of an action.
Contents
actionExecutionId
ID of the workflow action execution in the current stage. Use the GetPipelineState action to
retrieve the current action execution details of the current stage.
Note
For older executions, this field might be empty. The action execution ID is available for
executions run on or after March 2020.
Type: String
Required: No
errorDetails
Required: No
externalExecutionId
Type: String
Required: No
externalExecutionUrl
The URL of a resource external to AWS that is used when running the action (for example, an
external repository URL).
Type: String
Required: No
lastStatusChange
Type: Timestamp
Required: No
lastUpdatedBy
Type: String
Required: No
percentComplete
Type: Integer
Required: No
status
The status of the action, or for a completed action, the last status of the action.
Type: String
Required: No
summary
Type: String
Required: No
token
The system-generated token used to identify a unique approval request. The token for each
open approval request can be obtained using the GetPipelineState command. It is used to
validate that the approval request corresponding to this token is still valid.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionExecutionDetail
Returns information about an execution of an action, including the action execution ID, and the
name, version, and timing of the action.
Contents
actionExecutionId
Type: String
Required: No
actionName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
input
Input details for the action execution, such as role ARN, Region, and input artifacts.
Required: No
lastUpdateTime
Type: Timestamp
Required: No
output
Output details for the action execution, such as the action execution result.
Required: No
pipelineExecutionId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Required: No
pipelineVersion
Type: Integer
Required: No
stageName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
startTime
Type: Timestamp
Required: No
status
The status of the action execution. Status categories are InProgress, Succeeded, and
Failed.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionExecutionFilter
Filter values for the action execution.
Contents
pipelineExecutionId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionExecutionInput
Input information used for an action execution.
Contents
actionTypeId
Required: No
configuration
Required: No
inputArtifacts
Details of input artifacts of the action that correspond to the action execution.
Required: No
namespace
The variable namespace associated with the action. All variables produced as output by this
action fall under this namespace.
Type: String
Pattern: [A-Za-z0-9@\-_]+
Required: No
region
Type: String
Required: No
resolvedConfiguration
Configuration data for an action execution with all variable references replaced with their real
values for the execution.
Required: No
roleArn
The ARN of the IAM service role that performs the declared action. This is assumed through the
roleArn for the pipeline.
Type: String
Pattern: arn:aws(-[\w]+)*:iam::[0-9]{12}:role/.*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionExecutionOutput
Output details listed for an action execution, such as the action execution result.
Contents
executionResult
Execution result information listed in the output details for an action execution.
Required: No
outputArtifacts
Details of output artifacts of the action that correspond to the action execution.
Required: No
outputVariables
The outputVariables field shows the key-value pairs that were output as part of that execution.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionExecutionResult
Execution result information, such as the external execution ID.
Contents
externalExecutionId
Type: String
Required: No
externalExecutionSummary
Type: String
Required: No
externalExecutionUrl
The deepest external link to the external resource (for example, a repository URL or deployment
endpoint) that is used when running the action.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionRevision
Represents information about the version (or revision) of an action.
Contents
created
The date and time when the most recent version of the action was created, in timestamp
format.
Type: Timestamp
Required: Yes
revisionChangeId
The unique identifier of the change that set the state to this revision (for example, a
deployment ID or timestamp).
Type: String
Required: Yes
revisionId
The system-generated unique ID that identifies the revision number of the action.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionState
Represents information about the state of an action.
Contents
actionName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
currentRevision
Required: No
entityUrl
A URL link for more information about the state of the action, such as a deployment group
details page.
Type: String
Required: No
latestExecution
Required: No
revisionUrl
A URL link for more information about the revision, such as a commit details page.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionType
Returns information about the details of an action type.
Contents
id
Required: Yes
inputArtifactDetails
The details of the input artifact for the action, such as its commit ID.
Required: Yes
outputArtifactDetails
The details of the output artifact of the action, such as its commit ID.
Required: Yes
actionConfigurationProperties
Required: No
settings
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionTypeArtifactDetails
Information about parameters for artifacts associated with the action type, such as the minimum
and maximum artifacts allowed.
Contents
maximumCount
The maximum number of artifacts that can be used with the actiontype. For example, you
should specify a minimum and maximum of zero input artifacts for an action type with a
category of source.
Type: Integer
Required: Yes
minimumCount
The minimum number of artifacts that can be used with the action type. For example, you
should specify a minimum and maximum of zero input artifacts for an action type with a
category of source.
Type: Integer
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionTypeDeclaration
The parameters for the action type definition that are provided when the action type is created or
updated.
Contents
executor
Information about the executor for an action type that was created with any supported
integration model.
Required: Yes
id
The action category, owner, provider, and version of the action type to be updated.
Required: Yes
inputArtifactDetails
Details for the artifacts, such as application files, to be worked on by the action. For example,
the minimum and maximum number of input artifacts allowed.
Required: Yes
outputArtifactDetails
Details for the output artifacts, such as a built application, that are the result of the action. For
example, the minimum and maximum number of output artifacts allowed.
Required: Yes
description
Type: String
Required: No
permissions
Details identifying the accounts with permissions to use the action type.
Required: No
properties
Required: No
urls
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionTypeExecutor
The action engine, or executor, for an action type created for a provider, where the action is to be
used by customers of the provider. The action engine is associated with the model used to create
and update the action, such as the Lambda integration model.
Contents
configuration
The action configuration properties for the action type. These properties are specified in the
action definition when the action type is created.
Required: Yes
type
The integration model used to create and update the action type, Lambda or JobWorker.
Type: String
Required: Yes
jobTimeout
The timeout in seconds for the job. An action execution can have multiple jobs. This is the
timeout for a single job, not the entire action execution.
Type: Integer
Required: No
policyStatementsTemplate
The policy statement that specifies the permissions in the CodePipeline customer account that
are needed to successfully run an action.
To grant permission to another account, specify the account ID as the Principal, a domain-style
identifier defined by the service, for example codepipeline.amazonaws.com.
Note
The size of the passed JSON policy document cannot exceed 2048 characters.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionTypeId
Represents information about an action type.
Contents
category
A category defines what kind of action can be taken in the stage, and constrains the provider
type for the action. Valid categories are limited to one of the following values.
• Source
• Build
• Test
• Deploy
• Invoke
• Approval
Type: String
Required: Yes
owner
The creator of the action being called. There are three valid values for the Owner field in the
action category section within your pipeline structure: AWS, ThirdParty, and Custom. For
more information, see Valid Action Types and Providers in CodePipeline.
Type: String
Required: Yes
provider
The provider of the service being called by the action. Valid providers are determined by the
action category. For example, an action in the Deploy category type might have a provider of
CodeDeploy, which would be specified as CodeDeploy. For more information, see Valid Action
Types and Providers in CodePipeline.
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
version
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionTypeIdentifier
Specifies the category, owner, provider, and version of the action type.
Contents
category
Defines what kind of action can be taken in the stage, one of the following:
• Source
• Build
• Test
• Deploy
• Approval
• Invoke
Type: String
Required: Yes
owner
Type: String
Pattern: AWS|ThirdParty
Required: Yes
provider
The provider of the action type being called. The provider name is supplied when the action
type is created.
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
version
Type: String
Pattern: [0-9A-Za-z_-]+
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionTypePermissions
Details identifying the users with permissions to use the action type.
Contents
allowedAccounts
A list of AWS account IDs with access to use the action type in their pipelines.
Pattern: [0-9]{12}|\*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionTypeProperty
Represents information about each property specified in the action configuration, such as the
description and key name that display for the customer using the action type.
Contents
key
Type: Boolean
Required: Yes
name
Type: String
Required: Yes
noEcho
Whether to omit the field value entered by the customer in the log. If true, the value is not
saved in CloudTrail logs for the action execution.
Type: Boolean
Required: Yes
optional
Type: Boolean
Required: Yes
description
Type: String
Required: No
queryable
Indicates that the property is used with polling. An action type can have up to one queryable
property. If it has one, that property must be both required and not secret.
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionTypeSettings
Returns information about the settings for an action type.
Contents
entityUrlTemplate
The URL returned to the CodePipeline console that provides a deep link to the resources of the
external system, such as the configuration page for a CodeDeploy deployment group. This link
is provided as part of the action display in the pipeline.
Type: String
Required: No
executionUrlTemplate
The URL returned to the CodePipeline console that contains a link to the top-level landing page
for the external system, such as the console page for CodeDeploy. This link is shown on the
pipeline view page in the CodePipeline console and provides a link to the execution entity of
the external action.
Type: String
Required: No
revisionUrlTemplate
The URL returned to the CodePipeline console that contains a link to the page where customers
can update or change the configuration of the external action.
Type: String
Required: No
thirdPartyConfigurationUrl
The URL of a sign-up page where users can sign up for an external service and perform initial
configuration of the action provided by that service.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ActionTypeUrls
Returns information about URLs for web pages that display to customers as links on the pipeline
view, such as an external configuration page for the action type.
Contents
configurationUrl
The URL returned to the CodePipeline console that contains a link to the page where customers
can configure the external action.
Type: String
Required: No
entityUrlTemplate
The URL returned to the CodePipeline console that provides a deep link to the resources of the
external system, such as a status page. This link is provided as part of the action display in the
pipeline.
Type: String
Required: No
executionUrlTemplate
The link to an execution page for the action type in progress. For example, for a CodeDeploy
action, this link is shown on the pipeline view page in the CodePipeline console, and it links to a
CodeDeploy status page.
Type: String
Required: No
revisionUrlTemplate
The URL returned to the CodePipeline console that contains a link to the page where customers
can update or change the configuration of the external action.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ApprovalResult
Represents information about the result of an approval request.
Contents
status
Type: String
Required: Yes
summary
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Artifact
Artifacts are the files that are worked on by actions in the pipeline. See the action configuration
for each action for details about artifact parameters. For example, the S3 source action artifact is
a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name:
SampleApp_Windows.zip
Contents
location
Required: No
name
Type: String
Pattern: [a-zA-Z0-9_\-]+
Required: No
revision
The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or
a revision ID (Amazon S3).
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ArtifactDetail
Artifact details for the action execution, such as the artifact location.
Contents
name
Type: String
Pattern: [a-zA-Z0-9_\-]+
Required: No
s3location
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ArtifactDetails
Returns information about the details of an artifact.
Contents
maximumCount
Type: Integer
Required: Yes
minimumCount
Type: Integer
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ArtifactLocation
Represents information about the location of an artifact.
Contents
s3Location
Required: No
type
Type: String
Valid Values: S3
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ArtifactRevision
Represents revision details of an artifact.
Contents
created
The date and time when the most recent revision of the artifact was created, in timestamp
format.
Type: Timestamp
Required: No
name
The name of an artifact. This name might be system-generated, such as "MyApp", or defined by
the user when an action is created.
Type: String
Pattern: [a-zA-Z0-9_\-]+
Required: No
revisionChangeIdentifier
An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon
S3 buckets, the ETag value.
Type: String
Required: No
revisionId
Type: String
Required: No
revisionSummary
Summary information about the most recent revision of the artifact. For GitHub and
CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-
provided content of a codepipeline-artifact-revision-summary key specified in the
object metadata.
Type: String
Required: No
revisionUrl
The commit ID for the artifact revision. For artifacts stored in GitHub or CodeCommit
repositories, the commit ID is linked to a commit details page.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ArtifactStore
The S3 bucket where artifacts for the pipeline are stored.
Note
You must include either artifactStore or artifactStores in your pipeline, but
you cannot use both. If you create a cross-region action in your pipeline, you must use
artifactStores.
Contents
location
The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3
bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you
based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the
pipeline to store your pipeline artifacts.
Type: String
Pattern: [a-zA-Z0-9\-\.]+
Required: Yes
type
Type: String
Valid Values: S3
Required: Yes
encryptionKey
The encryption key used to encrypt the data in the artifact store, such as an AWS Key
Management Service key. If this is undefined, the default key for Amazon S3 is used.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AWSSessionCredentials
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 CodePipeline.
Contents
accessKeyId
Type: String
Required: Yes
secretAccessKey
Type: String
Required: Yes
sessionToken
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BlockerDeclaration
Reserved for future use.
Contents
name
Type: String
Required: Yes
type
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CurrentRevision
Represents information about a current revision.
Contents
changeIdentifier
Type: String
Required: Yes
revision
Type: String
Required: Yes
created
The date and time when the most recent revision of the artifact was created, in timestamp
format.
Type: Timestamp
Required: No
revisionSummary
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EncryptionKey
Represents information about the key used to encrypt data in the artifact store, such as an AWS
Key Management Service (AWS Key Management Service) key.
Contents
id
The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the
alias ARN.
Note
Aliases are recognized only in the account that created the AWS KMS key. For cross-
account actions, you can only use the key ID or key ARN to identify the key. Cross-
account actions involve using the role from the other account (AccountB), so specifying
the key ID will use the key from the other account (AccountB).
Type: String
Required: Yes
type
The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the
value must be set to 'KMS'.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ErrorDetails
Represents information about an error in CodePipeline.
Contents
code
Type: String
Required: No
message
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExecutionDetails
The details of the actions taken and results produced on an artifact as it passes through stages in
the pipeline.
Contents
externalExecutionId
The system-generated unique ID of this action used to identify this job worker in any external
systems, such as CodeDeploy.
Type: String
Required: No
percentComplete
The percentage of work completed on the action, represented on a scale of 0 to 100 percent.
Type: Integer
Required: No
summary
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExecutionTrigger
The interaction or event that started a pipeline execution.
Contents
triggerDetail
Detail related to the event that started a pipeline execution, such as the webhook ARN of the
webhook that triggered the pipeline execution or the user ARN for a user-initiated start-
pipeline-execution CLI command.
Type: String
Required: No
triggerType
The type of change-detection method, command, or user interaction that started a pipeline
execution.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ExecutorConfiguration
The action engine, or executor, related to the supported integration model used to create and
update the action type. The available executor types are Lambda and JobWorker.
Contents
jobWorkerExecutorConfiguration
Required: No
lambdaExecutorConfiguration
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
FailureDetails
Represents information about failure details.
Contents
message
Type: String
Required: Yes
type
Type: String
Required: Yes
externalExecutionId
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GitConfiguration
A type of trigger configuration for Git-based source actions.
Note
You can specify the Git configuration trigger type for all third-party Git-based source
actions that are supported by the CodeStarSourceConnection action type.
Contents
sourceActionName
The name of the pipeline source action where the trigger configuration, such as Git tags, is
specified. The trigger configuration will start the pipeline upon the specified change only.
Note
You can only specify one trigger configuration per source action.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
push
The field where the repository event that will start the pipeline, such as pushing Git tags, is
specified with details.
Note
Git tags is the only supported event type.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GitPushFilter
The event criteria that specify when a specified repository event will start the pipeline for the
specified trigger configuration, such as the lists of Git tags to include and exclude.
Contents
tags
The field that contains the details for the Git tags trigger configuration.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
GitTagFilterCriteria
The Git tags specified as filter criteria for whether a Git tag repository event will start the pipeline.
Contents
excludes
The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
Required: No
includes
The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the
pipeline.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
InputArtifact
Represents information about an artifact to be worked on, such as a test or build artifact.
Contents
name
Artifacts are the files that are worked on by actions in the pipeline. See the action configuration
for each action for details about artifact parameters. For example, the S3 source action input
artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example
artifact name: SampleApp_Windows.zip
The input artifact of an action must exactly match the output artifact declared in a preceding
action, but the input artifact does not have to be the next action in strict sequence from
the action that provided the output artifact. Actions in parallel can declare different output
artifacts, which are in turn consumed by different following actions.
Type: String
Pattern: [a-zA-Z0-9_\-]+
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Job
Represents information about a job.
Contents
accountId
Type: String
Pattern: [0-9]{12}
Required: No
data
Required: No
id
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Required: No
nonce
A system-generated random number that CodePipeline uses to ensure that the job is being
worked on by only one job worker. Use this number in an AcknowledgeJob request.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
JobData
Represents other information about a job required for a job worker to complete the job.
Contents
actionConfiguration
Required: No
actionTypeId
Required: No
artifactCredentials
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 artifacts for the pipeline in CodePipeline.
Required: No
continuationToken
A system-generated token, such as a deployment ID, required by a job to continue the job
asynchronously.
Type: String
Required: No
encryptionKey
Represents information about the key used to encrypt data in the artifact store, such as an AWS
KMS key.
Required: No
inputArtifacts
Required: No
outputArtifacts
Required: No
pipelineContext
Note
Includes pipelineArn and pipelineExecutionId for custom jobs.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
JobDetails
Represents information about the details of a job.
Contents
accountId
Type: String
Pattern: [0-9]{12}
Required: No
data
Represents other information about a job required for a job worker to complete the job.
Required: No
id
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
JobWorkerExecutorConfiguration
Details about the polling configuration for the JobWorker action engine, or executor.
Contents
pollingAccounts
The accounts in which the job worker is configured and might poll for jobs as part of the action
execution.
Pattern: [0-9]{12}
Required: No
pollingServicePrincipals
The service Principals in which the job worker is configured and might poll for jobs as part of
the action execution.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
LambdaExecutorConfiguration
Details about the configuration for the Lambda action engine, or executor.
Contents
lambdaFunctionArn
Type: String
Pattern: arn:aws(-[\w]+)*:lambda:.+:[0-9]{12}:function:.+
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListWebhookItem
The detail returned for each webhook after listing webhooks, such as the webhook URL, the
webhook name, and the webhook ARN.
Contents
definition
The detail returned for each webhook, such as the webhook authentication type and filter rules.
Required: Yes
url
A unique URL generated by CodePipeline. When a POST request is made to this URL, the
defined pipeline is started as long as the body of the post request satisfies the defined
authentication and filtering conditions. Deleting and re-creating a webhook makes the old URL
invalid and generates a new one.
Type: String
Required: Yes
arn
Type: String
Required: No
errorCode
Type: String
Required: No
errorMessage
Type: String
Required: No
lastTriggered
The date and time a webhook was last successfully triggered, in timestamp format.
Type: Timestamp
Required: No
tags
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
OutputArtifact
Represents information about the output of an action.
Contents
name
The input artifact of an action must exactly match the output artifact declared in a preceding
action, but the input artifact does not have to be the next action in strict sequence from
the action that provided the output artifact. Actions in parallel can declare different output
artifacts, which are in turn consumed by different following actions.
Type: String
Pattern: [a-zA-Z0-9_\-]+
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PipelineContext
Represents information about a pipeline to a job worker.
Note
PipelineContext contains pipelineArn and pipelineExecutionId for custom action
jobs. The pipelineArn and pipelineExecutionId fields are not populated for
ThirdParty action jobs.
Contents
action
Required: No
pipelineArn
Type: String
Pattern: arn:aws(-[\w]+)*:codepipeline:.+:[0-9]{12}:.+
Required: No
pipelineExecutionId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Required: No
pipelineName
The name of the pipeline. This is a user-specified value. Pipeline names must be unique across
all pipeline names under an AWS account.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
stage
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PipelineDeclaration
Represents the structure of actions and stages to be performed in the pipeline.
Contents
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
roleArn
The Amazon Resource Name (ARN) for CodePipeline to use to either perform actions with no
actionRoleArn, or to use to assume roles for actions with an actionRoleArn.
Type: String
Pattern: arn:aws(-[\w]+)*:iam::[0-9]{12}:role/.*
Required: Yes
stages
Required: Yes
artifactStore
Represents information about the S3 bucket where artifacts are stored for the pipeline.
Note
You must include either artifactStore or artifactStores in your pipeline, but
you cannot use both. If you create a cross-region action in your pipeline, you must use
artifactStores.
Required: No
artifactStores
A mapping of artifactStore objects and their corresponding AWS Regions. There must be an
artifact store for the pipeline Region and for each cross-region action in the pipeline.
Note
You must include either artifactStore or artifactStores in your pipeline, but
you cannot use both. If you create a cross-region action in your pipeline, you must use
artifactStores.
Required: No
pipelineType
CodePipeline provides the following pipeline types, which differ in characteristics and price, so
that you can tailor your pipeline features and cost to the needs of your applications.
• V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-
level parameters.
• V2 type pipelines have the same structure as a V1 type, along with additional parameters for
release safety and trigger configuration.
Important
Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when
creating or updating a pipeline will result in the pipeline having the V2 type of pipeline
and the associated costs.
For information about which type of pipeline to choose, see What type of pipeline is right for
me?.
Type: String
Valid Values: V1 | V2
Required: No
triggers
The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.
Note
When a trigger configuration is specified, default change detection for repository and
branch commits is disabled.
Required: No
variables
A list that defines the pipeline variables for a pipeline resource. Variable names can have
alphanumeric and underscore characters, and the values must match [A-Za-z0-9@\-_]+.
Required: No
version
The version number of the pipeline. A new pipeline always has a version number of 1. This
number is incremented when a pipeline is updated.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PipelineExecution
Represents information about an execution of a pipeline.
Contents
artifactRevisions
Required: No
pipelineExecutionId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Required: No
pipelineName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
pipelineVersion
The version number of the pipeline with the specified pipeline execution.
Type: Integer
Required: No
status
Type: String
Required: No
statusSummary
Type: String
Required: No
trigger
Required: No
variables
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PipelineExecutionSummary
Summary information about a pipeline execution.
Contents
lastUpdateTime
The date and time of the last change to the pipeline execution, in timestamp format.
Type: Timestamp
Required: No
pipelineExecutionId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Required: No
sourceRevisions
Required: No
startTime
The date and time when the pipeline execution began, in timestamp format.
Type: Timestamp
Required: No
status
• Stopped: The pipeline execution was manually stopped. For more information, see Stopped
Executions.
• Stopping: The pipeline execution received a request to be manually stopped. Depending
on the selected stop mode, the execution is either completing or abandoning in-progress
actions. For more information, see Stopped Executions.
• Succeeded: The pipeline execution was completed successfully.
• Superseded: While this pipeline execution was waiting for the next stage to be completed,
a newer pipeline execution advanced and continued through the pipeline instead. For more
information, see Superseded Executions.
• Failed: The pipeline execution was not completed successfully.
Type: String
Required: No
stopTrigger
Required: No
trigger
The interaction or event that started a pipeline execution, such as automated change detection
or a StartPipelineExecution API call.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PipelineMetadata
Information about a pipeline.
Contents
created
The date and time the pipeline was created, in timestamp format.
Type: Timestamp
Required: No
pipelineArn
Type: String
Pattern: arn:aws(-[\w]+)*:codepipeline:.+:[0-9]{12}:.+
Required: No
pollingDisabledAt
The date and time that polling for source changes (periodic checks) was stopped for the
pipeline, in timestamp format. You can migrate (update) a polling pipeline to use event-based
change detection. For example, for a pipeline with a CodeCommit source, we recommend you
migrate (update) your pipeline to use CloudWatch Events. To learn more, see Migrate polling
pipelines to use event-based change detection in the AWS CodePipeline User Guide.
Type: Timestamp
Required: No
updated
The date and time the pipeline was last updated, in timestamp format.
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PipelineSummary
Returns a summary of a pipeline.
Contents
created
The date and time the pipeline was created, in timestamp format.
Type: Timestamp
Required: No
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
pipelineType
CodePipeline provides the following pipeline types, which differ in characteristics and price, so
that you can tailor your pipeline features and cost to the needs of your applications.
• V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-
level parameters.
• V2 type pipelines have the same structure as a V1 type, along with additional parameters for
release safety and trigger configuration.
Important
Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when
creating or updating a pipeline will result in the pipeline having the V2 type of pipeline
and the associated costs.
For information about which type of pipeline to choose, see What type of pipeline is right for
me?.
Type: String
Valid Values: V1 | V2
Required: No
updated
The date and time of the last update to the pipeline, in timestamp format.
Type: Timestamp
Required: No
version
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PipelineTriggerDeclaration
Represents information about the specified trigger configuration, such as the filter criteria and the
source stage for the action that contains the trigger.
Note
This is only supported for the CodeStarSourceConnection action type.
Note
When a trigger configuration is specified, default change detection for repository and
branch commits is disabled.
Contents
gitConfiguration
Provides the filter criteria and the source stage for the repository event that starts the pipeline,
such as Git tags.
Required: Yes
providerType
The source provider for the event, such as connections configured for a repository with Git tags,
for the specified trigger configuration.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PipelineVariable
A pipeline-level variable used for a pipeline execution.
Contents
name
Type: String
Pattern: [A-Za-z0-9@\-_]+
Required: Yes
value
Type: String
Pattern: .*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PipelineVariableDeclaration
A variable declared at the pipeline level.
Contents
name
Type: String
Pattern: [A-Za-z0-9@\-_]+
Required: Yes
defaultValue
Type: String
Pattern: .*
Required: No
description
The description of a pipeline-level variable. It's used to add additional context about the
variable, and not being used at time when pipeline executes.
Type: String
Pattern: .*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ResolvedPipelineVariable
A pipeline-level variable used for a pipeline execution.
Contents
name
Type: String
Required: No
resolvedValue
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
S3ArtifactLocation
The location of the S3 bucket that contains a revision.
Contents
bucketName
Type: String
Required: Yes
objectKey
The key of the object in the S3 bucket, which uniquely identifies the object in the bucket.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
S3Location
The Amazon S3 artifact location for an action's artifacts.
Contents
bucket
Type: String
Required: No
key
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SourceRevision
Information about the version (or revision) of a source artifact that initiated a pipeline execution.
Contents
actionName
The name of the action that processed the revision to the source artifact.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
revisionId
The system-generated unique ID that identifies the revision number of the artifact.
Type: String
Required: No
revisionSummary
Summary information about the most recent revision of the artifact. For GitHub and
CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-
provided content of a codepipeline-artifact-revision-summary key specified in the
object metadata.
Type: String
Required: No
revisionUrl
The commit ID for the artifact revision. For artifacts stored in GitHub or CodeCommit
repositories, the commit ID is linked to a commit details page.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SourceRevisionOverride
A list that allows you to specify, or override, the source revision for a pipeline execution that's being
started. A source revision is the version with all the changes to your application code, or source
artifact, for the pipeline execution.
Contents
actionName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
revisionType
The type of source revision, based on the source provider. For example, the revision type for the
CodeCommit action provider is the commit ID.
Type: String
Required: Yes
revisionValue
The source revision, or version of your source artifact, with the changes that you want to run in
the pipeline execution.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StageContext
Represents information about a stage to a job worker.
Contents
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StageDeclaration
Represents information about a stage and its definition.
Contents
actions
Required: Yes
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
blockers
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StageExecution
Represents information about the run of a stage.
Contents
pipelineExecutionId
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
status
The status of the stage, or for a completed stage, the last status of the stage.
Note
A status of cancelled means that the pipeline’s definition was updated before the stage
execution could be completed.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StageState
Represents information about the state of the stage.
Contents
actionStates
Required: No
inboundExecution
Required: No
inboundTransitionState
Required: No
latestExecution
Information about the latest execution in the stage, including its ID and status.
Required: No
stageName
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StopExecutionTrigger
The interaction that stopped a pipeline execution.
Contents
reason
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Tag
A tag is a key-value pair that is used to manage the resource.
Contents
key
Type: String
Required: Yes
value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ThirdPartyJob
A response to a PollForThirdPartyJobs request returned by CodePipeline when there is a job
to be worked on by a partner action.
Contents
clientId
The clientToken portion of the clientId and clientToken pair used to verify that the
calling entity is allowed access to the job and its details.
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Required: No
jobId
Type: String
Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ThirdPartyJobData
Represents information about the job data for a partner action.
Contents
actionConfiguration
Required: No
actionTypeId
Required: No
artifactCredentials
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 CodePipeline.
Required: No
continuationToken
A system-generated token, such as a CodeDeploy deployment ID, that a job requires to continue
the job asynchronously.
Type: String
Required: No
encryptionKey
The encryption key used to encrypt and decrypt data in the artifact store for the pipeline, such
as an AWS Key Management Service (AWS KMS) key. This is optional and might not be present.
Required: No
inputArtifacts
The name of the artifact that is worked on by the action, if any. This name might be system-
generated, such as "MyApp", or it might be defined by the user when the action is created. The
input artifact name must match the name of an output artifact generated by an action in an
earlier action or stage of the pipeline.
Required: No
outputArtifacts
The name of the artifact that is the result of the action, if any. This name might be system-
generated, such as "MyBuiltApp", or it might be defined by the user when the action is created.
Required: No
pipelineContext
Note
Does not include pipelineArn and pipelineExecutionId for ThirdParty jobs.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ThirdPartyJobDetails
The details of a job sent in response to a GetThirdPartyJobDetails request.
Contents
data
Required: No
id
Type: String
Required: No
nonce
A system-generated random number that CodePipeline uses to ensure that the job is being
worked on by only one job worker. Use this number in an AcknowledgeThirdPartyJob request.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TransitionState
Represents information about the state of transitions between one stage and another stage.
Contents
disabledReason
The user-specified reason why the transition between two stages of a pipeline was disabled.
Type: String
Required: No
enabled
Type: Boolean
Required: No
lastChangedAt
Type: Timestamp
Required: No
lastChangedBy
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
WebhookAuthConfiguration
The authentication applied to incoming webhook trigger requests.
Contents
AllowedIPRange
The property used to configure acceptance of webhooks in an IP address range. For IP, only the
AllowedIPRange property must be set. This property must be set to a valid CIDR range.
Type: String
Required: No
SecretToken
The property used to configure GitHub authentication. For GITHUB_HMAC, only the
SecretToken property must be set.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
WebhookDefinition
Represents information about a webhook and its definition.
Contents
authentication
Type: String
Required: Yes
authenticationConfiguration
Properties that configure the authentication applied to incoming webhook trigger requests.
The required properties depend on the authentication type. For GITHUB_HMAC, only the
SecretToken property must be set. For IP, only the AllowedIPRange property must be set
to a valid CIDR range. For UNAUTHENTICATED, no properties can be set.
Required: Yes
filters
A list of rules applied to the body/payload sent in the POST request to a webhook URL. All
defined rules must pass for the request to be accepted and the pipeline started.
Required: Yes
name
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
targetAction
The name of the action in a pipeline you want to connect to the webhook. The action must be
from the source (first) stage of the pipeline.
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
targetPipeline
Type: String
Pattern: [A-Za-z0-9.@\-_]+
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
WebhookFilterRule
The event criteria that specify when a webhook notification is sent to your URL.
Contents
jsonPath
A JsonPath expression that is applied to the body/payload of the webhook. The value selected
by the JsonPath expression must match the value specified in the MatchEquals field.
Otherwise, the request is ignored. For more information, see Java JsonPath implementation in
GitHub.
Type: String
Required: Yes
matchEquals
The value selected by the JsonPath expression must match what is supplied in the
MatchEquals field. Otherwise, the request is ignored. Properties from the target action
configuration can be included as placeholders in this value by surrounding the action
configuration key with curly brackets. For example, if the value supplied here is "refs/heads/
{Branch}" and the target action has an action configuration property called "Branch" with a
value of "main", the MatchEquals value is evaluated as "refs/heads/main". For a list of action
configuration properties for built-in action types, see Pipeline Structure Reference Action
Requirements.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Common Parameters
The following list contains the parameters that all actions use for signing Signature Version 4
requests with a query string. Any action-specific parameters are listed in the topic for that action.
For more information about Signature Version 4, see Signing AWS API requests in the IAM User
Guide.
Action
Type: string
Required: Yes
Version
The API version that the request is written for, expressed in the format YYYY-MM-DD.
Type: string
Required: Yes
X-Amz-Algorithm
The hash algorithm that you used to create the request signature.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Credential
The credential scope value, which is a string that includes your access key, the date, the region
you are targeting, the service you are requesting, and a termination string ("aws4_request").
The value is expressed in the following format: access_key/YYYYMMDD/region/service/
aws4_request.
For more information, see Create a signed AWS API request in the IAM User Guide.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Date
The date that is used to create the signature. The format must be ISO 8601 basic format
(YYYYMMDD'T'HHMMSS'Z'). For example, the following date time is a valid X-Amz-Date value:
20120325T120000Z.
Condition: X-Amz-Date is optional for all requests; it can be used to override the date used for
signing requests. If the Date header is specified in the ISO 8601 basic format, X-Amz-Date is not
required. When X-Amz-Date is used, it always overrides the value of the Date header. For more
information, see Elements of an AWS API request signature in the IAM User Guide.
Type: string
Required: Conditional
X-Amz-Security-Token
The temporary security token that was obtained through a call to AWS Security Token Service
(AWS STS). For a list of services that support temporary security credentials from AWS STS, see
AWS services that work with IAM in the IAM User Guide.
Condition: If you're using temporary security credentials from AWS STS, you must include the
security token.
Type: string
Required: Conditional
X-Amz-Signature
Specifies the hex-encoded signature that was calculated from the string to sign and the derived
signing key.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-SignedHeaders
Specifies all the HTTP headers that were included as part of the canonical request. For more
information about specifying signed headers, see Create a signed AWS API request in the IAM
User Guide.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
Common Errors
This section lists the errors common to the API actions of all AWS services. For errors specific to an
API action for this service, see the topic for that API action.
AccessDeniedException
The request processing has failed because of an unknown error, exception or failure.
The action or operation requested is invalid. Verify that the action is typed correctly.
The X.509 certificate or AWS access key ID provided does not exist in our records.
RequestExpired
The request reached the service more than 15 minutes after the date stamp on the request or
more than 15 minutes after the request expiration date (such as for pre-signed URLs), or the
date stamp on the request is more than 15 minutes in the future.