Class VariableInputType
Inheritance
System.Object
VariableInputType
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class VariableInputType : Enum
Syntax (vb)
Public NotInheritable Class VariableInputType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudWatch;
var dashboard = new Dashboard(this, "Dash", new DashboardProps {
DefaultInterval = Duration.Days(7),
Variables = new [] { new DashboardVariable(new DashboardVariableOptions {
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(new SearchComponents {
Namespace = "AWS/Lambda",
Dimensions = new [] { "FunctionName" },
MetricName = "Duration",
PopulateFrom = "FunctionName"
}),
DefaultValue = DefaultValue.FIRST,
Visible = true
}) }
});
Synopsis
Fields
INPUT | Freeform text input box. |
RADIO | A dropdown of pre-defined values, or values filled in from a metric search query. |
SELECT | A set of pre-defined radio buttons, which can also be defined from a metric search query. |
value__ |
Fields
INPUT
Freeform text input box.
public const VariableInputType INPUT
Field Value
Type | Description |
---|---|
VariableInputType |
RADIO
A dropdown of pre-defined values, or values filled in from a metric search query.
public const VariableInputType RADIO
Field Value
Type | Description |
---|---|
VariableInputType |
SELECT
A set of pre-defined radio buttons, which can also be defined from a metric search query.
public const VariableInputType SELECT
Field Value
Type | Description |
---|---|
VariableInputType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |