VariableInputType
- class aws_cdk.aws_cloudwatch.VariableInputType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_cloudwatch as cw dashboard = cw.Dashboard(self, "Dash", default_interval=Duration.days(7), variables=[cw.DashboardVariable( id="functionName", type=cw.VariableType.PATTERN, label="Function", input_type=cw.VariableInputType.RADIO, value="originalFuncNameInDashboard", # equivalent to cw.Values.fromSearch('{AWS/Lambda,FunctionName} MetricName="Duration"', 'FunctionName') values=cw.Values.from_search_components( namespace="AWS/Lambda", dimensions=["FunctionName"], metric_name="Duration", populate_from="FunctionName" ), default_value=cw.DefaultValue.FIRST, visible=True )] )
Attributes
- 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.