AWS CodePipeline

2024/06/07 - AWS CodePipeline - 1 updated api methods

Changes  CodePipeline now supports overriding S3 Source Object Key during StartPipelineExecution, as part of Source Overrides.

StartPipelineExecution (updated) Link ΒΆ
Changes (request)
{'sourceRevisions': {'revisionType': {'S3_OBJECT_KEY'}}}

Starts the specified pipeline. Specifically, it begins processing the latest commit to the source location specified as part of the pipeline.

See also: AWS API Documentation

Request Syntax

client.start_pipeline_execution(
    name='string',
    variables=[
        {
            'name': 'string',
            'value': 'string'
        },
    ],
    clientRequestToken='string',
    sourceRevisions=[
        {
            'actionName': 'string',
            'revisionType': 'COMMIT_ID'|'IMAGE_DIGEST'|'S3_OBJECT_VERSION_ID'|'S3_OBJECT_KEY',
            'revisionValue': 'string'
        },
    ]
)
type name

string

param name

[REQUIRED]

The name of the pipeline to start.

type variables

list

param variables

A list that overrides pipeline variables for a pipeline execution that's being started. Variable names must match [A-Za-z0-9@\-_]+ , and the values can be anything except an empty string.

  • (dict) --

    A pipeline-level variable used for a pipeline execution.

    • name (string) -- [REQUIRED]

      The name of a pipeline-level variable.

    • value (string) -- [REQUIRED]

      The value of a pipeline-level variable.

type clientRequestToken

string

param clientRequestToken

The system-generated unique ID used to identify a unique execution request.

This field is autopopulated if not provided.

type sourceRevisions

list

param sourceRevisions

A list that allows you to specify, or override, the source revision for a pipeline execution that's being started. A source revision is the version with all the changes to your application code, or source artifact, for the pipeline execution.

  • (dict) --

    A list that allows you to specify, or override, the source revision for a pipeline execution that's being started. A source revision is the version with all the changes to your application code, or source artifact, for the pipeline execution.

    Note

    For the S3_OBJECT_VERSION_ID and S3_OBJECT_KEY types of source revisions, either of the types can be used independently, or they can be used together to override the source with a specific ObjectKey and VersionID.

    • actionName (string) -- [REQUIRED]

      The name of the action where the override will be applied.

    • revisionType (string) -- [REQUIRED]

      The type of source revision, based on the source provider. For example, the revision type for the CodeCommit action provider is the commit ID.

    • revisionValue (string) -- [REQUIRED]

      The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.

rtype

dict

returns

Response Syntax

{
    'pipelineExecutionId': 'string'
}

Response Structure

  • (dict) --

    Represents the output of a StartPipelineExecution action.

    • pipelineExecutionId (string) --

      The unique system-generated ID of the pipeline execution that was started.