Skip to content
v2.275.0

RevisionType Enum ​

The types of revision for a pipeline execution.

Example ​

ts
import * as cpactions from 'aws-cdk-lib/aws-codepipeline-actions';

const pipeline = new codepipeline.Pipeline(this, 'MyPipeline');
const targetPipeline = codepipeline.Pipeline.fromPipelineArn(this, 'Pipeline',
    'arn:aws:codepipeline:us-east-1:123456789012:InvokePipelineAction'); // If targetPipeline is not created by cdk, import from arn.
pipeline.addStage({
  stageName: 'stageName',
  actions: [new cpactions.PipelineInvokeAction({
  actionName: 'Invoke',
  targetPipeline,
  variables: [{
    name: 'name1',
    value: 'value1',
  }],
  sourceRevisions: [{
    actionName: 'Source',
    revisionType: cpactions.RevisionType.S3_OBJECT_VERSION_ID,
    revisionValue: 'testRevisionValue',
    }],
  })],
});

Members ​

MemberDescription
COMMIT_IDThe revision type is a commit id.
IMAGE_DIGESTThe revision type is an image digest.
S3_OBJECT_VERSION_IDThe revision type is an s3 object version id.
S3_OBJECT_KEYThe revision type is an s3 object version key.

Referenced by ​

  • SourceRevision.revisionTyperevision_typerevisionTypeRevisionTypeRevisionType