Class: AWS.CodePipeline
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.CodePipeline
- Identifier:
- codepipeline
- API Version:
- 2015-07-09
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Overview
This is the 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 CodePipeline User Guide.
You can use the CodePipeline API to work with pipelines, stages, actions, and transitions.
Pipelines are models of automated release processes. Each pipeline is uniquely named, and consists of stages, actions, and transitions.
You can work with pipelines by calling:
-
CreatePipeline, which creates a uniquely named pipeline.
-
DeletePipeline, which deletes the specified pipeline.
-
GetPipeline, which returns information about the pipeline structure and pipeline metadata, including the pipeline Amazon Resource Name (ARN).
-
GetPipelineExecution, which returns information about a specific execution of a pipeline.
-
GetPipelineState, which returns information about the current state of the stages and actions of a pipeline.
-
ListActionExecutions, which returns action-level details for past executions. The details include full stage and action-level details, including individual action duration, status, any errors that occurred during the execution, and input and output artifact location details.
-
ListPipelines, which gets a summary of all of the pipelines associated with your account.
-
ListPipelineExecutions, which gets a summary of the most recent executions for a pipeline.
-
StartPipelineExecution, which runs the most recent revision of an artifact through the pipeline.
-
StopPipelineExecution, which stops the specified pipeline execution from continuing through the pipeline.
-
UpdatePipeline, which updates a pipeline with edits or changes to the structure of the pipeline.
Pipelines include stages. Each stage contains one or more actions that must complete before the next stage begins. A stage results in success or failure. If a stage fails, the pipeline stops at that stage and remains stopped until either a new version of an artifact appears in the source location, or a user takes action to rerun the most recent artifact through the pipeline. You can call GetPipelineState, which displays the status of a pipeline, including the status of stages in the pipeline, or GetPipeline, which returns the entire structure of the pipeline, including the stages of that pipeline. For more information about the structure of stages and actions, see CodePipeline Pipeline Structure Reference.
Pipeline stages include actions that are categorized into categories such as source or build actions performed in a stage of a pipeline. For example, you can use a source action to import artifacts into a pipeline from a source such as Amazon S3. Like stages, you do not work with actions directly in most cases, but you do define and interact with actions when working with pipeline operations such as CreatePipeline and GetPipelineState. Valid action categories are:
-
Source
-
Build
-
Test
-
Deploy
-
Approval
-
Invoke
Pipelines also include transitions, which allow the transition of artifacts from one stage to the next in a pipeline after the actions in one stage complete.
You can work with transitions by calling:
-
DisableStageTransition, which prevents artifacts from transitioning to the next stage in a pipeline.
-
EnableStageTransition, which enables transition of artifacts between stages in a pipeline.
Using the API to integrate with CodePipeline
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.
You can work with jobs by calling:
-
AcknowledgeJob, which confirms whether a job worker has received the specified job.
-
GetJobDetails, which returns the details of a job.
-
PollForJobs, which determines whether there are any jobs to act on.
-
PutJobFailureResult, which provides details of a job failure.
-
PutJobSuccessResult, which provides details of a job success.
Third party jobs, which are instances of an action created by a partner action and integrated into CodePipeline. Partner actions are created by members of the Amazon Web Services Partner Network.
You can work with third party jobs by calling:
-
AcknowledgeThirdPartyJob, which confirms whether a job worker has received the specified job.
-
GetThirdPartyJobDetails, which requests the details of a job for a partner action.
-
PollForThirdPartyJobs, which determines whether there are any jobs to act on.
-
PutThirdPartyJobFailureResult, which provides details of a job failure.
-
PutThirdPartyJobSuccessResult, which provides details of a job success.
Sending a Request Using CodePipeline
var codepipeline = new AWS.CodePipeline();
codepipeline.acknowledgeJob(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the CodePipeline object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var codepipeline = new AWS.CodePipeline({apiVersion: '2015-07-09'});
You can also set the API version globally in AWS.config.apiVersions using
the codepipeline service identifier:
AWS.config.apiVersions = {
codepipeline: '2015-07-09',
// other service API versions
};
var codepipeline = new AWS.CodePipeline();
Version:
-
2015-07-09
Constructor Summary collapse
-
new AWS.CodePipeline(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
acknowledgeJob(params = {}, callback) ⇒ AWS.Request
Returns information about a specified job and whether that job has been received by the job worker.
-
acknowledgeThirdPartyJob(params = {}, callback) ⇒ AWS.Request
Confirms a job worker has received the specified job.
-
createCustomActionType(params = {}, callback) ⇒ AWS.Request
Creates a new custom action that can be used in all pipelines associated with the Amazon Web Services account.
-
createPipeline(params = {}, callback) ⇒ AWS.Request
Creates a pipeline.
Note: In the pipeline structure, you must include eitherartifactStoreorartifactStoresin your pipeline, but you cannot use both.- deleteCustomActionType(params = {}, callback) ⇒ AWS.Request
Marks a custom action as deleted.
- deletePipeline(params = {}, callback) ⇒ AWS.Request
Deletes the specified pipeline.
.
- deleteWebhook(params = {}, callback) ⇒ AWS.Request
Deletes a previously created webhook by name.
- deregisterWebhookWithThirdParty(params = {}, callback) ⇒ AWS.Request
Removes the connection between the webhook that was created by CodePipeline and the external tool with events to be detected.
- disableStageTransition(params = {}, callback) ⇒ AWS.Request
Prevents artifacts in a pipeline from transitioning to the next stage in the pipeline.
.
- enableStageTransition(params = {}, callback) ⇒ AWS.Request
Enables artifacts in a pipeline to transition to a stage in a pipeline.
.
- getActionType(params = {}, callback) ⇒ AWS.Request
Returns information about an action type created for an external provider, where the action is to be used by customers of the external provider.
- getJobDetails(params = {}, callback) ⇒ AWS.Request
Returns information about a job.
- getPipeline(params = {}, callback) ⇒ AWS.Request
Returns the metadata, structure, stages, and actions of a pipeline.
- getPipelineExecution(params = {}, callback) ⇒ AWS.Request
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.
.
- getPipelineState(params = {}, callback) ⇒ AWS.Request
Returns information about the state of a pipeline, including the stages and actions.
Note: Values returned in therevisionIdandrevisionUrlfields indicate the source revision information, such as the commit ID, for the current state.- getThirdPartyJobDetails(params = {}, callback) ⇒ AWS.Request
Requests the details of a job for a third party action.
- listActionExecutions(params = {}, callback) ⇒ AWS.Request
Lists the action executions that have occurred in a pipeline.
.
- listActionTypes(params = {}, callback) ⇒ AWS.Request
Gets a summary of all CodePipeline action types associated with your account.
.
- listPipelineExecutions(params = {}, callback) ⇒ AWS.Request
Gets a summary of the most recent executions for a pipeline.
Note: When applying the filter for pipeline executions that have succeeded in the stage, the operation returns all executions in the current pipeline version beginning on February 1, 2024.- listPipelines(params = {}, callback) ⇒ AWS.Request
Gets a summary of all of the pipelines associated with your account.
.
- listRuleExecutions(params = {}, callback) ⇒ AWS.Request
Lists the rule executions that have occurred in a pipeline configured for conditions with rules.
.
- listRuleTypes(params = {}, callback) ⇒ AWS.Request
Lists the rules for the condition.
.
- listTagsForResource(params = {}, callback) ⇒ AWS.Request
Gets the set of key-value pairs (metadata) that are used to manage the resource.
.
- listWebhooks(params = {}, callback) ⇒ AWS.Request
Gets a listing of all the webhooks in this Amazon Web Services Region for this account.
- overrideStageCondition(params = {}, callback) ⇒ AWS.Request
Used to override a stage condition.
.
- pollForJobs(params = {}, callback) ⇒ AWS.Request
Returns information about any jobs for CodePipeline to act on.
- pollForThirdPartyJobs(params = {}, callback) ⇒ AWS.Request
Determines whether there are any third party jobs for a job worker to act on.
- putActionRevision(params = {}, callback) ⇒ AWS.Request
Provides information to CodePipeline about new revisions to a source.
.
- putApprovalResult(params = {}, callback) ⇒ AWS.Request
Provides the response to a manual approval request to CodePipeline.
- putJobFailureResult(params = {}, callback) ⇒ AWS.Request
Represents the failure of a job as returned to the pipeline by a job worker.
- putJobSuccessResult(params = {}, callback) ⇒ AWS.Request
Represents the success of a job as returned to the pipeline by a job worker.
- putThirdPartyJobFailureResult(params = {}, callback) ⇒ AWS.Request
Represents the failure of a third party job as returned to the pipeline by a job worker.
- putThirdPartyJobSuccessResult(params = {}, callback) ⇒ AWS.Request
Represents the success of a third party job as returned to the pipeline by a job worker.
- putWebhook(params = {}, callback) ⇒ AWS.Request
Defines a webhook and returns a unique webhook URL generated by CodePipeline.
- registerWebhookWithThirdParty(params = {}, callback) ⇒ AWS.Request
Configures a connection between the webhook that was created and the external tool with events to be detected.
.
- retryStageExecution(params = {}, callback) ⇒ AWS.Request
You can retry a stage that has failed without having to run a pipeline again from the beginning.
- rollbackStage(params = {}, callback) ⇒ AWS.Request
Rolls back a stage execution.
.
- startPipelineExecution(params = {}, callback) ⇒ AWS.Request
Starts the specified pipeline.
- stopPipelineExecution(params = {}, callback) ⇒ AWS.Request
Stops the specified pipeline execution.
- tagResource(params = {}, callback) ⇒ AWS.Request
Adds to or modifies the tags of the given resource.
- untagResource(params = {}, callback) ⇒ AWS.Request
Removes tags from an Amazon Web Services resource.
.
- updateActionType(params = {}, callback) ⇒ AWS.Request
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.
- updatePipeline(params = {}, callback) ⇒ AWS.Request
Updates a specified pipeline with edits or changes to its structure.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.CodePipeline(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a CodePipeline object
var codepipeline = new AWS.CodePipeline({apiVersion: '2015-07-09'});Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentialsproperty is set. -
region
(String)
—
the region to send service requests to. See AWS.CodePipeline.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.CodePipeline.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.CodePipeline.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpointto be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4. Body signing can only be disabled when using https. Defaults totrue. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy -
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true -
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
baseoption will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeoutmilliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.configobject and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false.
Property Details
Method Details
acknowledgeJob(params = {}, callback) ⇒ AWS.Request
Returns information about a specified job and whether that job has been received by the job worker. Used for custom actions only.
Service Reference:
Examples:
Calling the acknowledgeJob operation
var params = { jobId: 'STRING_VALUE', /* required */ nonce: 'STRING_VALUE' /* required */ }; codepipeline.acknowledgeJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
jobId— (String)The unique system-generated ID of the job for which you want to confirm receipt.
nonce— (String)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:status— (String)Whether the job worker has received the specified job.
Possible values include:"Created""Queued""Dispatched""InProgress""TimedOut""Succeeded""Failed"
-
(AWS.Response)
—
Returns:
acknowledgeThirdPartyJob(params = {}, callback) ⇒ AWS.Request
Confirms a job worker has received the specified job. Used for partner actions only.
Service Reference:
Examples:
Calling the acknowledgeThirdPartyJob operation
var params = { clientToken: 'STRING_VALUE', /* required */ jobId: 'STRING_VALUE', /* required */ nonce: 'STRING_VALUE' /* required */ }; codepipeline.acknowledgeThirdPartyJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
jobId— (String)The unique system-generated ID of the job.
nonce— (String)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.
clientToken— (String)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:status— (String)The status information for the third party job, if any.
Possible values include:"Created""Queued""Dispatched""InProgress""TimedOut""Succeeded""Failed"
-
(AWS.Response)
—
Returns:
createCustomActionType(params = {}, callback) ⇒ AWS.Request
Creates a new custom action that can be used in all pipelines associated with the Amazon Web Services account. Only used for custom actions.
Service Reference:
Examples:
Calling the createCustomActionType operation
var params = { category: Source | Build | Deploy | Test | Invoke | Approval, /* required */ inputArtifactDetails: { /* required */ maximumCount: 'NUMBER_VALUE', /* required */ minimumCount: 'NUMBER_VALUE' /* required */ }, outputArtifactDetails: { /* required */ maximumCount: 'NUMBER_VALUE', /* required */ minimumCount: 'NUMBER_VALUE' /* required */ }, provider: 'STRING_VALUE', /* required */ version: 'STRING_VALUE', /* required */ configurationProperties: [ { key: true || false, /* required */ name: 'STRING_VALUE', /* required */ required: true || false, /* required */ secret: true || false, /* required */ description: 'STRING_VALUE', queryable: true || false, type: String | Number | Boolean }, /* more items */ ], settings: { entityUrlTemplate: 'STRING_VALUE', executionUrlTemplate: 'STRING_VALUE', revisionUrlTemplate: 'STRING_VALUE', thirdPartyConfigurationUrl: 'STRING_VALUE' }, tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; codepipeline.createCustomActionType(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
category— (String)The category of the custom action, such as a build action or a test action.
Possible values include:"Source""Build""Deploy""Test""Invoke""Approval"
provider— (String)The provider of the service used in the custom action, such as CodeDeploy.
version— (String)The version identifier of the custom action.
settings— (map)URLs that provide users information about this custom action.
thirdPartyConfigurationUrl— (String)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.
entityUrlTemplate— (String)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.
executionUrlTemplate— (String)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.
revisionUrlTemplate— (String)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.
configurationProperties— (Array<map>)The configuration properties for the custom action.
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.name— required — (String)The name of the action configuration property.
required— required — (Boolean)Whether the configuration property is a required value.
key— required — (Boolean)Whether the configuration property is a key.
secret— required — (Boolean)Whether the configuration property is secret. Secrets are hidden from all calls except for
GetJobDetails,GetThirdPartyJobDetails,PollForJobs, andPollForThirdPartyJobs.When updating a pipeline, passing * * * * * without changing any other values of the action preserves the previous value of the secret.
queryable— (Boolean)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.
description— (String)The description of the action configuration property that is displayed to users.
type— (String)The type of the configuration property.
Possible values include:"String""Number""Boolean"
inputArtifactDetails— (map)The details of the input artifact for the action, such as its commit ID.
minimumCount— required — (Integer)The minimum number of artifacts allowed for the action type.
maximumCount— required — (Integer)The maximum number of artifacts allowed for the action type.
outputArtifactDetails— (map)The details of the output artifact of the action, such as its commit ID.
minimumCount— required — (Integer)The minimum number of artifacts allowed for the action type.
maximumCount— required — (Integer)The maximum number of artifacts allowed for the action type.
tags— (Array<map>)The tags for the custom action.
key— required — (String)The tag's key.
value— required — (String)The tag's value.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:actionType— (map)Returns information about the details of an action type.
id— required — (map)Represents information about an action type.
category— required — (String)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
"Source""Build""Deploy""Test""Invoke""Approval"
-
owner— required — (String)The creator of the action being called. There are three valid values for the
Possible values include:Ownerfield in the action category section within your pipeline structure:AWS,ThirdParty, andCustom. For more information, see Valid Action Types and Providers in CodePipeline."AWS""ThirdParty""Custom"
provider— required — (String)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.version— required — (String)A string that describes the action version.
settings— (map)The settings for the action type.
thirdPartyConfigurationUrl— (String)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.
entityUrlTemplate— (String)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.
executionUrlTemplate— (String)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.
revisionUrlTemplate— (String)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.
actionConfigurationProperties— (Array<map>)The configuration properties for the action type.
name— required — (String)The name of the action configuration property.
required— required — (Boolean)Whether the configuration property is a required value.
key— required — (Boolean)Whether the configuration property is a key.
secret— required — (Boolean)Whether the configuration property is secret. Secrets are hidden from all calls except for
GetJobDetails,GetThirdPartyJobDetails,PollForJobs, andPollForThirdPartyJobs.When updating a pipeline, passing * * * * * without changing any other values of the action preserves the previous value of the secret.
queryable— (Boolean)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.
description— (String)The description of the action configuration property that is displayed to users.
type— (String)The type of the configuration property.
Possible values include:"String""Number""Boolean"
inputArtifactDetails— required — (map)The details of the input artifact for the action, such as its commit ID.
minimumCount— required — (Integer)The minimum number of artifacts allowed for the action type.
maximumCount— required — (Integer)The maximum number of artifacts allowed for the action type.
outputArtifactDetails— required — (map)The details of the output artifact of the action, such as its commit ID.
minimumCount— required — (Integer)The minimum number of artifacts allowed for the action type.
maximumCount— required — (Integer)The maximum number of artifacts allowed for the action type.
tags— (Array<map>)Specifies the tags applied to the custom action.
key— required — (String)The tag's key.
value— required — (String)The tag's value.
-
(AWS.Response)
—
Returns:
createPipeline(params = {}, callback) ⇒ AWS.Request
Creates a pipeline.
Note: In the pipeline structure, you must include eitherartifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.Service Reference:
Examples:
Calling the createPipeline operation
var params = { pipeline: { /* required */ name: 'STRING_VALUE', /* required */ roleArn: 'STRING_VALUE', /* required */ stages: [ /* required */ { actions: [ /* required */ { actionTypeId: { /* required */ category: Source | Build | Deploy | Test | Invoke | Approval, /* required */ owner: AWS | ThirdParty | Custom, /* required */ provider: 'STRING_VALUE', /* required */ version: 'STRING_VALUE' /* required */ }, name: 'STRING_VALUE', /* required */ configuration: { '<ActionConfigurationKey>': 'STRING_VALUE', /* '<ActionConfigurationKey>': ... */ }, inputArtifacts: [ { name: 'STRING_VALUE' /* required */ }, /* more items */ ], namespace: 'STRING_VALUE', outputArtifacts: [ { name: 'STRING_VALUE' /* required */ }, /* more items */ ], region: 'STRING_VALUE', roleArn: 'STRING_VALUE', runOrder: 'NUMBER_VALUE', timeoutInMinutes: 'NUMBER_VALUE' }, /* more items */ ], name: 'STRING_VALUE', /* required */ beforeEntry: { conditions: [ /* required */ { result: ROLLBACK | FAIL, rules: [ { name: 'STRING_VALUE', /* required */ ruleTypeId: { /* required */ category: Rule, /* required */ provider: 'STRING_VALUE', /* required */ owner: AWS, version: 'STRING_VALUE' }, configuration: { '<RuleConfigurationKey>': 'STRING_VALUE', /* '<RuleConfigurationKey>': ... */ }, inputArtifacts: [ { name: 'STRING_VALUE' /* required */ }, /* more items */ ], region: 'STRING_VALUE', roleArn: 'STRING_VALUE', timeoutInMinutes: 'NUMBER_VALUE' }, /* more items */ ] }, /* more items */ ] }, blockers: [ { name: 'STRING_VALUE', /* required */ type: Schedule /* required */ }, /* more items */ ], onFailure: { conditions: [ { result: ROLLBACK | FAIL, rules: [ { name: 'STRING_VALUE', /* required */ ruleTypeId: { /* required */ category: Rule, /* required */ provider: 'STRING_VALUE', /* required */ owner: AWS, version: 'STRING_VALUE' }, configuration: { '<RuleConfigurationKey>': 'STRING_VALUE', /* '<RuleConfigurationKey>': ... */ }, inputArtifacts: [ { name: 'STRING_VALUE' /* required */ }, /* more items */ ], region: 'STRING_VALUE', roleArn: 'STRING_VALUE', timeoutInMinutes: 'NUMBER_VALUE' }, /* more items */ ] }, /* more items */ ], result: ROLLBACK | FAIL }, onSuccess: { conditions: [ /* required */ { result: ROLLBACK | FAIL, rules: [ { name: 'STRING_VALUE', /* required */ ruleTypeId: { /* required */ category: Rule, /* required */ provider: 'STRING_VALUE', /* required */ owner: AWS, version: 'STRING_VALUE' }, configuration: { '<RuleConfigurationKey>': 'STRING_VALUE', /* '<RuleConfigurationKey>': ... */ }, inputArtifacts: [ { name: 'STRING_VALUE' /* required */ }, /* more items */ ], region: 'STRING_VALUE', roleArn: 'STRING_VALUE', timeoutInMinutes: 'NUMBER_VALUE' }, /* more items */ ] }, /* more items */ ] } }, /* more items */ ], artifactStore: { location: 'STRING_VALUE', /* required */ type: S3, /* required */ encryptionKey: { id: 'STRING_VALUE', /* required */ type: KMS /* required */ } }, artifactStores: { '<AWSRegionName>': { location: 'STRING_VALUE', /* required */ type: S3, /* required */ encryptionKey: { id: 'STRING_VALUE', /* required */ type: KMS /* required */ } }, /* '<AWSRegionName>': ... */ }, executionMode: QUEUED | SUPERSEDED | PARALLEL, pipelineType: V1 | V2, triggers: [ { gitConfiguration: { /* required */ sourceActionName: 'STRING_VALUE', /* required */ pullRequest: [ { branches: { excludes: [ 'STRING_VALUE', /* more items */ ], includes: [ 'STRING_VALUE', /* more items */ ] }, events: [ OPEN | UPDATED | CLOSED, /* more items */ ], filePaths: { excludes: [ 'STRING_VALUE', /* more items */ ], includes: [ 'STRING_VALUE', /* more items */ ] } }, /* more items */ ], push: [ { branches: { excludes: [ 'STRING_VALUE', /* more items */ ], includes: [ 'STRING_VALUE', /* more items */ ] }, filePaths: { excludes: [ 'STRING_VALUE', /* more items */ ], includes: [ 'STRING_VALUE', /* more items */ ] }, tags: { excludes: [ 'STRING_VALUE', /* more items */ ], includes: [ 'STRING_VALUE', /* more items */ ] } }, /* more items */ ] }, providerType: CodeStarSourceConnection /* required */ }, /* more items */ ], variables: [ { name: 'STRING_VALUE', /* required */ defaultValue: 'STRING_VALUE', description: 'STRING_VALUE' }, /* more items */ ], version: 'NUMBER_VALUE' }, tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; codepipeline.createPipeline(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
pipeline— (map)Represents the structure of actions and stages to be performed in the pipeline.
name— required — (String)The name of the pipeline.
roleArn— required — (String)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 anactionRoleArn.artifactStore— (map)Represents information about the S3 bucket where artifacts are stored for the pipeline.
Note: You must include eitherartifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.type— required — (String)The type of the artifact store, such as S3.
Possible values include:"S3"
location— required — (String)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 Amazon Web Services Region as the pipeline to store your pipeline artifacts.
encryptionKey— (map)The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service key. If this is undefined, the default key for Amazon S3 is used.
id— required — (String)The ID used to identify the key. For an Amazon Web Services 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 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— required — (String)The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
Possible values include:"KMS"
artifactStores— (map<map>)A mapping of
artifactStoreobjects and their corresponding Amazon Web Services Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.Note: You must include eitherartifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.type— required — (String)The type of the artifact store, such as S3.
Possible values include:"S3"
location— required — (String)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 Amazon Web Services Region as the pipeline to store your pipeline artifacts.
encryptionKey— (map)The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service key. If this is undefined, the default key for Amazon S3 is used.
id— required — (String)The ID used to identify the key. For an Amazon Web Services 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 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— required — (String)The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
Possible values include:"KMS"
stages— required — (Array<map>)The stage in which to perform the action.
name— required — (String)The name of the stage.
blockers— (Array<map>)Reserved for future use.
name— required — (String)Reserved for future use.
type— required — (String)Reserved for future use.
Possible values include:"Schedule"
actions— required — (Array<map>)The actions included in a stage.
name— required — (String)The action declaration's name.
actionTypeId— required — (map)Specifies the action type and the provider of the action.
category— required — (String)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
"Source""Build""Deploy""Test""Invoke""Approval"
-
owner— required — (String)The creator of the action being called. There are three valid values for the
Possible values include:Ownerfield in the action category section within your pipeline structure:AWS,ThirdParty, andCustom. For more information, see Valid Action Types and Providers in CodePipeline."AWS""ThirdParty""Custom"
provider— required — (String)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.version— required — (String)A string that describes the action version.
runOrder— (Integer)The order in which actions are run.
configuration— (map<String>)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 CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide. For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the 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:
"Configuration" : { Key : Value },outputArtifacts— (Array<map>)The name or ID of the result of the action declaration, such as a test or build artifact.
name— required — (String)The name of the output of an artifact, such as "My App".
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.
Output artifact names must be unique within a pipeline.
inputArtifacts— (Array<map>)The name or ID of the artifact consumed by the action, such as a test or build artifact.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the pipeline.
region— (String)The action declaration's Amazon Web Services Region, such as us-east-1.
namespace— (String)The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.
timeoutInMinutes— (Integer)A timeout duration in minutes that can be applied against the ActionType’s default timeout value specified in Quotas for CodePipeline . This attribute is available only to the manual approval ActionType.
onFailure— (map)The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
result— (String)The specified result for when the failure conditions are met, such as rolling back the stage.
Possible values include:"ROLLBACK""FAIL"
conditions— (Array<map>)The conditions that are configured as failure conditions.
result— (String)The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Possible values include:"ROLLBACK""FAIL"
rules— (Array<map>)The rules that make up the condition.
name— required — (String)The name of the rule that is created for the condition, such as CheckAllResults.
ruleTypeId— required — (map)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
category— required — (String)A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is
Possible values include:Rule."Rule"
owner— (String)The creator of the rule being called. The valid value for the
Possible values include:Ownerfield in the rule category isAWS."AWS"
provider— required — (String)The rule provider, such as the
DeploymentWindowrule.version— (String)A string that describes the rule version.
configuration— (map<String>)The action configuration fields for the rule.
inputArtifacts— (Array<map>)The input artifacts fields for the rule, such as specifying an input file for the rule.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The pipeline role ARN associated with the rule.
region— (String)The Region for the condition associated with the rule.
timeoutInMinutes— (Integer)The action timeout for the rule.
onSuccess— (map)The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
conditions— required — (Array<map>)The conditions that are success conditions.
result— (String)The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Possible values include:"ROLLBACK""FAIL"
rules— (Array<map>)The rules that make up the condition.
name— required — (String)The name of the rule that is created for the condition, such as CheckAllResults.
ruleTypeId— required — (map)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
category— required — (String)A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is
Possible values include:Rule."Rule"
owner— (String)The creator of the rule being called. The valid value for the
Possible values include:Ownerfield in the rule category isAWS."AWS"
provider— required — (String)The rule provider, such as the
DeploymentWindowrule.version— (String)A string that describes the rule version.
configuration— (map<String>)The action configuration fields for the rule.
inputArtifacts— (Array<map>)The input artifacts fields for the rule, such as specifying an input file for the rule.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The pipeline role ARN associated with the rule.
region— (String)The Region for the condition associated with the rule.
timeoutInMinutes— (Integer)The action timeout for the rule.
beforeEntry— (map)The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
conditions— required — (Array<map>)The conditions that are configured as entry conditions.
result— (String)The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Possible values include:"ROLLBACK""FAIL"
rules— (Array<map>)The rules that make up the condition.
name— required — (String)The name of the rule that is created for the condition, such as CheckAllResults.
ruleTypeId— required — (map)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
category— required — (String)A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is
Possible values include:Rule."Rule"
owner— (String)The creator of the rule being called. The valid value for the
Possible values include:Ownerfield in the rule category isAWS."AWS"
provider— required — (String)The rule provider, such as the
DeploymentWindowrule.version— (String)A string that describes the rule version.
configuration— (map<String>)The action configuration fields for the rule.
inputArtifacts— (Array<map>)The input artifacts fields for the rule, such as specifying an input file for the rule.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The pipeline role ARN associated with the rule.
region— (String)The Region for the condition associated with the rule.
timeoutInMinutes— (Integer)The action timeout for the rule.
version— (Integer)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.
executionMode— (String)The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
Possible values include:"QUEUED""SUPERSEDED""PARALLEL"
pipelineType— (String)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.
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 pricing for CodePipeline, see Pricing.
For information about which type of pipeline to choose, see What type of pipeline is right for me?.
Possible values include:"V1""V2"
-
variables— (Array<map>)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@-_]+.name— required — (String)The name of a pipeline-level variable.
defaultValue— (String)The value of a pipeline-level variable.
description— (String)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.
triggers— (Array<map>)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.providerType— required — (String)The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
Possible values include:"CodeStarSourceConnection"
gitConfiguration— required — (map)Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
sourceActionName— required — (String)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.push— (Array<map>)The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
tags— (map)The field that contains the details for the Git tags trigger configuration.
includes— (Array<String>)The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
branches— (map)The field that specifies to filter on branches for the push trigger configuration.
includes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
filePaths— (map)The field that specifies to filter on file paths for the push trigger configuration.
includes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
pullRequest— (Array<map>)The field where the repository event that will start the pipeline is specified as pull requests.
events— (Array<String>)The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
branches— (map)The field that specifies to filter on branches for the pull request trigger configuration.
includes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
filePaths— (map)The field that specifies to filter on file paths for the pull request trigger configuration.
includes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
tags— (Array<map>)The tags for the pipeline.
key— required — (String)The tag's key.
value— required — (String)The tag's value.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:pipeline— (map)Represents the structure of actions and stages to be performed in the pipeline.
name— required — (String)The name of the pipeline.
roleArn— required — (String)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 anactionRoleArn.artifactStore— (map)Represents information about the S3 bucket where artifacts are stored for the pipeline.
Note: You must include eitherartifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.type— required — (String)The type of the artifact store, such as S3.
Possible values include:"S3"
location— required — (String)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 Amazon Web Services Region as the pipeline to store your pipeline artifacts.
encryptionKey— (map)The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service key. If this is undefined, the default key for Amazon S3 is used.
id— required — (String)The ID used to identify the key. For an Amazon Web Services 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 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— required — (String)The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
Possible values include:"KMS"
artifactStores— (map<map>)A mapping of
artifactStoreobjects and their corresponding Amazon Web Services Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.Note: You must include eitherartifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.type— required — (String)The type of the artifact store, such as S3.
Possible values include:"S3"
location— required — (String)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 Amazon Web Services Region as the pipeline to store your pipeline artifacts.
encryptionKey— (map)The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service key. If this is undefined, the default key for Amazon S3 is used.
id— required — (String)The ID used to identify the key. For an Amazon Web Services 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 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— required — (String)The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
Possible values include:"KMS"
stages— required — (Array<map>)The stage in which to perform the action.
name— required — (String)The name of the stage.
blockers— (Array<map>)Reserved for future use.
name— required — (String)Reserved for future use.
type— required — (String)Reserved for future use.
Possible values include:"Schedule"
actions— required — (Array<map>)The actions included in a stage.
name— required — (String)The action declaration's name.
actionTypeId— required — (map)Specifies the action type and the provider of the action.
category— required — (String)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
"Source""Build""Deploy""Test""Invoke""Approval"
-
owner— required — (String)The creator of the action being called. There are three valid values for the
Possible values include:Ownerfield in the action category section within your pipeline structure:AWS,ThirdParty, andCustom. For more information, see Valid Action Types and Providers in CodePipeline."AWS""ThirdParty""Custom"
provider— required — (String)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.version— required — (String)A string that describes the action version.
runOrder— (Integer)The order in which actions are run.
configuration— (map<String>)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 CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide. For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the 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:
"Configuration" : { Key : Value },outputArtifacts— (Array<map>)The name or ID of the result of the action declaration, such as a test or build artifact.
name— required — (String)The name of the output of an artifact, such as "My App".
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.
Output artifact names must be unique within a pipeline.
inputArtifacts— (Array<map>)The name or ID of the artifact consumed by the action, such as a test or build artifact.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the pipeline.
region— (String)The action declaration's Amazon Web Services Region, such as us-east-1.
namespace— (String)The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.
timeoutInMinutes— (Integer)A timeout duration in minutes that can be applied against the ActionType’s default timeout value specified in Quotas for CodePipeline . This attribute is available only to the manual approval ActionType.
onFailure— (map)The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
result— (String)The specified result for when the failure conditions are met, such as rolling back the stage.
Possible values include:"ROLLBACK""FAIL"
conditions— (Array<map>)The conditions that are configured as failure conditions.
result— (String)The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Possible values include:"ROLLBACK""FAIL"
rules— (Array<map>)The rules that make up the condition.
name— required — (String)The name of the rule that is created for the condition, such as CheckAllResults.
ruleTypeId— required — (map)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
category— required — (String)A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is
Possible values include:Rule."Rule"
owner— (String)The creator of the rule being called. The valid value for the
Possible values include:Ownerfield in the rule category isAWS."AWS"
provider— required — (String)The rule provider, such as the
DeploymentWindowrule.version— (String)A string that describes the rule version.
configuration— (map<String>)The action configuration fields for the rule.
inputArtifacts— (Array<map>)The input artifacts fields for the rule, such as specifying an input file for the rule.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The pipeline role ARN associated with the rule.
region— (String)The Region for the condition associated with the rule.
timeoutInMinutes— (Integer)The action timeout for the rule.
onSuccess— (map)The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
conditions— required — (Array<map>)The conditions that are success conditions.
result— (String)The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Possible values include:"ROLLBACK""FAIL"
rules— (Array<map>)The rules that make up the condition.
name— required — (String)The name of the rule that is created for the condition, such as CheckAllResults.
ruleTypeId— required — (map)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
category— required — (String)A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is
Possible values include:Rule."Rule"
owner— (String)The creator of the rule being called. The valid value for the
Possible values include:Ownerfield in the rule category isAWS."AWS"
provider— required — (String)The rule provider, such as the
DeploymentWindowrule.version— (String)A string that describes the rule version.
configuration— (map<String>)The action configuration fields for the rule.
inputArtifacts— (Array<map>)The input artifacts fields for the rule, such as specifying an input file for the rule.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The pipeline role ARN associated with the rule.
region— (String)The Region for the condition associated with the rule.
timeoutInMinutes— (Integer)The action timeout for the rule.
beforeEntry— (map)The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
conditions— required — (Array<map>)The conditions that are configured as entry conditions.
result— (String)The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Possible values include:"ROLLBACK""FAIL"
rules— (Array<map>)The rules that make up the condition.
name— required — (String)The name of the rule that is created for the condition, such as CheckAllResults.
ruleTypeId— required — (map)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
category— required — (String)A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is
Possible values include:Rule."Rule"
owner— (String)The creator of the rule being called. The valid value for the
Possible values include:Ownerfield in the rule category isAWS."AWS"
provider— required — (String)The rule provider, such as the
DeploymentWindowrule.version— (String)A string that describes the rule version.
configuration— (map<String>)The action configuration fields for the rule.
inputArtifacts— (Array<map>)The input artifacts fields for the rule, such as specifying an input file for the rule.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The pipeline role ARN associated with the rule.
region— (String)The Region for the condition associated with the rule.
timeoutInMinutes— (Integer)The action timeout for the rule.
version— (Integer)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.
executionMode— (String)The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
Possible values include:"QUEUED""SUPERSEDED""PARALLEL"
pipelineType— (String)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.
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 pricing for CodePipeline, see Pricing.
For information about which type of pipeline to choose, see What type of pipeline is right for me?.
Possible values include:"V1""V2"
-
variables— (Array<map>)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@-_]+.name— required — (String)The name of a pipeline-level variable.
defaultValue— (String)The value of a pipeline-level variable.
description— (String)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.
triggers— (Array<map>)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.providerType— required — (String)The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
Possible values include:"CodeStarSourceConnection"
gitConfiguration— required — (map)Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
sourceActionName— required — (String)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.push— (Array<map>)The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
tags— (map)The field that contains the details for the Git tags trigger configuration.
includes— (Array<String>)The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
branches— (map)The field that specifies to filter on branches for the push trigger configuration.
includes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
filePaths— (map)The field that specifies to filter on file paths for the push trigger configuration.
includes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
pullRequest— (Array<map>)The field where the repository event that will start the pipeline is specified as pull requests.
events— (Array<String>)The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
branches— (map)The field that specifies to filter on branches for the pull request trigger configuration.
includes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
filePaths— (map)The field that specifies to filter on file paths for the pull request trigger configuration.
includes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
tags— (Array<map>)Specifies the tags applied to the pipeline.
key— required — (String)The tag's key.
value— required — (String)The tag's value.
-
(AWS.Response)
—
Returns:
deleteCustomActionType(params = {}, callback) ⇒ AWS.Request
Marks a custom action as deleted.
PollForJobsfor the custom action fails after the action is marked for deletion. Used for custom actions only.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.
Service Reference:
Examples:
Calling the deleteCustomActionType operation
var params = { category: Source | Build | Deploy | Test | Invoke | Approval, /* required */ provider: 'STRING_VALUE', /* required */ version: 'STRING_VALUE' /* required */ }; codepipeline.deleteCustomActionType(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
category— (String)The category of the custom action that you want to delete, such as source or deploy.
Possible values include:"Source""Build""Deploy""Test""Invoke""Approval"
provider— (String)The provider of the service used in the custom action, such as CodeDeploy.
version— (String)The version of the custom action to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs.
-
(AWS.Response)
—
Returns:
deletePipeline(params = {}, callback) ⇒ AWS.Request
Deletes the specified pipeline.
Service Reference:
Examples:
Calling the deletePipeline operation
var params = { name: 'STRING_VALUE' /* required */ }; codepipeline.deletePipeline(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
name— (String)The name of the pipeline to be deleted.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs.
-
(AWS.Response)
—
Returns:
deleteWebhook(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the deleteWebhook operation
var params = { name: 'STRING_VALUE' /* required */ }; codepipeline.deleteWebhook(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
name— (String)The name of the webhook you want to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs.
-
(AWS.Response)
—
Returns:
deregisterWebhookWithThirdParty(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the deregisterWebhookWithThirdParty operation
var params = { webhookName: 'STRING_VALUE' }; codepipeline.deregisterWebhookWithThirdParty(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
webhookName— (String)The name of the webhook you want to deregister.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs.
-
(AWS.Response)
—
Returns:
disableStageTransition(params = {}, callback) ⇒ AWS.Request
Prevents artifacts in a pipeline from transitioning to the next stage in the pipeline.
Service Reference:
Examples:
Calling the disableStageTransition operation
var params = { pipelineName: 'STRING_VALUE', /* required */ reason: 'STRING_VALUE', /* required */ stageName: 'STRING_VALUE', /* required */ transitionType: Inbound | Outbound /* required */ }; codepipeline.disableStageTransition(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
pipelineName— (String)The name of the pipeline in which you want to disable the flow of artifacts from one stage to another.
stageName— (String)The name of the stage where you want to disable the inbound or outbound transition of artifacts.
transitionType— (String)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).
Possible values include:"Inbound""Outbound"
reason— (String)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs.
-
(AWS.Response)
—
Returns:
enableStageTransition(params = {}, callback) ⇒ AWS.Request
Enables artifacts in a pipeline to transition to a stage in a pipeline.
Service Reference:
Examples:
Calling the enableStageTransition operation
var params = { pipelineName: 'STRING_VALUE', /* required */ stageName: 'STRING_VALUE', /* required */ transitionType: Inbound | Outbound /* required */ }; codepipeline.enableStageTransition(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
pipelineName— (String)The name of the pipeline in which you want to enable the flow of artifacts from one stage to another.
stageName— (String)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).
transitionType— (String)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).
Possible values include:"Inbound""Outbound"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs.
-
(AWS.Response)
—
Returns:
getActionType(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the getActionType operation
var params = { category: Source | Build | Deploy | Test | Invoke | Approval, /* required */ owner: 'STRING_VALUE', /* required */ provider: 'STRING_VALUE', /* required */ version: 'STRING_VALUE' /* required */ }; codepipeline.getActionType(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
category— (String)Defines what kind of action can be taken in the stage. The following are the valid values:
-
Source -
Build -
Test -
Deploy -
Approval -
Invoke
"Source""Build""Deploy""Test""Invoke""Approval"
-
owner— (String)The creator of an action type that was created with any supported integration model. There are two valid values:
AWSandThirdParty.provider— (String)The provider of the action type being called. The provider name is specified when the action type is created.
version— (String)A string that describes the action type version.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:actionType— (map)The action type information for the requested action type, such as the action type ID.
description— (String)The description for the action type to be updated.
executor— required — (map)Information about the executor for an action type that was created with any supported integration model.
configuration— required — (map)The action configuration properties for the action type. These properties are specified in the action definition when the action type is created.
lambdaExecutorConfiguration— (map)Details about the
Lambdaexecutor of the action type.lambdaFunctionArn— required — (String)The ARN of the Lambda function used by the action engine.
jobWorkerExecutorConfiguration— (map)Details about the
JobWorkerexecutor of the action type.pollingAccounts— (Array<String>)The accounts in which the job worker is configured and might poll for jobs as part of the action execution.
pollingServicePrincipals— (Array<String>)The service Principals in which the job worker is configured and might poll for jobs as part of the action execution.
type— required — (String)The integration model used to create and update the action type,
Possible values include:LambdaorJobWorker."JobWorker""Lambda"
policyStatementsTemplate— (String)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.jobTimeout— (Integer)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.
id— required — (map)The action category, owner, provider, and version of the action type to be updated.
category— required — (String)Defines what kind of action can be taken in the stage, one of the following:
-
Source -
Build -
Test -
Deploy -
Approval -
Invoke
"Source""Build""Deploy""Test""Invoke""Approval"
-
owner— required — (String)The creator of the action type being called:
AWSorThirdParty.provider— required — (String)The provider of the action type being called. The provider name is supplied when the action type is created.
version— required — (String)A string that describes the action type version.
inputArtifactDetails— required — (map)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.
minimumCount— required — (Integer)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.maximumCount— required — (Integer)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.
outputArtifactDetails— required — (map)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.
minimumCount— required — (Integer)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.maximumCount— required — (Integer)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.
permissions— (map)Details identifying the accounts with permissions to use the action type.
allowedAccounts— required — (Array<String>)A list of Amazon Web Services account IDs with access to use the action type in their pipelines.
properties— (Array<map>)The properties of the action type to be updated.
name— required — (String)The property name that is displayed to users.
optional— required — (Boolean)Whether the configuration property is an optional value.
key— required — (Boolean)Whether the configuration property is a key.
noEcho— required — (Boolean)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.queryable— (Boolean)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.
description— (String)The description of the property that is displayed to users.
urls— (map)The links associated with the action type to be updated.
configurationUrl— (String)The URL returned to the CodePipeline console that contains a link to the page where customers can configure the external action.
entityUrlTemplate— (String)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.
executionUrlTemplate— (String)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.
revisionUrlTemplate— (String)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.
-
(AWS.Response)
—
Returns:
getJobDetails(params = {}, callback) ⇒ AWS.Request
Returns information about a job. Used for custom actions only.
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.
Service Reference:
Examples:
Calling the getJobDetails operation
var params = { jobId: 'STRING_VALUE' /* required */ }; codepipeline.getJobDetails(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
jobId— (String)The unique system-generated ID for the job.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:jobDetails— (map)The details of the job.
Note: If AWSSessionCredentials is used, a long-running job can callGetJobDetailsagain to obtain new credentials.id— (String)The unique system-generated ID of the job.
data— (map)Represents other information about a job required for a job worker to complete the job.
actionTypeId— (map)Represents information about an action type.
category— required — (String)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
"Source""Build""Deploy""Test""Invoke""Approval"
-
owner— required — (String)The creator of the action being called. There are three valid values for the
Possible values include:Ownerfield in the action category section within your pipeline structure:AWS,ThirdParty, andCustom. For more information, see Valid Action Types and Providers in CodePipeline."AWS""ThirdParty""Custom"
provider— required — (String)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.version— required — (String)A string that describes the action version.
actionConfiguration— (map)Represents information about an action configuration.
configuration— (map<String>)The configuration data for the action.
pipelineContext— (map)Represents information about a pipeline to a job worker.
Note: IncludespipelineArnandpipelineExecutionIdfor custom jobs.pipelineName— (String)The name of the pipeline. This is a user-specified value. Pipeline names must be unique across all pipeline names under an Amazon Web Services account.
stage— (map)The stage of the pipeline.
name— (String)The name of the stage.
action— (map)The context of an action to a job worker in the stage of a pipeline.
name— (String)The name of the action in the context of a job.
actionExecutionId— (String)The system-generated unique ID that corresponds to an action's execution.
pipelineArn— (String)The Amazon Resource Name (ARN) of the pipeline.
pipelineExecutionId— (String)The execution ID of the pipeline.
inputArtifacts— (Array<map>)The artifact supplied to the job.
name— (String)The artifact's name.
revision— (String)The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).
location— (map)The location of an artifact.
type— (String)The type of artifact in the location.
Possible values include:"S3"
s3Location— (map)The S3 bucket that contains the artifact.
bucketName— required — (String)The name of the S3 bucket.
objectKey— required — (String)The key of the object in the S3 bucket, which uniquely identifies the object in the bucket.
outputArtifacts— (Array<map>)The output of the job.
name— (String)The artifact's name.
revision— (String)The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).
location— (map)The location of an artifact.
type— (String)The type of artifact in the location.
Possible values include:"S3"
s3Location— (map)The S3 bucket that contains the artifact.
bucketName— required — (String)The name of the S3 bucket.
objectKey— required — (String)The key of the object in the S3 bucket, which uniquely identifies the object in the bucket.
artifactCredentials— (map)Represents an Amazon Web Services session credentials object. These credentials are temporary credentials that are issued by Amazon Web Services 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.
accessKeyId— required — (String)The access key for the session.
secretAccessKey— required — (String)The secret access key for the session.
sessionToken— required — (String)The token for the session.
continuationToken— (String)A system-generated token, such as a deployment ID, required by a job to continue the job asynchronously.
encryptionKey— (map)Represents information about the key used to encrypt data in the artifact store, such as an KMS key.
id— required — (String)The ID used to identify the key. For an Amazon Web Services 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 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— required — (String)The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
Possible values include:"KMS"
accountId— (String)The Amazon Web Services account ID associated with the job.
-
(AWS.Response)
—
Returns:
getPipeline(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the getPipeline operation
var params = { name: 'STRING_VALUE', /* required */ version: 'NUMBER_VALUE' }; codepipeline.getPipeline(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
name— (String)The name of the pipeline for which you want to get information. Pipeline names must be unique in an Amazon Web Services account.
version— (Integer)The version number of the pipeline. If you do not specify a version, defaults to the current version.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:pipeline— (map)Represents the structure of actions and stages to be performed in the pipeline.
name— required — (String)The name of the pipeline.
roleArn— required — (String)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 anactionRoleArn.artifactStore— (map)Represents information about the S3 bucket where artifacts are stored for the pipeline.
Note: You must include eitherartifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.type— required — (String)The type of the artifact store, such as S3.
Possible values include:"S3"
location— required — (String)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 Amazon Web Services Region as the pipeline to store your pipeline artifacts.
encryptionKey— (map)The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service key. If this is undefined, the default key for Amazon S3 is used.
id— required — (String)The ID used to identify the key. For an Amazon Web Services 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 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— required — (String)The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
Possible values include:"KMS"
artifactStores— (map<map>)A mapping of
artifactStoreobjects and their corresponding Amazon Web Services Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.Note: You must include eitherartifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.type— required — (String)The type of the artifact store, such as S3.
Possible values include:"S3"
location— required — (String)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 Amazon Web Services Region as the pipeline to store your pipeline artifacts.
encryptionKey— (map)The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service key. If this is undefined, the default key for Amazon S3 is used.
id— required — (String)The ID used to identify the key. For an Amazon Web Services 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 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— required — (String)The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
Possible values include:"KMS"
stages— required — (Array<map>)The stage in which to perform the action.
name— required — (String)The name of the stage.
blockers— (Array<map>)Reserved for future use.
name— required — (String)Reserved for future use.
type— required — (String)Reserved for future use.
Possible values include:"Schedule"
actions— required — (Array<map>)The actions included in a stage.
name— required — (String)The action declaration's name.
actionTypeId— required — (map)Specifies the action type and the provider of the action.
category— required — (String)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
"Source""Build""Deploy""Test""Invoke""Approval"
-
owner— required — (String)The creator of the action being called. There are three valid values for the
Possible values include:Ownerfield in the action category section within your pipeline structure:AWS,ThirdParty, andCustom. For more information, see Valid Action Types and Providers in CodePipeline."AWS""ThirdParty""Custom"
provider— required — (String)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.version— required — (String)A string that describes the action version.
runOrder— (Integer)The order in which actions are run.
configuration— (map<String>)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 CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide. For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the 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:
"Configuration" : { Key : Value },outputArtifacts— (Array<map>)The name or ID of the result of the action declaration, such as a test or build artifact.
name— required — (String)The name of the output of an artifact, such as "My App".
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.
Output artifact names must be unique within a pipeline.
inputArtifacts— (Array<map>)The name or ID of the artifact consumed by the action, such as a test or build artifact.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the pipeline.
region— (String)The action declaration's Amazon Web Services Region, such as us-east-1.
namespace— (String)The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.
timeoutInMinutes— (Integer)A timeout duration in minutes that can be applied against the ActionType’s default timeout value specified in Quotas for CodePipeline . This attribute is available only to the manual approval ActionType.
onFailure— (map)The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
result— (String)The specified result for when the failure conditions are met, such as rolling back the stage.
Possible values include:"ROLLBACK""FAIL"
conditions— (Array<map>)The conditions that are configured as failure conditions.
result— (String)The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Possible values include:"ROLLBACK""FAIL"
rules— (Array<map>)The rules that make up the condition.
name— required — (String)The name of the rule that is created for the condition, such as CheckAllResults.
ruleTypeId— required — (map)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
category— required — (String)A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is
Possible values include:Rule."Rule"
owner— (String)The creator of the rule being called. The valid value for the
Possible values include:Ownerfield in the rule category isAWS."AWS"
provider— required — (String)The rule provider, such as the
DeploymentWindowrule.version— (String)A string that describes the rule version.
configuration— (map<String>)The action configuration fields for the rule.
inputArtifacts— (Array<map>)The input artifacts fields for the rule, such as specifying an input file for the rule.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The pipeline role ARN associated with the rule.
region— (String)The Region for the condition associated with the rule.
timeoutInMinutes— (Integer)The action timeout for the rule.
onSuccess— (map)The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
conditions— required — (Array<map>)The conditions that are success conditions.
result— (String)The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Possible values include:"ROLLBACK""FAIL"
rules— (Array<map>)The rules that make up the condition.
name— required — (String)The name of the rule that is created for the condition, such as CheckAllResults.
ruleTypeId— required — (map)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
category— required — (String)A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is
Possible values include:Rule."Rule"
owner— (String)The creator of the rule being called. The valid value for the
Possible values include:Ownerfield in the rule category isAWS."AWS"
provider— required — (String)The rule provider, such as the
DeploymentWindowrule.version— (String)A string that describes the rule version.
configuration— (map<String>)The action configuration fields for the rule.
inputArtifacts— (Array<map>)The input artifacts fields for the rule, such as specifying an input file for the rule.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The pipeline role ARN associated with the rule.
region— (String)The Region for the condition associated with the rule.
timeoutInMinutes— (Integer)The action timeout for the rule.
beforeEntry— (map)The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
conditions— required — (Array<map>)The conditions that are configured as entry conditions.
result— (String)The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Possible values include:"ROLLBACK""FAIL"
rules— (Array<map>)The rules that make up the condition.
name— required — (String)The name of the rule that is created for the condition, such as CheckAllResults.
ruleTypeId— required — (map)The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
category— required — (String)A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is
Possible values include:Rule."Rule"
owner— (String)The creator of the rule being called. The valid value for the
Possible values include:Ownerfield in the rule category isAWS."AWS"
provider— required — (String)The rule provider, such as the
DeploymentWindowrule.version— (String)A string that describes the rule version.
configuration— (map<String>)The action configuration fields for the rule.
inputArtifacts— (Array<map>)The input artifacts fields for the rule, such as specifying an input file for the rule.
name— required — (String)The name of the artifact to be worked on (for example, "My App").
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.
roleArn— (String)The pipeline role ARN associated with the rule.
region— (String)The Region for the condition associated with the rule.
timeoutInMinutes— (Integer)The action timeout for the rule.
version— (Integer)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.
executionMode— (String)The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
Possible values include:"QUEUED""SUPERSEDED""PARALLEL"
pipelineType— (String)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.
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 pricing for CodePipeline, see Pricing.
For information about which type of pipeline to choose, see What type of pipeline is right for me?.
Possible values include:"V1""V2"
-
variables— (Array<map>)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@-_]+.name— required — (String)The name of a pipeline-level variable.
defaultValue— (String)The value of a pipeline-level variable.
description— (String)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.
triggers— (Array<map>)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.providerType— required — (String)The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
Possible values include:"CodeStarSourceConnection"
gitConfiguration— required — (map)Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
sourceActionName— required — (String)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.push— (Array<map>)The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
tags— (map)The field that contains the details for the Git tags trigger configuration.
includes— (Array<String>)The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
branches— (map)The field that specifies to filter on branches for the push trigger configuration.
includes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
filePaths— (map)The field that specifies to filter on file paths for the push trigger configuration.
includes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
pullRequest— (Array<map>)The field where the repository event that will start the pipeline is specified as pull requests.
events— (Array<String>)The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
branches— (map)The field that specifies to filter on branches for the pull request trigger configuration.
includes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
filePaths— (map)The field that specifies to filter on file paths for the pull request trigger configuration.
includes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes— (Array<String>)The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
metadata— (map)Represents the pipeline metadata information returned as part of the output of a
GetPipelineaction.pipelineArn— (String)The Amazon Resource Name (ARN) of the pipeline.
created— (Date)The date and time the pipeline was created, in timestamp format.
updated— (Date)The date and time the pipeline was last updated, in timestamp format.
pollingDisabledAt— (Date)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 CodePipeline User Guide.
-
(AWS.Response)
—
Returns:
getPipelineExecution(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the getPipelineExecution operation
var params = { pipelineExecutionId: 'STRING_VALUE', /* required */ pipelineName: 'STRING_VALUE' /* required */ }; codepipeline.getPipelineExecution(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
pipelineName— (String)The name of the pipeline about which you want to get execution details.
pipelineExecutionId— (String)The ID of the pipeline execution about which you want to get execution details.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:pipelineExecution— (map)Represents information about the execution of a pipeline.
pipelineName— (String)The name of the pipeline with the specified pipeline execution.
pipelineVersion— (Integer)The version number of the pipeline with the specified pipeline execution.
pipelineExecutionId— (String)The ID of the pipeline execution.
status— (String)The status of the pipeline execution.
-
Cancelled: The pipeline’s definition was updated before the pipeline execution could be completed.
-
InProgress: The pipeline execution is currently running.
-
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.
"Cancelled""InProgress""Stopped""Stopping""Succeeded""Superseded""Failed"
-
statusSummary— (String)A summary that contains a description of the pipeline execution status.
artifactRevisions— (Array<map>)A list of
ArtifactRevisionobjects included in a pipeline execution.name— (String)The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user when an action is created.
revisionId— (String)The revision ID of the artifact.
revisionChangeIdentifier— (String)An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 buckets, the ETag value.
revisionSummary— (String)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-summarykey specified in the object metadata.created— (Date)The date and time when the most recent revision of the artifact was created, in timestamp format.
revisionUrl— (String)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.
variables— (Array<map>)A list of pipeline variables used for the pipeline execution.
name— (String)The name of a pipeline-level variable.
resolvedValue— (String)The resolved value of a pipeline-level variable.
trigger— (map)The interaction or event that started a pipeline execution.
triggerType— (String)The type of change-detection method, command, or user interaction that started a pipeline execution.
Possible values include:"CreatePipeline""StartPipelineExecution""PollForSourceChanges""Webhook""CloudWatchEvent""PutActionRevision""WebhookV2""ManualRollback""AutomatedRollback"
triggerDetail— (String)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-executionCLI command.
executionMode— (String)The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
Possible values include:"QUEUED""SUPERSEDED""PARALLEL"
executionType— (String)The type of the pipeline execution.
Possible values include:"STANDARD""ROLLBACK"
rollbackMetadata— (map)The metadata about the execution pertaining to stage rollback.
rollbackTargetPipelineExecutionId— (String)The pipeline execution ID to which the stage will be rolled back.
-
(AWS.Response)
—
Returns:
getPipelineState(params = {}, callback) ⇒ AWS.Request
Returns information about the state of a pipeline, including the stages and actions.
Note: Values returned in therevisionIdandrevisionUrlfields indicate the source revision information, such as the commit ID, for the current state.Service Reference:
Examples:
Calling the getPipelineState operation
var params = { name: 'STRING_VALUE' /* required */ }; codepipeline.getPipelineState(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });Parameters:
-
params
(Object)
(defaults to: {})
—
name— (String)The name of the pipeline about which you want to get information.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
nullif the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
nullif a request error occurs. Thedataobject has the following properties:pipelineName— (String)The name of the pipeline for which you want to get the state.
pipelineVersion— (Integer)The version number of the pipeline.
Note: A newly created pipeline is always assigned a version number of1.stageStates— (Array<map>)A list of the pipeline stage output information, including stage name, state, most recent run details, whether the stage is disabled, and other data.
stageName— (String)The name of the stage.
inboundExecution— (map)Represents information about the run of a stage.
pipelineExecutionId— required — (String)The ID of the pipeline execution associated with the stage.
status— required — (String)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.Possible values include:"Cancelled""InProgress""Failed""Stopped""Stopping""Succeeded"
type— (String)The type of pipeline execution for the stage, such as a rollback pipeline execution.
Possible values include:"STANDARD""ROLLBACK"
inboundExecutions— (Array<map>)The inbound executions for a stage.
pipelineExecutionId— required — (String)The ID of the pipeline execution associated with the stage.
status— required — (String)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.Possible values include:"Cancelled""InProgress""Failed""Stopped""Stopping""Succeeded"
type— (String)The type of pipeline execution for the stage, such as a rollback pipeline execution.
Possible values include:"STANDARD""ROLLBACK"
inboundTransitionState— (map)The state of the inbound transition, which is either enabled or disabled.
enabled— (Boolean)Whether the transition between stages is enabled (true) or disabled (false).
lastChangedBy— (String)The ID of the user who last changed the transition state.
lastChangedAt— (Date)The timestamp when the transition state was last changed.
disabledReason— (String)The user-specified reason why the transition between two stages of a pipeline was disabled.
actionStates— (Array<map>)The state of the stage.
actionName— (String)The name of the action.
currentRevision— (map)Represents information about the version (or revision) of an action.
revisionId— required — (String)The system-generated unique ID that identifies the revision number of the action.
revisionChangeId— required — (String)The unique identifier of the change that set the state to this revision (for example, a deployment ID or timestamp).
created— required — (Date)The date and time when the most recent version of the action was created, in timestamp format.
latestExecution— (map)Represents information about the run of an action.
actionExecutionId— (String)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.status— (String)The status of the action, or for a completed action, the last status of the action.
Possible values include:"InProgress""Abandoned""Succeeded""Failed"
-
(AWS.Response)
—
- deleteCustomActionType(params = {}, callback) ⇒ AWS.Request