Interface IPipeline

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, INotificationRuleSource, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IPipeline.Jsii$Default
All Known Implementing Classes:
IPipeline.Jsii$Proxy, Pipeline

@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-04-10T22:22:25.349Z") @Stability(Stable) public interface IPipeline extends software.amazon.jsii.JsiiSerializable, IResource, INotificationRuleSource
The abstract view of an AWS CodePipeline as required and used by Actions.

It extends events.IRuleTarget, so this interface can be used as a Target for CloudWatch Events.

  • Method Details

    • getPipelineArn

      @Stability(Stable) @NotNull String getPipelineArn()
      The ARN of the Pipeline.
    • getPipelineName

      @Stability(Stable) @NotNull String getPipelineName()
      The name of the Pipeline.
    • notifyOn

      @Stability(Stable) @NotNull INotificationRule notifyOn(@NotNull String id, @NotNull INotificationRuleTarget target, @NotNull PipelineNotifyOnOptions options)
      Defines a CodeStar notification rule triggered when the pipeline events emitted by you specified, it very similar to onEvent API.

      You can also use the methods notifyOnExecutionStateChange, notifyOnAnyStageStateChange, notifyOnAnyActionStateChange and notifyOnAnyManualApprovalStateChange to define rules for these specific event emitted.

      Parameters:
      id - The id of the CodeStar notification rule. This parameter is required.
      target - The target to register for the CodeStar Notifications destination. This parameter is required.
      options - Customization options for CodeStar notification rule. This parameter is required.
      Returns:
      CodeStar notification rule associated with this build project.
    • notifyOnAnyActionStateChange

      @Stability(Stable) @NotNull INotificationRule notifyOnAnyActionStateChange(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
      Define an notification rule triggered by the set of the "Action execution" events emitted from this pipeline.

      Parameters:
      id - Identifier for this notification handler. This parameter is required.
      target - The target to register for the CodeStar Notifications destination. This parameter is required.
      options - Additional options to pass to the notification rule.
      See Also:
    • notifyOnAnyActionStateChange

      @Stability(Stable) @NotNull INotificationRule notifyOnAnyActionStateChange(@NotNull String id, @NotNull INotificationRuleTarget target)
      Define an notification rule triggered by the set of the "Action execution" events emitted from this pipeline.

      Parameters:
      id - Identifier for this notification handler. This parameter is required.
      target - The target to register for the CodeStar Notifications destination. This parameter is required.
      See Also:
    • notifyOnAnyManualApprovalStateChange

      @Stability(Stable) @NotNull INotificationRule notifyOnAnyManualApprovalStateChange(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
      Define an notification rule triggered by the set of the "Manual approval" events emitted from this pipeline.

      Parameters:
      id - Identifier for this notification handler. This parameter is required.
      target - The target to register for the CodeStar Notifications destination. This parameter is required.
      options - Additional options to pass to the notification rule.
      See Also:
    • notifyOnAnyManualApprovalStateChange

      @Stability(Stable) @NotNull INotificationRule notifyOnAnyManualApprovalStateChange(@NotNull String id, @NotNull INotificationRuleTarget target)
      Define an notification rule triggered by the set of the "Manual approval" events emitted from this pipeline.

      Parameters:
      id - Identifier for this notification handler. This parameter is required.
      target - The target to register for the CodeStar Notifications destination. This parameter is required.
      See Also:
    • notifyOnAnyStageStateChange

      @Stability(Stable) @NotNull INotificationRule notifyOnAnyStageStateChange(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
      Define an notification rule triggered by the set of the "Stage execution" events emitted from this pipeline.

      Parameters:
      id - Identifier for this notification handler. This parameter is required.
      target - The target to register for the CodeStar Notifications destination. This parameter is required.
      options - Additional options to pass to the notification rule.
      See Also:
    • notifyOnAnyStageStateChange

      @Stability(Stable) @NotNull INotificationRule notifyOnAnyStageStateChange(@NotNull String id, @NotNull INotificationRuleTarget target)
      Define an notification rule triggered by the set of the "Stage execution" events emitted from this pipeline.

      Parameters:
      id - Identifier for this notification handler. This parameter is required.
      target - The target to register for the CodeStar Notifications destination. This parameter is required.
      See Also:
    • notifyOnExecutionStateChange

      @Stability(Stable) @NotNull INotificationRule notifyOnExecutionStateChange(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
      Define an notification rule triggered by the set of the "Pipeline execution" events emitted from this pipeline.

      Parameters:
      id - Identifier for this notification handler. This parameter is required.
      target - The target to register for the CodeStar Notifications destination. This parameter is required.
      options - Additional options to pass to the notification rule.
      See Also:
    • notifyOnExecutionStateChange

      @Stability(Stable) @NotNull INotificationRule notifyOnExecutionStateChange(@NotNull String id, @NotNull INotificationRuleTarget target)
      Define an notification rule triggered by the set of the "Pipeline execution" events emitted from this pipeline.

      Parameters:
      id - Identifier for this notification handler. This parameter is required.
      target - The target to register for the CodeStar Notifications destination. This parameter is required.
      See Also:
    • onEvent

      @Stability(Stable) @NotNull Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
      Define an event rule triggered by this CodePipeline.

      Parameters:
      id - Identifier for this event handler. This parameter is required.
      options - Additional options to pass to the event rule.
    • onEvent

      @Stability(Stable) @NotNull Rule onEvent(@NotNull String id)
      Define an event rule triggered by this CodePipeline.

      Parameters:
      id - Identifier for this event handler. This parameter is required.
    • onStateChange

      @Stability(Stable) @NotNull Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options)
      Define an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.

      Parameters:
      id - Identifier for this event handler. This parameter is required.
      options - Additional options to pass to the event rule.
    • onStateChange

      @Stability(Stable) @NotNull Rule onStateChange(@NotNull String id)
      Define an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.

      Parameters:
      id - Identifier for this event handler. This parameter is required.