Class EcrSourceAction
The ECR Repository source CodePipeline Action.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EcrSourceAction : Action, IAction
Syntax (vb)
Public Class EcrSourceAction
Inherits Action
Implements IAction
Remarks
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.
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.ECR;
Repository ecrRepository;
var pipeline = new Pipeline(this, "MyPipeline");
var sourceOutput = new Artifact();
var sourceAction = new EcrSourceAction(new EcrSourceActionProps {
ActionName = "ECR",
Repository = ecrRepository,
ImageTag = "some-tag", // optional, default: 'latest'
Output = sourceOutput
});
pipeline.AddStage(new StageOptions {
StageName = "Source",
Actions = new [] { sourceAction }
});
Synopsis
Constructors
EcrSourceAction(IEcrSourceActionProps) | |
EcrSourceAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EcrSourceAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Variables | The variables emitted by this action. |
Methods
Bound(Construct, IStage, IActionBindOptions) | This is a renamed version of the |
Constructors
EcrSourceAction(IEcrSourceActionProps)
EcrSourceAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EcrSourceAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EcrSourceAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EcrSourceAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Variables
The variables emitted by this action.
public virtual IEcrSourceVariables Variables { get; }
Property Value
Methods
Bound(Construct, IStage, IActionBindOptions)
This is a renamed version of the IAction.bind
method.
protected override IActionConfig Bound(Construct scope, IStage stage, IActionBindOptions options)
Parameters
- scope Constructs.Construct
- stage IStage
- options IActionBindOptions
Returns