Enum Class RevisionType

java.lang.Object
java.lang.Enum<RevisionType>
software.amazon.awscdk.services.codepipeline.actions.RevisionType
All Implemented Interfaces:
Serializable, Comparable<RevisionType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-05-20T23:52:52.448Z") @Stability(Stable) public enum RevisionType extends Enum<RevisionType>
The types of revision for a pipeline execution.

Example:

 import software.amazon.awscdk.services.codepipeline.actions.*;
 Pipeline pipeline = new Pipeline(this, "MyPipeline");
 IPipeline targetPipeline = Pipeline.fromPipelineArn(this, "Pipeline", "arn:aws:codepipeline:us-east-1:123456789012:InvokePipelineAction"); // If targetPipeline is not created by cdk, import from arn.
 pipeline.addStage(StageOptions.builder()
         .stageName("stageName")
         .actions(List.of(PipelineInvokeAction.Builder.create()
                 .actionName("Invoke")
                 .targetPipeline(targetPipeline)
                 .variables(List.of(Variable.builder()
                         .name("name1")
                         .value("value1")
                         .build()))
                 .sourceRevisions(List.of(SourceRevision.builder()
                         .actionName("Source")
                         .revisionType(RevisionType.S3_OBJECT_VERSION_ID)
                         .revisionValue("testRevisionValue")
                         .build()))
                 .build()))
         .build());
 
  • Enum Constant Details

    • COMMIT_ID

      @Stability(Stable) public static final RevisionType COMMIT_ID
      The revision type is a commit id.
    • IMAGE_DIGEST

      @Stability(Stable) public static final RevisionType IMAGE_DIGEST
      The revision type is an image digest.
    • S3_OBJECT_VERSION_ID

      @Stability(Stable) public static final RevisionType S3_OBJECT_VERSION_ID
      The revision type is an s3 object version id.
    • S3_OBJECT_KEY

      @Stability(Stable) public static final RevisionType S3_OBJECT_KEY
      The revision type is an s3 object version key.
  • Method Details

    • values

      public static RevisionType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RevisionType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null