Enum Class 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());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe revision type is a commit id.The revision type is an image digest.The revision type is an s3 object version key.The revision type is an s3 object version id. -
Method Summary
Modifier and TypeMethodDescriptionstatic RevisionTypeReturns the enum constant of this class with the specified name.static RevisionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-