interface IAction
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodePipeline.IAction |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodepipeline#IAction |
Java | software.amazon.awscdk.services.codepipeline.IAction |
Python | aws_cdk.aws_codepipeline.IAction |
TypeScript (source) | aws-cdk-lib » aws_codepipeline » IAction |
Implemented by
Alexa
, Cloud
, Cloud
, Cloud
, Cloud
, Cloud
, Cloud
, Code
, Code
, Code
, Code
, Code
, Ecr
, Ecs
, Elastic
, Git
, Jenkins
, Lambda
, Manual
, S3
, S3
, Service
, Step
A Pipeline Action.
If you want to implement this interface,
consider extending the Action
class,
which contains some common logic.
Properties
Name | Type | Description |
---|---|---|
action | Action | The simple properties of the Action, like its Owner, name, etc. |
actionProperties
Type:
Action
The simple properties of the Action, like its Owner, name, etc.
Note that this accessor will be called before the bind
callback.
Methods
Name | Description |
---|---|
bind(scope, stage, options) | The callback invoked when this Action is added to a Pipeline. |
on | Creates an Event that will be triggered whenever the state of this Action changes. |
bind(scope, stage, options)
public bind(scope: Construct, stage: IStage, options: ActionBindOptions): ActionConfig
Parameters
- scope
Construct
— the Construct tree scope the Action can use if it needs to create any resources. - stage
IStage
— theIStage
this Action is being added to. - options
Action
— additional options the Action can use, like the artifact Bucket of the pipeline it's being added to.Bind Options
Returns
The callback invoked when this Action is added to a Pipeline.
StateChange(name, target?, options?)
onpublic onStateChange(name: string, target?: IRuleTarget, options?: RuleProps): Rule
Parameters
- name
string
— the name to use for the new Event. - target
IRule
— the optional target for the Event.Target - options
Rule
— additional options that can be used to customize the created Event.Props
Returns
Creates an Event that will be triggered whenever the state of this Action changes.