Interface VariableValue
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VariableValue.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:47.388Z")
@Stability(Stable)
public interface VariableValue
extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.services.cloudwatch.*;
Dashboard dashboard = Dashboard.Builder.create(this, "Dash")
.defaultInterval(Duration.days(7))
.variables(List.of(DashboardVariable.Builder.create()
.id("region")
.type(VariableType.PROPERTY)
.label("Region")
.inputType(VariableInputType.RADIO)
.value("region")
.values(Values.fromValues(VariableValue.builder().label("IAD").value("us-east-1").build(), VariableValue.builder().label("DUB").value("us-west-2").build()))
.defaultValue(DefaultValue.value("us-east-1"))
.visible(true)
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVariableValuestatic final classAn implementation forVariableValue -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getValue
Value of the selected item. -
getLabel
Optional label for the selected item.Default: - the variable's value
-
builder
- Returns:
- a
VariableValue.BuilderofVariableValue
-