Skip to content
v2.277.0

IPipeline Interface ​

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.

Properties ​

The environment this resource belongs to.
notes

For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

nodeNodenodeNodenodeNodeNodeNodeNodeNode #
The tree node.
pipelineArnstringpipeline_arnstrpipelineArnStringPipelineArnstringPipelineArn*string #
The ARN of the Pipeline.
pipelineNamestringpipeline_namestrpipelineNameStringPipelineNamestringPipelineName*string #
The name of the Pipeline.
A reference to a Pipeline resource.
stackStackstackStackstackStackStackStackStackStack #
The stack in which this resource is defined.

Methods ​

applyRemovalPolicy(policy: RemovalPolicy): voiddef apply_removal_policy(self, policy: RemovalPolicy) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy)public void ApplyRemovalPolicy(RemovalPolicy policy)func ApplyRemovalPolicy(Policy RemovalPolicy) #
Apply the given removal policy to this resource.
notes

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

bindAsNotificationRuleSource(scope: Construct): NotificationRuleSourceConfigdef bind_as_notification_rule_source(self, scope: Construct) -> NotificationRuleSourceConfigpublic NotificationRuleSourceConfig bindAsNotificationRuleSource(Construct scope)public NotificationRuleSourceConfig BindAsNotificationRuleSource(Construct scope)func BindAsNotificationRuleSource(Scope Construct) NotificationRuleSourceConfig #
Returns a source configuration for notification rule.
notifyOn(id: string, target: INotificationRuleTarget, options: PipelineNotifyOnOptions): INotificationRuledef notify_on(self, id: str, target: INotificationRuleTarget, options: PipelineNotifyOnOptions) -> INotificationRulepublic INotificationRule notifyOn(String id, INotificationRuleTarget target, PipelineNotifyOnOptions options)public INotificationRule NotifyOn(string id, INotificationRuleTarget target, PipelineNotifyOnOptions options)func NotifyOn(Id *string, Target INotificationRuleTarget, Options PipelineNotifyOnOptions) INotificationRule #
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.

3 parameters · returns

Parameters

  • ididididId — The id of the CodeStar notification rule.
  • targettargettargettargetTarget — The target to register for the CodeStar Notifications destination.
  • optionsoptionsoptionsoptionsOptions — Customization options for CodeStar notification rule.

Returns: CodeStar notification rule associated with this build project.

notifyOnAnyActionStateChange(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_any_action_state_change(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnAnyActionStateChange(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnAnyActionStateChange(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnAnyActionStateChange(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule #
Define an notification rule triggered by the set of the "Action execution" events emitted from this pipeline.
3 parameters

Parameters

  • ididididId — Identifier for this notification handler.
  • targettargettargettargetTarget — The target to register for the CodeStar Notifications destination.
  • optionsoptionsoptionsoptionsOptions — Additional options to pass to the notification rule.
notifyOnAnyManualApprovalStateChange(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_any_manual_approval_state_change(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnAnyManualApprovalStateChange(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnAnyManualApprovalStateChange(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnAnyManualApprovalStateChange(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule #
Define an notification rule triggered by the set of the "Manual approval" events emitted from this pipeline.
3 parameters

Parameters

  • ididididId — Identifier for this notification handler.
  • targettargettargettargetTarget — The target to register for the CodeStar Notifications destination.
  • optionsoptionsoptionsoptionsOptions — Additional options to pass to the notification rule.
notifyOnAnyStageStateChange(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_any_stage_state_change(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnAnyStageStateChange(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnAnyStageStateChange(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnAnyStageStateChange(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule #
Define an notification rule triggered by the set of the "Stage execution" events emitted from this pipeline.
3 parameters

Parameters

  • ididididId — Identifier for this notification handler.
  • targettargettargettargetTarget — The target to register for the CodeStar Notifications destination.
  • optionsoptionsoptionsoptionsOptions — Additional options to pass to the notification rule.
notifyOnExecutionStateChange(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_execution_state_change(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnExecutionStateChange(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnExecutionStateChange(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnExecutionStateChange(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule #
Define an notification rule triggered by the set of the "Pipeline execution" events emitted from this pipeline.
3 parameters

Parameters

  • ididididId — Identifier for this notification handler.
  • targettargettargettargetTarget — The target to register for the CodeStar Notifications destination.
  • optionsoptionsoptionsoptionsOptions — Additional options to pass to the notification rule.
onEvent(id: string, options?: OnEventOptions): Ruledef on_event(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onEvent(String id, OnEventOptions options)public Rule OnEvent(string id, OnEventOptions? options = null)func OnEvent(Id *string, Options OnEventOptions) Rule #
Define an event rule triggered by this CodePipeline.
2 parameters

Parameters

  • ididididId — Identifier for this event handler.
  • optionsoptionsoptionsoptionsOptions — Additional options to pass to the event rule.
onStateChange(id: string, options?: OnEventOptions): Ruledef on_state_change(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onStateChange(String id, OnEventOptions options)public Rule OnStateChange(string id, OnEventOptions? options = null)func OnStateChange(Id *string, Options OnEventOptions) Rule #
Define an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.
2 parameters

Parameters

  • ididididId — Identifier for this event handler.
  • optionsoptionsoptionsoptionsOptions — Additional options to pass to the event rule.
with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct #
Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

1 parameter · returns

Parameters

  • mixinsmixinsmixinsmixinsMixins — The mixins to apply.

Returns: This construct for chaining