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.106.0 (build e852934)",
date="2025-02-12T12:31:59.595Z")
@Stability(Stable)
public abstract class Values
extends software.amazon.jsii.JsiiObject
A class for providing values for use with
and
dashboard variables.
invalid @link
VariableInputType.SELECT
invalid @link
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 Values
fromSearch
(String expression, String populateFrom) Create values from a search expression.static Values
fromSearchComponents
(SearchComponents components) Create values from the components of search expression.static Values
fromValues
(@NotNull VariableValue... values) Create values from an array of possible variable values.abstract Object
toJson()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
@Stability(Stable) @NotNull public static Values fromValues(@NotNull @NotNull VariableValue... values) Create values from an array of possible variable values.- Parameters:
values
- This parameter is required.
-
toJson
-