enum RevisionType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodePipeline.Actions.RevisionType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodepipelineactions#RevisionType |
Java | software.amazon.awscdk.services.codepipeline.actions.RevisionType |
Python | aws_cdk.aws_codepipeline_actions.RevisionType |
TypeScript (source) | aws-cdk-lib » aws_codepipeline_actions » RevisionType |
The types of revision for a pipeline execution.
Example
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
| Name | Description |
|---|---|
| COMMIT_ID | The revision type is a commit id. |
| IMAGE_DIGEST | The revision type is an image digest. |
| S3_OBJECT_VERSION_ID | The revision type is an s3 object version id. |
| S3_OBJECT_KEY | The revision type is an s3 object version key. |
COMMIT_ID
The revision type is a commit id.
IMAGE_DIGEST
The revision type is an image digest.
S3_OBJECT_VERSION_ID
The revision type is an s3 object version id.
S3_OBJECT_KEY
The revision type is an s3 object version key.

.NET
Go
Java
Python
TypeScript (