VariableValue

class aws_cdk.aws_cloudwatch.VariableValue(*, value, label=None)

Bases: object

Parameters:
  • value (str) – Value of the selected item.

  • label (Optional[str]) – Optional label for the selected item. Default: - the variable’s value

ExampleMetadata:

infused

Example:

import aws_cdk.aws_cloudwatch as cw


dashboard = cw.Dashboard(self, "Dash",
    default_interval=Duration.days(7),
    variables=[cw.DashboardVariable(
        id="region",
        type=cw.VariableType.PROPERTY,
        label="Region",
        input_type=cw.VariableInputType.RADIO,
        value="region",
        values=cw.Values.from_values(cw.VariableValue(label="IAD", value="us-east-1"), label="DUB", value="us-west-2"),
        default_value=cw.DefaultValue.value("us-east-1"),
        visible=True
    )]
)

Attributes

label

Optional label for the selected item.

Default:
  • the variable’s value

value

Value of the selected item.