@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:43.053Z") public class EcrSourceAction extends 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());
Modifier and Type | Class and Description |
---|---|
static class |
EcrSourceAction.Builder
A fluent builder for
EcrSourceAction . |
IAction.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
EcrSourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
EcrSourceAction(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected ActionConfig |
bound(Construct _scope,
IStage stage,
ActionBindOptions options)
This is a renamed version of the
IAction.bind method. |
EcrSourceVariables |
getVariables()
The variables emitted by this action.
|
getProvidedActionProperties
bind, getActionProperties, onStateChange, onStateChange, onStateChange, variableExpression
protected EcrSourceAction(software.amazon.jsii.JsiiObjectRef objRef)
protected EcrSourceAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected ActionConfig bound(Construct _scope, IStage stage, ActionBindOptions options)
IAction.bind
method.
public EcrSourceVariables getVariables()