@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.481Z") @Stability(value=Stable) public class Pipeline extends Resource implements IPipeline
Example:
// Example automatically generated from non-compiling source. May contain errors.
// create a pipeline
import software.amazon.awscdk.services.codecommit.*;
// add a source action to the stage
Repository repo;
Artifact sourceArtifact;
Pipeline pipeline = new Pipeline(this, "Pipeline");
// add a stage
IStage sourceStage = pipeline.addStage(StageOptions.builder().stageName("Source").build());
sourceStage.addAction(CodeCommitSourceAction.Builder.create()
.actionName("Source")
.output(sourceArtifact)
.repository(repo)
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
Pipeline.Builder
A fluent builder for
Pipeline. |
software.amazon.jsii.JsiiObject.InitializationModeIPipeline.Jsii$Default, IPipeline.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Pipeline(software.constructs.Construct scope,
String id) |
|
Pipeline(software.constructs.Construct scope,
String id,
PipelineProps props) |
protected |
Pipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Pipeline(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
IStage |
addStage(StageOptions props)
Creates a new Stage, and adds it to this Pipeline.
|
void |
addToRolePolicy(PolicyStatement statement)
Adds a statement to the pipeline role.
|
NotificationRuleSourceConfig |
bindAsNotificationRuleSource(software.constructs.Construct _scope)
Returns a source configuration for notification rule.
|
static IPipeline |
fromPipelineArn(software.constructs.Construct scope,
String id,
String pipelineArn)
Import a pipeline into this app.
|
IBucket |
getArtifactBucket()
Bucket used to store output artifacts.
|
Map<String,CrossRegionSupport> |
getCrossRegionSupport()
Returns all of the
CrossRegionSupportStacks that were generated automatically when dealing with Actions that reside in a different region than the Pipeline itself. |
String |
getPipelineArn()
ARN of this pipeline.
|
String |
getPipelineName()
The name of the pipeline.
|
String |
getPipelineVersion()
The version of the pipeline.
|
IRole |
getRole()
The IAM role AWS CodePipeline will use to perform actions or assume roles for actions with a more specific IAM role.
|
Number |
getStageCount()
Get the number of Stages in this Pipeline.
|
List<IStage> |
getStages()
Returns the stages that comprise the pipeline.
|
INotificationRule |
notifyOn(String id,
INotificationRuleTarget target,
PipelineNotifyOnOptions options)
Defines a CodeStar notification rule triggered when the pipeline events emitted by you specified, it very similar to `onEvent` API.
|
INotificationRule |
notifyOnAnyActionStateChange(String id,
INotificationRuleTarget target)
Define an notification rule triggered by the set of the "Action execution" events emitted from this pipeline.
|
INotificationRule |
notifyOnAnyActionStateChange(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Define an notification rule triggered by the set of the "Action execution" events emitted from this pipeline.
|
INotificationRule |
notifyOnAnyManualApprovalStateChange(String id,
INotificationRuleTarget target)
Define an notification rule triggered by the set of the "Manual approval" events emitted from this pipeline.
|
INotificationRule |
notifyOnAnyManualApprovalStateChange(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Define an notification rule triggered by the set of the "Manual approval" events emitted from this pipeline.
|
INotificationRule |
notifyOnAnyStageStateChange(String id,
INotificationRuleTarget target)
Define an notification rule triggered by the set of the "Stage execution" events emitted from this pipeline.
|
INotificationRule |
notifyOnAnyStageStateChange(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Define an notification rule triggered by the set of the "Stage execution" events emitted from this pipeline.
|
INotificationRule |
notifyOnExecutionStateChange(String id,
INotificationRuleTarget target)
Define an notification rule triggered by the set of the "Pipeline execution" events emitted from this pipeline.
|
INotificationRule |
notifyOnExecutionStateChange(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Define an notification rule triggered by the set of the "Pipeline execution" events emitted from this pipeline.
|
Rule |
onEvent(String id)
Defines an event rule triggered by this CodePipeline.
|
Rule |
onEvent(String id,
OnEventOptions options)
Defines an event rule triggered by this CodePipeline.
|
Rule |
onStateChange(String id)
Defines an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.
|
Rule |
onStateChange(String id,
OnEventOptions options)
Defines an event rule triggered by the "CodePipeline Pipeline Execution State Change" event emitted from this pipeline.
|
IStage |
stage(String stageName)
Access one of the pipeline's stages by stage name.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected Pipeline(software.amazon.jsii.JsiiObjectRef objRef)
protected Pipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Pipeline(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
PipelineProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public Pipeline(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static IPipeline fromPipelineArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String pipelineArn)
scope - the scope into which to import this pipeline. This parameter is required.id - the logical ID of the returned pipeline construct. This parameter is required.pipelineArn - The ARN of the pipeline (e.g. `arn:aws:codepipeline:us-east-1:123456789012:MyDemoPipeline`). This parameter is required.@Stability(value=Stable) @NotNull public IStage addStage(@NotNull StageOptions props)
props - the creation properties of the new Stage. This parameter is required.@Stability(value=Stable)
public void addToRolePolicy(@NotNull
PolicyStatement statement)
statement - This parameter is required.@Stability(value=Stable) @NotNull public NotificationRuleSourceConfig bindAsNotificationRuleSource(@NotNull software.constructs.Construct _scope)
bindAsNotificationRuleSource in interface INotificationRuleSource_scope - This parameter is required.@Stability(value=Stable) @NotNull public INotificationRule notifyOn(@NotNull String id, @NotNull INotificationRuleTarget target, @NotNull PipelineNotifyOnOptions options)
You can also use the methods notifyOnExecutionStateChange, notifyOnAnyStageStateChange,
notifyOnAnyActionStateChange and notifyOnAnyManualApprovalStateChange
to define rules for these specific event emitted.
@Stability(value=Stable) @NotNull public INotificationRule notifyOnAnyActionStateChange(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnAnyActionStateChange in interface IPipelineid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public INotificationRule notifyOnAnyActionStateChange(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnAnyActionStateChange in interface IPipelineid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public INotificationRule notifyOnAnyManualApprovalStateChange(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnAnyManualApprovalStateChange in interface IPipelineid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public INotificationRule notifyOnAnyManualApprovalStateChange(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnAnyManualApprovalStateChange in interface IPipelineid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public INotificationRule notifyOnAnyStageStateChange(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnAnyStageStateChange in interface IPipelineid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public INotificationRule notifyOnAnyStageStateChange(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnAnyStageStateChange in interface IPipelineid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public INotificationRule notifyOnExecutionStateChange(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnExecutionStateChange in interface IPipelineid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public INotificationRule notifyOnExecutionStateChange(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnExecutionStateChange in interface IPipelineid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
@Stability(value=Stable) @NotNull public Rule onEvent(@NotNull String id)
@Stability(value=Stable) @NotNull public Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options)
onStateChange in interface IPipelineid - Identifier for this event handler. This parameter is required.options - Additional options to pass to the event rule.@Stability(value=Stable) @NotNull public Rule onStateChange(@NotNull String id)
onStateChange in interface IPipelineid - Identifier for this event handler. This parameter is required.@Stability(value=Stable) @NotNull public IStage stage(@NotNull String stageName)
stageName - This parameter is required.@Stability(value=Stable) @NotNull public IBucket getArtifactBucket()
@Stability(value=Stable) @NotNull public Map<String,CrossRegionSupport> getCrossRegionSupport()
CrossRegionSupportStacks that were generated automatically when dealing with Actions that reside in a different region than the Pipeline itself.@Stability(value=Stable) @NotNull public String getPipelineArn()
getPipelineArn in interface IPipeline@Stability(value=Stable) @NotNull public String getPipelineName()
getPipelineName in interface IPipeline@Stability(value=Stable) @NotNull public String getPipelineVersion()
@Stability(value=Stable) @NotNull public IRole getRole()
@Stability(value=Stable) @NotNull public Number getStageCount()
Copyright © 2022. All rights reserved.