Interface VariableProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VariableProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:00.942Z")
@Stability(Stable)
public interface VariableProps
extends software.amazon.jsii.JsiiSerializable
Properties of pipeline-level variable.
Example:
S3SourceAction sourceAction;
Artifact sourceOutput;
Bucket deployBucket;
// Pipeline-level variable
Variable variable = Variable.Builder.create()
.variableName("bucket-var")
.description("description")
.defaultValue("sample")
.build();
Pipeline.Builder.create(this, "Pipeline")
.pipelineType(PipelineType.V2)
.variables(List.of(variable))
.stages(List.of(StageProps.builder()
.stageName("Source")
.actions(List.of(sourceAction))
.build(), StageProps.builder()
.stageName("Deploy")
.actions(List.of(
S3DeployAction.Builder.create()
.actionName("DeployAction")
// can reference the variables
.objectKey(String.format("%s.txt", variable.reference()))
.input(sourceOutput)
.bucket(deployBucket)
.build()))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVariablePropsstatic final classAn implementation forVariableProps -
Method Summary
Modifier and TypeMethodDescriptionstatic VariableProps.Builderbuilder()default StringThe default value of a pipeline-level variable.default StringThe description of a pipeline-level variable.The name of a pipeline-level variable.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVariableName
The name of a pipeline-level variable. -
getDefaultValue
The default value of a pipeline-level variable.Default: - No default value.
-
getDescription
The description of a pipeline-level variable.It's used to add additional context about the variable, and not being used at time when pipeline executes.
Default: - No description.
-
builder
- Returns:
- a
VariableProps.BuilderofVariableProps
-