Interface VariableProps
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- VariableProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:35.068Z")
@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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVariablePropsstatic final classAn implementation forVariableProps
- 
Method SummaryModifier 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- 
getVariableNameThe name of a pipeline-level variable.
- 
getDefaultValueThe default value of a pipeline-level variable.Default: - No default value. 
- 
getDescriptionThe 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
 
 
-