Class EcrSourceActionProps
Construction properties of EcrSourceAction
.
Inheritance
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EcrSourceActionProps : Object, IEcrSourceActionProps, ICommonAwsActionProps, ICommonActionProps
Syntax (vb)
Public Class EcrSourceActionProps
Inherits Object
Implements IEcrSourceActionProps, ICommonAwsActionProps, ICommonActionProps
Remarks
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
EcrSourceActionProps() |
Properties
ActionName | The physical, human-readable name of the Action. |
ImageTag | The image tag that will be checked for changes. |
Output | |
Repository | The repository that will be watched for changes. |
Role | The Role in which context's this Action will be executing in. |
RunOrder | The runOrder property for this Action. |
VariablesNamespace | The name of the namespace to use for variables emitted by this action. |
Constructors
EcrSourceActionProps()
public EcrSourceActionProps()
Properties
ActionName
The physical, human-readable name of the Action.
public string ActionName { get; set; }
Property Value
System.String
Remarks
Note that Action names must be unique within a single Stage.
ImageTag
The image tag that will be checked for changes.
public string ImageTag { get; set; }
Property Value
System.String
Remarks
It is not possible to trigger on changes to more than one tag.
Default: 'latest'
Output
Repository
The repository that will be watched for changes.
public IRepository Repository { get; set; }
Property Value
Role
The Role in which context's this Action will be executing in.
public IRole Role { get; set; }
Property Value
Remarks
The Pipeline's Role will assume this Role
(the required permissions for that will be granted automatically)
right before executing this Action.
This Action will be passed into your IAction.bind
method in the ActionBindOptions.role
property.
Default: a new Role will be generated
RunOrder
The runOrder property for this Action.
public Nullable<double> RunOrder { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
RunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
See: https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html
VariablesNamespace
The name of the namespace to use for variables emitted by this action.
public string VariablesNamespace { get; set; }
Property Value
System.String
Remarks
Default: - a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set