java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.Values
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-31T21:09:04.039Z") @Stability(Stable) public abstract class Values extends software.amazon.jsii.JsiiObject
A class for providing values for use with
invalid @link
VariableInputType.SELECT
and
invalid @link
VariableInputType.RADIO
dashboard variables.

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("region")
                 .type(VariableType.PROPERTY)
                 .label("Region")
                 .inputType(VariableInputType.RADIO)
                 .value("region")
                 .values(Values.fromValues(VariableValue.builder().label("IAD").value("us-east-1").build(), VariableValue.builder().label("DUB").value("us-west-2").build()))
                 .defaultValue(DefaultValue.value("us-east-1"))
                 .visible(true)
                 .build()))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    Values(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Values(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Values
    fromSearch(String expression, String populateFrom)
    Create values from a search expression.
    static Values
    Create values from the components of search expression.
    static Values
    fromValues(@NotNull VariableValue... values)
    Create values from an array of possible variable values.
    abstract Object
     

    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

    • Values

      protected Values(software.amazon.jsii.JsiiObjectRef objRef)
    • Values

      protected Values(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Values

      @Stability(Stable) protected Values()
  • Method Details

    • fromSearch

      @Stability(Stable) @NotNull public static Values fromSearch(@NotNull String expression, @NotNull String populateFrom)
      Create values from a search expression.

      Parameters:
      expression - search expression that specifies a namespace, dimension name(s) and a metric name. This parameter is required.
      populateFrom - dimension the dimension name, that the search expression retrieves, whose values will be used to populate the values to choose from. This parameter is required.
    • fromSearchComponents

      @Stability(Stable) @NotNull public static Values fromSearchComponents(@NotNull SearchComponents components)
      Create values from the components of search expression.

      Parameters:
      components - This parameter is required.
    • fromValues

      @Stability(Stable) @NotNull public static Values fromValues(@NotNull @NotNull VariableValue... values)
      Create values from an array of possible variable values.

      Parameters:
      values - This parameter is required.
    • toJson

      @Stability(Stable) @NotNull public abstract Object toJson()