Class Values
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.Values
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:32.533Z")
@Stability(Stable)
public abstract class Values
extends software.amazon.jsii.JsiiObject
A class for providing values for use with
and
dashboard variables.
invalid reference
VariableInputType.SELECT
invalid reference
VariableInputType.RADIO
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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValuesfromSearch(String expression, String populateFrom) Create values from a search expression.static ValuesfromSearchComponents(SearchComponents components) Create values from the components of search expression.static ValuesfromValues(VariableValue... values) Create values from an array of possible variable values.abstract ObjecttoJson()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Values
protected Values(software.amazon.jsii.JsiiObjectRef objRef) -
Values
protected Values(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Values
@Stability(Stable) protected Values()
-
-
Method Details
-
fromSearch
@Stability(Stable) @NotNull public static Values fromSearch(@NotNull String expression, @NotNull String populateFrom) Create values from a search expression.- Parameters:
expression- search expression that specifies a namespace, dimension name(s) and a metric name. This parameter is required.populateFrom- dimension the dimension name, that the search expression retrieves, whose values will be used to populate the values to choose from. This parameter is required.
-
fromSearchComponents
@Stability(Stable) @NotNull public static Values fromSearchComponents(@NotNull SearchComponents components) Create values from the components of search expression.- Parameters:
components- This parameter is required.
-
fromValues
Create values from an array of possible variable values.- Parameters:
values- This parameter is required.
-
toJson
-