Class EcrSourceAction
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codepipeline.Action
software.amazon.awscdk.services.codepipeline.actions.Action
software.amazon.awscdk.services.codepipeline.actions.EcrSourceAction
- All Implemented Interfaces:
IAction
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-03-04T22:57:21.666Z")
@Stability(Stable)
public class EcrSourceAction
extends Action
The ECR Repository source CodePipeline Action.
Will trigger the pipeline as soon as the target tag in the repository changes, but only if there is a CloudTrail Trail in the account that captures the ECR event.
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());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codepipeline.IAction
IAction.Jsii$Default
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EcrSourceAction
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
EcrSourceAction
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected ActionConfig
bound
(software.constructs.Construct scope, IStage stage, ActionBindOptions options) This is a renamed version of theIAction.bind
method.The variables emitted by this action.Methods inherited from class software.amazon.awscdk.services.codepipeline.actions.Action
getProvidedActionProperties
Methods inherited from class software.amazon.awscdk.services.codepipeline.Action
bind, getActionProperties, onStateChange, onStateChange, onStateChange, variableExpression
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EcrSourceAction
protected EcrSourceAction(software.amazon.jsii.JsiiObjectRef objRef) -
EcrSourceAction
protected EcrSourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EcrSourceAction
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
bound
@Stability(Stable) @NotNull protected ActionConfig bound(@NotNull software.constructs.Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions options) This is a renamed version of theIAction.bind
method. -
getVariables
The variables emitted by this action.
-