Skip to content
v2.274.0

SourceRevision Struct ​

A list that allows you to specify, or override, the source revision for a pipeline execution that's being started.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline_actions as codepipeline_actions } from 'aws-cdk-lib';
const sourceRevision: codepipeline_actions.SourceRevision = {
  actionName: 'actionName',
  revisionType: codepipeline_actions.RevisionType.COMMIT_ID,
  revisionValue: 'revisionValue',
};

Properties ​

actionNamestringaction_namestractionNameStringActionNamestringActionName*stringrequired#
The name of the action where the override will be applied.
revisionTypeRevisionTyperevision_typeRevisionTyperevisionTypeRevisionTypeRevisionTypeRevisionTypeRevisionTypeRevisionTyperequired#
The type of source revision, based on the source provider.
revisionValuestringrevision_valuestrrevisionValueStringRevisionValuestringRevisionValue*stringrequired#
The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.