class Action
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodePipeline.Action |
Java | software.amazon.awscdk.services.codepipeline.Action |
Python | aws_cdk.aws_codepipeline.Action |
TypeScript (source) | @aws-cdk/aws-codepipeline » Action |
Implements
IAction
Implemented by
Alexa
, Cloud
, Cloud
, Cloud
, Cloud
, Cloud
, Cloud
, Code
, Code
, Code
, Code
, Code
, Ecr
, Ecs
, Git
, Jenkins
, Lambda
, Manual
, S3
, S3
, Service
, Step
Low-level class for generic CodePipeline Actions implementing the {@link IAction} interface.
Contains some common logic that can be re-used by all {@link IAction} implementations. If you're writing your own Action class, feel free to extend this class.
Initializer
new Action()
Properties
Name | Type | Description |
---|---|---|
action | Action | The simple properties of the Action, like its Owner, name, etc. |
provided | Action | This is a renamed version of the {@link IAction.actionProperties} property. |
actionProperties
Type:
Action
The simple properties of the Action, like its Owner, name, etc.
Note that this accessor will be called before the {@link bind} callback.
providedActionProperties
Type:
Action
This is a renamed version of the {@link IAction.actionProperties} property.
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. |
protected bound(scope, stage, options) | This is a renamed version of the {@link IAction.bind} method. |
protected variable |
bind(scope, stage, options)
public bind(scope: Construct, stage: IStage, options: ActionBindOptions): ActionConfig
Parameters
- scope
Construct
- stage
IStage
- options
Action
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
- target
IRule
Target - options
Rule
Props
Returns
Creates an Event that will be triggered whenever the state of this Action changes.
protected bound(scope, stage, options)
protected bound(scope: Construct, stage: IStage, options: ActionBindOptions): ActionConfig
Parameters
- scope
Construct
- stage
IStage
- options
Action
Bind Options
Returns
This is a renamed version of the {@link IAction.bind} method.
Expression(variableName)
protected variableprotected variableExpression(variableName: string): string
Parameters
- variableName
string
Returns
string