Skip to content
v2.275.0

GlobalVariables Class ​

The CodePipeline variables that are global, not bound to a specific action.

This class defines a bunch of static fields that represent the different variables. These can be used can be used in any action configuration.

Example ​

ts
// OtherAction is some action type that produces variables, like EcrSourceAction
new OtherAction({
  // ...
  config: codepipeline.GlobalVariables.executionId,
  actionName: 'otherAction',
});
python
# OtherAction is some action type that produces variables, like EcrSourceAction
OtherAction(
    # ...
    config=codepipeline.GlobalVariables.execution_id,
    action_name="otherAction"
)
java
// OtherAction is some action type that produces variables, like EcrSourceAction
// OtherAction is some action type that produces variables, like EcrSourceAction
new OtherAction(new OtherActionProps()
        // ...
        .config(GlobalVariables.executionId)
        .actionName("otherAction")
        );
csharp
// Install: dotnet add package Amazon.CDK.Lib
// OtherAction is some action type that produces variables, like EcrSourceAction
// OtherAction is some action type that produces variables, like EcrSourceAction
new OtherAction(new OtherActionProps {
    // ...
    Config = GlobalVariables.ExecutionId,
    ActionName = "otherAction"
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// OtherAction is some action type that produces variables, like EcrSourceAction
// OtherAction is some action type that produces variables, like EcrSourceAction
newOtherAction(&otherActionProps{
	// ...
	config: codepipeline.GlobalVariables_ExecutionId(),
	actionName: jsii.String("otherAction"),
})

Initializer ​

ts
new GlobalVariables()
python
GlobalVariables()
java
new GlobalVariables()
csharp
new GlobalVariables()
go
NewGlobalVariables()

Properties ​

executionIdstringexecution_idstrexecutionIdStringExecutionIdstringExecutionId*stringstatic#
The identifier of the current pipeline execution.