Interface DashboardVariableOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DashboardVariableOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:58.504Z")
@Stability(Stable)
public interface DashboardVariableOptions
extends software.amazon.jsii.JsiiSerializable
Options for
DashboardVariable
.
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("functionName") .type(VariableType.PATTERN) .label("Function") .inputType(VariableInputType.RADIO) .value("originalFuncNameInDashboard") // equivalent to cw.Values.fromSearch('{AWS/Lambda,FunctionName} MetricName=\"Duration\"', 'FunctionName') .values(Values.fromSearchComponents(SearchComponents.builder() .namespace("AWS/Lambda") .dimensions(List.of("FunctionName")) .metricName("Duration") .populateFrom("FunctionName") .build())) .defaultValue(DefaultValue.FIRST) .visible(true) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDashboardVariableOptions
static final class
An implementation forDashboardVariableOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default DefaultValue
Optional default value.getId()
Unique id.The way the variable value is selected.default String
getLabel()
Optional label in the toolbar.getType()
Type of the variable.getValue()
Pattern or property value to replace.default Values
Optional values (required forinvalid @link
VariableInputType.RADIO
invalid @link
VariableInputType.SELECT
default Boolean
Whether the variable is visible.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getId
Unique id. -
getInputType
The way the variable value is selected. -
getType
Type of the variable. -
getValue
Pattern or property value to replace. -
getDefaultValue
Optional default value.Default: - no default value is set
-
getLabel
Optional label in the toolbar.Default: - the variable's value
-
getValues
Optional values (required forinvalid @link
VariableInputType.RADIO
invalid @link
VariableInputType.SELECT
Default: - no values
-
getVisible
Whether the variable is visible.Default: - true
-
builder
- Returns:
- a
DashboardVariableOptions.Builder
ofDashboardVariableOptions
-