class CodePipelineStartPipelineExecution
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Scheduler.Targets.Alpha.CodePipelineStartPipelineExecution |
![]() | github.com/aws/aws-cdk-go/awscdkschedulertargetsalpha/v2#CodePipelineStartPipelineExecution |
![]() | software.amazon.awscdk.services.scheduler.targets.alpha.CodePipelineStartPipelineExecution |
![]() | aws_cdk.aws_scheduler_targets_alpha.CodePipelineStartPipelineExecution |
![]() | @aws-cdk/aws-scheduler-targets-alpha » CodePipelineStartPipelineExecution |
Implements
ISchedule
Extends
Schedule
Use an AWS CodePipeline pipeline as a target for AWS EventBridge Scheduler.
Example
import * as codepipeline from 'aws-cdk-lib/aws-codepipeline';
declare const pipeline: codepipeline.Pipeline;
new Schedule(this, 'Schedule', {
schedule: ScheduleExpression.rate(Duration.minutes(60)),
target: new targets.CodePipelineStartPipelineExecution(pipeline),
});
Initializer
new CodePipelineStartPipelineExecution(pipeline: IPipeline, props?: ScheduleTargetBaseProps)
Parameters
- pipeline
IPipeline
- props
Schedule
Target Base Props
Methods
Name | Description |
---|---|
bind(schedule) | Create a return a Schedule Target Configuration for the given schedule. |
protected add |
bind(schedule)
public bind(schedule: ISchedule): ScheduleTargetConfig
Parameters
- schedule
ISchedule
Returns
Create a return a Schedule Target Configuration for the given schedule.
protected addTargetActionToRole(role)
protected addTargetActionToRole(role: IRole): void
Parameters
- role
IRole