Interface EcrSourceActionProps

All Superinterfaces:
CommonActionProps, CommonAwsActionProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
EcrSourceActionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:59.337Z") @Stability(Stable) public interface EcrSourceActionProps extends software.amazon.jsii.JsiiSerializable, CommonAwsActionProps
Construction properties of EcrSourceAction.

Example:

 import software.amazon.awscdk.services.ecr.*;
 Repository ecrRepository;
 Pipeline pipeline = new Pipeline(this, "MyPipeline");
 Artifact sourceOutput = new Artifact();
 EcrSourceAction sourceAction = EcrSourceAction.Builder.create()
         .actionName("ECR")
         .repository(ecrRepository)
         .imageTag("some-tag") // optional, default: 'latest'
         .output(sourceOutput)
         .build();
 pipeline.addStage(StageOptions.builder()
         .stageName("Source")
         .actions(List.of(sourceAction))
         .build());
 
  • Method Details

    • getOutput

      @Stability(Stable) @NotNull Artifact getOutput()
    • getRepository

      @Stability(Stable) @NotNull IRepository getRepository()
      The repository that will be watched for changes.
    • getImageTag

      @Stability(Stable) @Nullable default String getImageTag()
      The image tag that will be checked for changes.

      It is not possible to trigger on changes to more than one tag.

      Default: 'latest'

    • builder

      @Stability(Stable) static EcrSourceActionProps.Builder builder()
      Returns:
      a EcrSourceActionProps.Builder of EcrSourceActionProps