Class DashboardVariable
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.DashboardVariable
- All Implemented Interfaces:
IVariable
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:11.817Z")
@Stability(Stable)
public class DashboardVariable
extends software.amazon.jsii.JsiiObject
implements IVariable
Dashboard Variable.
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
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudwatch.IVariable
IVariable.Jsii$Default, IVariable.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
DashboardVariable
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
DashboardVariable
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
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
-
DashboardVariable
protected DashboardVariable(software.amazon.jsii.JsiiObjectRef objRef) -
DashboardVariable
protected DashboardVariable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DashboardVariable
- Parameters:
options
- This parameter is required.
-
-
Method Details