Interface IPipeline
- All Superinterfaces:
IConstruct
,software.constructs.IConstruct
,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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.937Z")
@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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIPipeline
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the Pipeline.The name of the Pipeline.notifyOn
(String id, INotificationRuleTarget target, PipelineNotifyOnOptions options) Defines a CodeStar notification rule triggered when the pipeline events emitted by you specified, it very similar toonEvent
API.Define an notification rule triggered by the set of the "Action execution" events emitted from this pipeline.notifyOnAnyActionStateChange
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Define an notification rule triggered by the set of the "Action execution" events emitted from this pipeline.Define an notification rule triggered by the set of the "Manual approval" events emitted from this pipeline.notifyOnAnyManualApprovalStateChange
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Define an notification rule triggered by the set of the "Manual approval" events emitted from this pipeline.notifyOnAnyStageStateChange
(String id, INotificationRuleTarget target) Define an notification rule triggered by the set of the "Stage execution" events emitted from this pipeline.notifyOnAnyStageStateChange
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Define an notification rule triggered by the set of the "Stage execution" events emitted from this pipeline.Define an notification rule triggered by the set of the "Pipeline execution" events emitted from this pipeline.notifyOnExecutionStateChange
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Define an notification rule triggered by the set of the "Pipeline execution" events emitted from this pipeline.Define an event rule triggered by this CodePipeline.onEvent
(String id, OnEventOptions options) Define an event rule triggered by this CodePipeline.onStateChange
(String id) Define an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.onStateChange
(String id, OnEventOptions options) Define an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.services.codestarnotifications.INotificationRuleSource
bindAsNotificationRuleSource
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPipelineArn
The ARN of the Pipeline. -
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 toonEvent
API.You can also use the methods
notifyOnExecutionStateChange
,notifyOnAnyStageStateChange
,notifyOnAnyActionStateChange
andnotifyOnAnyManualApprovalStateChange
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
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
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
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.
-