Class EcrSourceAction.Builder

java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.EcrSourceAction.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<EcrSourceAction>
Enclosing class:
EcrSourceAction

@Stability(Stable) public static final class EcrSourceAction.Builder extends Object implements software.amazon.jsii.Builder<EcrSourceAction>
A fluent builder for EcrSourceAction.
  • Method Details

    • create

      @Stability(Stable) public static EcrSourceAction.Builder create()
      Returns:
      a new instance of EcrSourceAction.Builder.
    • actionName

      @Stability(Stable) public EcrSourceAction.Builder actionName(String actionName)
      The physical, human-readable name of the Action.

      Note that Action names must be unique within a single Stage.

      Parameters:
      actionName - The physical, human-readable name of the Action. This parameter is required.
      Returns:
      this
    • runOrder

      @Stability(Stable) public EcrSourceAction.Builder runOrder(Number runOrder)
      The runOrder property for this Action.

      RunOrder determines the relative order in which multiple Actions in the same Stage execute.

      Default: 1

      Parameters:
      runOrder - The runOrder property for this Action. This parameter is required.
      Returns:
      this
      See Also:
    • variablesNamespace

      @Stability(Stable) public EcrSourceAction.Builder variablesNamespace(String variablesNamespace)
      The name of the namespace to use for variables emitted by this action.

      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

      Parameters:
      variablesNamespace - The name of the namespace to use for variables emitted by this action. This parameter is required.
      Returns:
      this
    • role

      @Stability(Stable) public EcrSourceAction.Builder role(IRole role)
      The Role in which context's this Action will be executing in.

      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

      Parameters:
      role - The Role in which context's this Action will be executing in. This parameter is required.
      Returns:
      this
    • output

      @Stability(Stable) public EcrSourceAction.Builder output(Artifact output)
      Parameters:
      output - This parameter is required.
      Returns:
      this
    • repository

      @Stability(Stable) public EcrSourceAction.Builder repository(IRepository repository)
      The repository that will be watched for changes.

      Parameters:
      repository - The repository that will be watched for changes. This parameter is required.
      Returns:
      this
    • imageTag

      @Stability(Stable) public EcrSourceAction.Builder imageTag(String imageTag)
      The image tag that will be checked for changes.

      Provide an empty string to trigger on changes to any tag.

      Default: 'latest'

      Parameters:
      imageTag - The image tag that will be checked for changes. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public EcrSourceAction build()
      Specified by:
      build in interface software.amazon.jsii.Builder<EcrSourceAction>
      Returns:
      a newly built instance of EcrSourceAction.